[
    {
        "role": "user",
        "content": "I%27m%20in%20a%20python%20project%20in%20vs%20code%20connected%20to%20remotely%20over%20ssh.%20the%20outline%20view%20command%20does%20nothing%20(ctrl%2Bshift%2Bo).%20what%20is%20likely%20cause%3F"
    },
    {
        "role": "assistant",
        "content": "If the Outline view (`Ctrl+Shift+O`) does nothing in a Python file while using VS Code Remote-SSH, the likely cause is that the language server (or the relevant \u201csymbols provider\u201d extension) isn\u2019t running or isn\u2019t properly enabled for the remote environment. Below are the probable culprits and ways to debug/fix them:\n\n---\n\n## Possible Causes & Checks\n\n1. **Python extension or Pylance not installed/enabled remotely**  \n   - VS Code extensions need to be installed *on the remote host* when using Remote-SSH. If you only installed the Python extension locally, it won\u2019t provide outline or symbol information for files on the remote host.  \n   - Check the Extensions pane \u2192 look under \u201cRemote \u2014 SSH: <your-host>\u201d to see whether `Python` or `Pylance` is installed and enabled there.  \n   - If it\u2019s missing, install it from that pane.  \n   ([stackoverflow.com](https://stackoverflow.com/questions/66129196/code-navigation-not-working-in-vscode-python?utm_source=openai))\n\n2. **No Python interpreter selected or wrong one**  \n   - If VS Code doesn\u2019t know which Python environment to use, or if the selected interpreter lacks required packages (like language server dependencies), the language server may not kick in.  \n   - In the Command Palette (`Ctrl+Shift+P`), run **Python: Select Interpreter** *while connected to the remote*. Pick the right one.  \n   ([reddit.com](https://www.reddit.com/r/vscode/comments/1ndqipp?utm_source=openai))\n\n3. **Language server crashed or failing**  \n   - Watch the Output panel \u2192 pick \u201cPython\u201d or \u201cPylance\u201d to see errors. If it fails to start or if there are missing binaries, that\u2019ll show up there.  \n   - Also some remote servers miss dependencies like `tar`, or have limited permissions, broken symlinks, etc., causing the language server or server-side components to fail to install or run.  \n   ([stackoverflow.com](https://stackoverflow.com/questions/64034813/vs-code-remote-ssh-connection-not-working/72051978?utm_source=openai))\n\n4. **VS Code server on remote is corrupted or mis-configured**  \n   - The Remote-SSH connection has a VS Code server component installed remotely (often in `~/.vscode-server`). If that gets corrupted or a part of it fails (binary missing, incorrect permissions), it can prevent features like Outline from working.  \n   - Deleting `.vscode-server` (or at least the `bin` folder inside it) and reconnecting forces a fresh install and often solves issues.  \n   ([stackoverflow.com](https://stackoverflow.com/questions/64034813/vs-code-remote-ssh-connection-not-working?utm_source=openai))\n\n5. **Remote host environment limitations**  \n   - Old Linux versions, minimal installs, or OS variants lacking glibc (or binaries/tools like `tar`) might break some Remote-SSH prerequisites.  \n   - Also, if the remote host is very low on resources (disk full, low memory), the language server process may silently fail.  \n   ([code.visualstudio.com](https://code.visualstudio.com/docs/remote/ssh?utm_source=openai))\n\n6. **Settings disabling symbols or outline**  \n   - There could be settings in your workspace or globally that disable symbol providers or disable outline.  \n   - For example, `\"outline.enabled\": false` or Python analysis being turned off, or language server diagnostics/symbols disabled.  \n   - Also ensure the shortcut `Ctrl+Shift+O` is still bound to `workbench.action.gotoSymbol` and hasn\u2019t been remapped.  \n   ([reddit.com](https://www.reddit.com/r/vscode/comments/1s82p9y/vs_code_suddenly_stopped_linting_python_local_ssh/?utm_source=openai))\n\n---\n\n## What To Try (Order of Fix Attempts)\n\nHere\u2019s a sequence to troubleshoot and hopefully resolve it:\n\n1. **Open the Output panel** \u2192 select \u201cPython\u201d or \u201cPylance\u201d \u2192 see if there are errors or messages about symbol providers, missing binaries, or failures.\n\n2. **Confirm interpreter**  \n   - Press `Ctrl+Shift+P`, run **Python: Select Interpreter**, check it\u2019s for the remote.  \n   - Sometimes the interpreter is local by accident.\n\n3. **Verify Extensions Remotely**  \n   - In the Extensions view, scroll down to the \u201cRemote \u2014 SSH: [host]\u201d section.  \n   - Make sure the Python / Pylance / relevant language server extension is installed/enabled there.\n\n4. **Delete or reset the remote server components**  \n   - SSH into the remote host via normal terminal.  \n   - Remove `~/.vscode-server` or at least `~/.vscode-server/bin`.  \n   - Reconnect via Remote-SSH \u2192 the server gets reinstalled.  \n   ([stackoverflow.com](https://stackoverflow.com/questions/64034813/vs-code-remote-ssh-connection-not-working/72051978?utm_source=openai))\n\n5. **Check remote system basics**  \n   - Ensure required tools are installed: `tar`, a reasonably up-to-date glibc, etc.  \n   - Check disk usage (e.g. `df -h`) to make sure there\u2019s space.  \n   - Check permissions on project files / directories.\n\n6. **Verify that outline command is active**  \n   - Open a remote Python file.  \n   - Either use `Ctrl+Shift+O`, or via Command Palette use \u201cGo to Symbol in File\u2026\u201d. If still nothing, problem remains with symbols provider.\n\n7. **Inspect settings**  \n   - Look in settings.json (remote workspace or global) for any overrides disabling outline or symbol providers.  \n   - Also check keybindings if shortcut is overloaded or disabled.\n\n---\n\nIf you want, I can guide you with commands or logs to narrow down exactly what's failing on your setup. Do you want help debugging this live on *your* remote host?"
    }
]