Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Intellisense - Function arguments bolded in wrong order #679

Closed
DonJayamanne opened this issue Feb 28, 2019 · 3 comments · Fixed by #1111
Closed

Intellisense - Function arguments bolded in wrong order #679

DonJayamanne opened this issue Feb 28, 2019 · 3 comments · Fixed by #1111
Labels
bug Something isn't working upstream-vscode

Comments

@DonJayamanne
Copy link

@JeffreyCA commented on Fri Feb 08 2019

Environment data

  • VS Code version: 1.32.0-insider
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.8
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
  • Relevant/affected Python packages and their versions: tensorflow 1.12.0

Expected behaviour

Function arguments should be bolded in listed order

Actual behaviour

Function arguments are not bolded in order. In addition only a substring of an argument is bolded in some cases.

Steps to reproduce:

  1. Have the following piece of code:
import tensorflow as tf
from tensorflow import keras

model = keras.Sequential([
    tf.layers.Dense(64, activation = tf.nn.relu, input_shape = [ ]),
    tf.layers.Dense(1)
])
optimizer = tf.keras.optimizers.RMSprop(0.001)

Then begin typing the following, filling in the arguments:

mode.compile(

Demo

20190208at1046am


@DonJayamanne commented on Tue Feb 19 2019

Are you using Jedi or language server?
Please check the output of your Python output panel and let me know what you get when you have a python file open and the above issue.
Or let me know if you have the following setting enabled in your local .vscode/settings.json or user settings.json:

"python.jediEnabled": true|false

@JeffreyCA commented on Tue Feb 19 2019

Starting Microsoft Python language server.
Microsoft Python Language Server version 0.1.78.0
Initializing for C:\venv\Scripts\python.exe
##########Linting Output - pylint##########
************* Module tensor
17,25,error,no-member:Module 'matplotlib.cm' has no 'binary' member

------------------------------------------------------------------

Your code has been rated at 9.11/10 (previous run: 9.11/10, +0.00)

I tried with python.jediEnabled: true and same issue happens.

@MikhailArkhipov MikhailArkhipov added bug Something isn't working blocked labels Feb 28, 2019
@MikhailArkhipov
Copy link

Needs #642

@MikhailArkhipov
Copy link

We do not actually bold anything, we report active parameter index to VS Code, that's it. Looks like this is VS Code bug: microsoft/vscode#68824

@JeffreyCA
Copy link
Member

Yes, I looked into it a bit and have isolated the piece of code that is causing this bug. See microsoft/vscode#68824 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working upstream-vscode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants