microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.72k stars 769 forks source link

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

Closed shivachetan1106 closed 2 years ago

shivachetan1106 commented 2 years ago

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"
  }
debonte commented 2 years ago

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?

judej commented 2 years ago

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