pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

[python][RemoteSSH] goto definition navigates to lib/site-packages instead of user-defined modules

Open shivachetan1106 opened this issue 3 years ago • 1 comments

the issue is with "goto definition" feature of code navigation. When I use the goto definition feature(ctrl+click), it takes me to the lib/site-packages location instead of the actual file location in the user-developed modules. My setup is with "remote development over SSH"

settings.json file: 
{
    "terminal.integrated.defaultProfile.windows": "Git Bash",
    "security.workspace.trust.untrustedFiles": "open",
    "remote.SSH.remotePlatform": {
<redacted>
    },
    "gitlens.proxy": {},
    "python.analysis.typeCheckingMode": "basic",
    "trunk.trunkGrayOutNonBlockingIssues": false,
    "editor.formatOnSave": true,
    "python.linting.flake8Enabled": true,
    "python.linting.flake8Path": "<redacted>/venv/bin/flake8",
    "terminal.integrated.scrollback": 1e+32,
    "jupyter.debugJustMyCode": false,
    "tabnine.experimentalAutoImports": true,
    "terminal.integrated.enableMultiLinePasteWarning": false,
    "explorer.confirmDragAndDrop": false,
    "editor.codeActionsOnSave": {
        "source.organizeImports": true
    },
    "workbench.colorTheme": "One Dark Pro Darker",
    "editor.largeFileOptimizations": false,
    "python.terminal.executeInFileDir": true,
    "workbench.editor.enablePreviewFromCodeNavigation": true,
    "editor.gotoLocation.multipleDefinitions": "goto"
  }

shivachetan1106 avatar Sep 12 '22 20:09 shivachetan1106

Thanks for the report. Unfortunately, this is not enough information for us to investigate this issue. Can you please add the information described in the troubleshooting guide?

debonte avatar Sep 13 '22 18:09 debonte

Closing old issue. If this is still a problem, please reopen with the information requested. thanks

judej avatar Nov 02 '22 19:11 judej