Skip to content

Language server doesnt lint errors #9577

@davfsa

Description

@davfsa

Environment data

  • VS Code version: 1.41
  • Extension version (available under the Extensions sidebar): 2020.1.58038
  • OS and version: Ubuntu 19.10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: All in general
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): Jedi=false Python Language Server=0.5.10.0

Expected behaviour

Error highlighting works

Actual behaviour

Error highlighting works

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Open a python file and type something that is not right, eg test
  2. Observe the laguage server not working

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - control'
User belongs to experiment group 'DebugAdapterFactory - experiment'
> conda --version
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> ~/coding/python/hikari/.venv/bin/python -c "import sys;print(sys.executable)"
> conda info --json
Starting Microsoft Python language server.
> conda --version

Language Server Output:

[Info  - 6:36:28 PM] Analysis cache path: /home/davfsa/snap/code/common/.cache/Microsoft/Python Language Server
[Info  - 6:36:28 PM] Microsoft Python Language Server version 0.5.10.0
[Info  - 6:36:28 PM] Workspace root: /home/davfsa/coding/python/hikari
[Info  - 6:36:28 PM] GetCurrentSearchPaths /home/davfsa/coding/python/hikari/.venv/bin/python 
[Info  - 6:36:28 PM] Interpreter search paths:
[Info  - 6:36:28 PM]     /home/davfsa/coding/python/hikari/.venv/lib/python3.8
[Info  - 6:36:28 PM]     /home/davfsa/coding/python/hikari/.venv/lib/python3.8/lib-dynload
[Info  - 6:36:28 PM]     /usr/lib/python3.8
[Info  - 6:36:28 PM]     /home/davfsa/coding/python/hikari/.venv/lib/python3.8/site-packages
[Info  - 6:36:28 PM] User search paths:
[Info  - 6:36:29 PM] Initializing for /home/davfsa/coding/python/hikari/.venv/bin/python
[Info  - 6:36:29 PM] Analysis caching mode: None.

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

Noticed this 2 errors:

Notification handler 'textDocument/publishDiagnostics' failed with message: Cannot read property 'connected' of undefined

(node:6100) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

If any further info is needed, please dont hesitate to ask

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions