Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python jediEnabled #69

Closed
lvytwjw opened this issue Mar 8, 2019 · 9 comments
Closed

python jediEnabled #69

lvytwjw opened this issue Mar 8, 2019 · 9 comments

Comments

@lvytwjw
Copy link

lvytwjw commented Mar 8, 2019

Product and Version [VSCode]:
OS Version [Windows]:
IntelliCode Extension Version: 1.14
Target Platform or Language [python]:

Steps to Reproduce / Scenario:

1.when i us Visual Studio IntelliCode, '"python.jediEnabled": true' in setting.json
2.then i can't get some IntelliCode. like define a variate as str :a='' then str function can't show in the list

@jkeech
Copy link
Collaborator

jkeech commented Mar 8, 2019

This is by design. IntelliCode Python support requires the Microsoft Python Language Server in order for the language server plugin to work. This means that it only works with "python.jediEnabled": false. The IntelliCode extension is supposed to prompt you with a toast in this case:

image

@markw-t
Copy link
Contributor

markw-t commented Mar 12, 2019

@lvytwjw , do you see the notification that @jkeech mentions above when you try to use IntelliCode with jediEnabled true?

@RicaBenhossi
Copy link

I was facing the same issue. I don't know if it was a solution but in order to test, I open a new VSCode window, without a workspace or anything else, just a blank plain text file. I changed it to python language (using command Change Language Mode). Didn't work. But, when I opened my project again, it suddenly back working.

As I said, I don't know if it was a solution, but you can try these steps:

  1. Open a new VSCode window, without a workspace, project, etc.
  2. Open a new file.
  3. Change the Language Mode of the file to Python (Ctrl+Shift+P then type Change Language Mode)
  4. Try typing some command.
  5. If it doesn't work, close VSCode and open it again.
  6. Open your workspace and test it again.

@jkeech
Copy link
Collaborator

jkeech commented Mar 29, 2019

@RicaBenhossi, which version of the Python language server do you have (you can check from the Python output window)? I have seen that before with the older versions of the language server, but the newer versions seem to work better with files that are not yet saved to disk.

@RicaBenhossi
Copy link

I've installed Microsoft Python Language Server version 0.2.37.0 and Python 3.7.1.

VSCode
Version: 1.33.0-insider
Commit: 4039ea871879ef8f654f27df5c32d209104b3a44
Date: 2019-03-29T10:48:26.004Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-46-generic

@RicaBenhossi
Copy link

I don't know if it is a new issue or is related with this one, but I noticed today that, although it might be working for me, when I choose a function like list(), dict(), print(), input() it doesn't add the parenthesis. I'm pretty sure that it brings us the parenthesis before...

Is this a new issue? Should I open a new one if it is or we keep it here?

@jkeech
Copy link
Collaborator

jkeech commented Apr 1, 2019

@RicaBenhossi, can you open a new issue for that? It will help if you also temporarily disable the IntelliCode extension and reload the VS Code window to confirm if the behavior around parenthesis changes. Thanks!

@RicaBenhossi
Copy link

That's odd... Even if I disable Intellicode extension, VSCode keeps suggesting me commands without adding parenthesis though. I don't know it is expected, but I've made some tests:
Perform a fresh install of VSCode and extensions -> no results
Install an old version (from more than one month ago) of IntelliCode extension and Python extension (ms-python.python) -> no results
Keep only the extensions above for python and nothing more -> no results either

As you requested @jkeech, I've opened a new issue Not adding parenthesis after python #80. Can it be related with autoComplete addBrackets was doesn't work #10?

@jkeech
Copy link
Collaborator

jkeech commented Apr 22, 2019

Closing this issue since it is by design that the Python IntelliCode support in VS Code requires the Microsoft Python Language Server instead of the Jedi language server.

@jkeech jkeech closed this as completed Apr 22, 2019
gewarren added a commit that referenced this issue Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants