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

[Win/3.9] Unable to find document #2082

Closed
imba-tjd opened this issue Jun 19, 2020 · 5 comments
Closed

[Win/3.9] Unable to find document #2082

imba-tjd opened this issue Jun 19, 2020 · 5 comments

Comments

@imba-tjd
Copy link

Since I see error messages in "Python Language Server" rather in "Python", I open this here.

The key point is that 3.8.3 (still from MS Store) works.

Environment data

  • Language Server version: 0.5.45.0
  • OS and version: Win10 2004 x64
  • Python version: 3.9.0b3 from MS Store

Expected behaviour

I can get intellisense.

Actual behaviour

There is no intellisense.

图片

Logs

Python Language Server:

[Info  - 下午1:51:03] Analysis cache path: C:\Users\xxx\AppData\Local\Microsoft\Python Language Server
[Info  - 下午1:51:03] Microsoft Python Language Server version 0.5.45.0
[Info  - 下午1:51:03] Workspace root: c:\py\new
Opening document file:///c:/py/new/test.py
[Warn  - 下午1:52:06] Unable to find document for file:///c:/py/new/test.py
Completions in file:///c:/py/new/test.py at (1, 1)
[Error - 下午1:52:06] Unable to find document file:///c:/py/new/test.py
Code Action in file:///c:/py/new/test.py at (1, 1) - (1, 1)
[Error - 下午1:52:06] Unable to find document file:///c:/py/new/test.py
[Warn  - 下午1:52:06] Unable to find document for file:///c:/py/new/test.py
Code Action in file:///c:/py/new/test.py at (0, 0) - (0, 0)
[Error - 下午1:56:42] Unable to find document file:///c:/py/new/test.py
Code Action in file:///c:/py/new/test.py at (1, 1) - (1, 1)
[Error - 下午1:56:42] Unable to find document file:///c:/py/new/test.py

Python:

User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - control'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'LocalZMQKernel - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'RunByLine - control'
User belongs to experiment group 'CustomEditorSupport - control'
> conda --version
> pyenv root
> python3.7 c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.7 c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3.6 c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -3 c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> py -2 c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Python interpreter path: ~\AppData\Local\Microsoft\WindowsApps\python.exe
Starting Microsoft Python language server.
> conda info --json
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py flake8 --max-line-length=127 --experimental --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s c:\py\new\test.py
cwd: c:\py\new
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py flake8 --max-line-length=127 --experimental --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s c:\py\new\test.py
cwd: c:\py\new
> conda --version
##########Linting Output - flake8##########
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py flake8 --max-line-length=127 --experimental --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s c:\py\new\test.py
cwd: c:\py\new
> ~\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\xxx\.vscode\extensions\ms-python.python-2020.6.89148\pythonFiles\pyvsc-run-isolated.py flake8 --max-line-length=127 --experimental --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s c:\py\new\test.py
cwd: c:\py\new
##########Linting Output - flake8##########

Settings

    "python.linting.flake8Enabled": true,
    "python.linting.pylintEnabled": false,
    "python.languageServer": "Microsoft",
    "python.linting.flake8Args": [
        "--max-line-length=127",
        "--experimental",
    ],
    "python.analysis.logLevel": "Trace"
@imba-tjd
Copy link
Author

imba-tjd commented Jul 3, 2020

For now 0.5.51 this issue still happens. But Pylance works for me. So I'm closing it.

@imba-tjd imba-tjd closed this as completed Jul 3, 2020
@joshuapatel
Copy link

I'm getting the same error but I'd rather not switch to Pylance. Will Microsoft do something about this now that 3.9 is released or are they just going to redirect everyone to Pylance?

@MikhailArkhipov
Copy link

Yes, that is the plan. See #2096 (comment)

@jakebailey
Copy link
Member

I'm pretty sure this is because we don't define 3.9 (and more) in our version enum, so things fail to load. In the meantime while MPLS is running we may need to just define these.

@MikhailArkhipov
Copy link

Yes, possibly. I guess we can add it. Lemme make a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants