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

Duplicate Error/Warning when hovering over a warning #598

Closed
amahi2001 opened this issue Feb 21, 2025 · 2 comments
Closed

Duplicate Error/Warning when hovering over a warning #598

amahi2001 opened this issue Feb 21, 2025 · 2 comments
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue is not triaged.

Comments

@amahi2001
Copy link

Diagnostic Data

  • Python version (& distribution if applicable, e.g., Anaconda): 3.12.5 - Type of virtual environment used (e.g., conda, venv, virtualenv, etc.): venv - Operating system (and version): MacOS - Version of tool extension you are using: ms-python.pylint-2024.2.0 ## Behaviour

Expected Behavior

When hovering over a Pylint error or warning in the VS Code editor, I expect to see the error/warning message displayed once.

Actual Behavior

When hovering over a Pylint error or warning in the VS Code editor, the error/warning message is displayed twice, showing duplicate entries for the same issue.

Reproduction Steps:

  1. Open VS Code.
  2. Open a Python project. 3. Ensure the Pylint extension is enabled.
  3. Open a Python file that contains code that triggers Pylint errors or warnings (e.g., an unused variable, import error, etc.). 5. Hover the mouse cursor over a Pylint error or warning highlighted in the editor.
  4. Observe the hover tooltip, which displays the error/warning message duplicated.

Logs:

  Click here for detailed logs   ``` 2025-02-20 21:46:50.431 [info] No interpreter found from setting pylint.interpreter 2025-02-20 21:46:50.431 [info] Getting interpreter from ms-python.python extension for workspace /Users/amahi/Desktop/ops/trabajo-backend 2025-02-20 21:46:50.432 [info] Interpreter from ms-python.python extension for /Users/amahi/Desktop/ops/trabajo-backend: /Users/amahi/Desktop/ops/trabajo-backend/.venv/bin/python 2025-02-20 21:46:50.432 [info] Server: Stop requested 2025-02-20 21:46:50.432 [debug] Server State: Stopped 2025-02-20 21:46:50.432 [info] [Trace - 9:46:50 PM] Sending request 'shutdown - (1)'. 2025-02-20 21:46:50.440 [info] [Trace - 9:46:50 PM] Received response 'shutdown - (1)' in 8ms. 2025-02-20 21:46:50.440 [info] No result returned.

2025-02-20 21:46:50.440 [info] [Trace - 9:46:50 PM] Sending notification 'exit'.
2025-02-20 21:46:50.440 [info] No parameters provided.

2025-02-20 21:46:50.441 [info] No interpreter found from setting pylint.interpreter
2025-02-20 21:46:50.441 [info] Getting interpreter from ms-python.python extension for workspace /Users/amahi/Desktop/ops/trabajo-backend
2025-02-20 21:46:50.442 [info] Interpreter from ms-python.python extension for /Users/amahi/Desktop/ops/trabajo-backend: /Users/amahi/Desktop/ops/trabajo-backend/.venv/bin/python
2025-02-20 21:46:50.444 [info] Server run command: /Users/amahi/Desktop/ops/trabajo-backend/.venv/bin/python /Users/amahi/.vscode/extensions/ms-python.pylint-2024.2.0/bundled/tool/lsp_server.py
2025-02-20 21:46:50.445 [info] Server: Start requested.
2025-02-20 21:46:50.445 [debug] Server State: Starting
2025-02-20 21:46:50.936 [info] CWD Server: /Users/amahi/Desktop/ops/trabajo-backend
2025-02-20 21:46:50.936 [info] Settings used to run Server:
[
{
"enabled": true,
"cwd": "/Users/amahi/Desktop/ops/trabajo-backend",
"workspace": "file:///Users/amahi/Desktop/ops/trabajo-backend",
"args": [],
"severity": {
"convention": "Information",
"error": "Error",
"fatal": "Error",
"refactor": "Hint",
"warning": "Warning",
"info": "Information"
},
"path": [],
"ignorePatterns": [],
"interpreter": [
"/Users/amahi/Desktop/ops/trabajo-backend/.venv/bin/python"
],

Image

    "importStrategy": "useBundled",
    "showNotifications": "off",
    "extraPaths": []
}

]

2025-02-20 21:46:50.937 [info] Global settings:
{
"cwd": "${workspaceFolder}",
"enabled": true,
"workspace": "/",
"args": [],
"severity": {
"convention": "Information",
"error": "Error",
"fatal": "Error",
"refactor": "Hint",
"warning": "Warning",
"info": "Information"
},
"path": [],
"ignorePatterns": [],
"interpreter": [],
"importStrategy": "useBundled",
"showNotifications": "off",
"extraPaths": []
}

2025-02-20 21:46:50.937 [info] sys.path used to run Server:
/Users/amahi/Desktop/ops/trabajo-backend
/Users/amahi/.vscode/extensions/ms-python.pylint-2024.2.0/bundled/libs
/Users/amahi/.vscode/extensions/ms-python.pylint-2024.2.0/bundled/tool
/Users/amahi/.pyenv/versions/3.12.5/lib/python312.zip
/Users/amahi/.pyenv/versions/3.12.5/lib/python3.12
/Users/amahi/.pyenv/versions/3.12.5/lib/python3.12/lib-dynload
/Users/amahi/Desktop/ops/trabajo-backend/.venv/lib/python3.12/site-packages
2025-02-20 21:46:50.941 [info] /Users/amahi/Desktop/ops/trabajo-backend/.venv/bin/python -m pylint --version
2025-02-20 21:46:50.943 [info] CWD Linter: /Users/amahi/Desktop/ops/trabajo-backend
2025-02-20 21:46:51.060 [info]
pylint 3.2.7
astroid 3.2.4
Python 3.12.5 (main, Sep 8 2024, 16:44:35) [Clang 15.0.0 (clang-1500.3.9.4)]

2025-02-20 21:46:51.060 [info] Version info for linter running for /Users/amahi/Desktop/ops/trabajo-backend:
pylint 3.2.7
astroid 3.2.4
Python 3.12.5 (main, Sep 8 2024, 16:44:35) [Clang 15.0.0 (clang-1500.3.9.4)]

2025-02-20 21:46:51.060 [info] SUPPORTED pylint>=2.12.2
FOUND pylint==3.2.7

2025-02-20 21:46:51.064 [debug] Server State: Running
2025-02-20 21:46:51.067 [info] [Trace - 9:46:51 PM] Received notification 'window/logMessage'.
2025-02-20 21:46:51.067 [info] Params: {
"type": 4,
"message": "/Users/amahi/Desktop/ops/trabajo-backend/.venv/bin/python -m pylint --reports=n --output-format=json --clear-cache-post-run=y --from-stdin /Users/amahi/Desktop/ops/trabajo-backend/src/laborer_manager/routers/laborer_routers.py"
}

2025-02-20 21:46:51.067 [info] /Users/amahi/Desktop/ops/trabajo-backend/.venv/bin/python -m pylint --reports=n --output-format=json --clear-cache-post-run=y --from-stdin /Users/amahi/Desktop/ops/trabajo-backend/src/laborer_manager/routers/laborer_routers.py
2025-02-20 21:46:51.067 [info] [Trace - 9:46:51 PM] Received notification 'window/logMessage'.
2025-02-20 21:46:51.067 [info] Params: {
"type": 4,
"message": "CWD Linter: /Users/amahi/Desktop/ops/trabajo-backend"
}

2025-02-20 21:46:51.067 [info] CWD Linter: /Users/amahi/Desktop/ops/trabajo-backend

Extra Details

@amahi2001 amahi2001 added the bug Issue identified by VS Code Team member as probable bug label Feb 21, 2025
@github-actions github-actions bot added the triage-needed Issue is not triaged. label Feb 21, 2025
@amahi2001 amahi2001 changed the title Duplicate Error/Warning when hovering over a werning Duplicate Error/Warning when hovering over a warning Feb 21, 2025
@amahi2001
Copy link
Author

Image

@karthiknadig
Copy link
Member

This should be fixed in pre-release version 2025.1.10511012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue is not triaged.
Projects
None yet
Development

No branches or pull requests

2 participants