vscode-ruff icon indicating copy to clipboard operation
vscode-ruff copied to clipboard

Ruff perpetual loading on remote SSH

Open Orionnss opened this issue 6 months ago • 4 comments

Good afternoon, good morning,

I'm working on a Python project with VSCode, nothing really fancy, I manage my dependencies using uv and since I'm working with ML, I'm running my tests on a dedicated remote ssh server.

For the same code with same dependencies, it works well when I work in local, but in remote, I have a perpetual "loading..." and no apparent errors.

I don't know if it's a known bug, or it has to do with the network of my uni, but Pylance is working in the same conditions.

If you have any idea related to how I can better describe the problem, tell me.

Image

client logs

2025-07-02 10:54:24.832 [info] Module: ruff
2025-07-02 10:54:24.833 [info] Python extension loading
2025-07-02 10:54:24.833 [info] Waiting for interpreter from python extension.
2025-07-02 10:54:24.862 [info] Python extension loaded
2025-07-02 10:54:24.863 [info] Using interpreter: /home/user/projects/projectdir/.venv/bin/python
2025-07-02 10:54:24.865 [info] Workspace settings for /home/user/projects/projectdir: {
    "nativeServer": "auto",
    "cwd": "/home/user/projects/projectdir",
    "workspace": "file:///home/user/projects/projectdir",
    "path": [],
    "ignoreStandardLibrary": true,
    "interpreter": [
        "/home/user/projects/vote-based-hallucination-detection-benchmark/.venv/bin/python"
    ],
    "configuration": null,
    "importStrategy": "fromEnvironment",
    "codeAction": {
        "fixViolation": {
            "enable": true
        },
        "disableRuleComment": {
            "enable": true
        }
    },
    "lint": {
        "enable": true,
        "run": "onType",
        "args": [],
        "preview": null,
        "select": null,
        "extendSelect": null,
        "ignore": null
    },
    "format": {
        "args": [],
        "preview": null
    },
    "enable": true,
    "organizeImports": true,
    "fixAll": true,
    "showNotifications": "off",
    "exclude": null,
    "lineLength": null,
    "configurationPreference": "editorFirst",
    "showSyntaxErrors": true,
    "logLevel": null,
    "logFile": null
}
2025-07-02 10:54:24.867 [info] Global settings: {
    "nativeServer": "auto",
    "cwd": "/home/user",
    "workspace": "/home/user",
    "path": [],
    "ignoreStandardLibrary": true,
    "interpreter": [],
    "configuration": null,
    "importStrategy": "fromEnvironment",
    "codeAction": {
        "fixViolation": {
            "enable": true
        },
        "disableRuleComment": {
            "enable": true
        }
    },
    "lint": {
        "enable": true,
        "run": "onType",
        "args": []
    },
    "format": {
        "args": []
    },
    "enable": true,
    "organizeImports": true,
    "fixAll": true,
    "showNotifications": "off",
    "configurationPreference": "editorFirst",
    "showSyntaxErrors": true
}
2025-07-02 10:54:24.886 [info] Falling back to bundled executable: /home/user/.vscode-server/extensions/charliermarsh.ruff-2025.24.0-linux-x64/bundled/libs/bin/ruff
2025-07-02 10:54:24.890 [info] Resolved 'ruff.nativeServer: auto' to use the native server
2025-07-02 10:54:24.893 [info] Found Ruff 0.12.0 at /home/user/.vscode-server/extensions/charliermarsh.ruff-2025.24.0-linux-x64/bundled/libs/bin/ruff
2025-07-02 10:54:24.893 [info] Server run command: /home/user/.vscode-server/extensions/charliermarsh.ruff-2025.24.0-linux-x64/bundled/libs/bin/ruff server
2025-07-02 10:54:24.894 [info] Server: Start requested.

server logs

2025-07-02 10:54:24.907082978  INFO Configuration file watcher successfully registered

Orionnss avatar Jul 02 '25 09:07 Orionnss

Sorry you're running into this, and thanks for the report!

@dhruvmanila might have a better idea of what's going on here, but do you know if Ruff is installed and running on the remote machine? I'm not too familiar with VS Code's functionality around this, but I think that's how it works in Emacs.

Maybe phrased another way, is /home/user on your local or remote machine?

This may not turn out to be relevant, just something that came to mind.

ntBre avatar Jul 03 '25 17:07 ntBre

Can you say when does that "Loading..." popup happens? Like, is it in response to the hover request?

Also, does it occur even after you disable / remove the Ruff extension? I want to make sure that this is actually happening due to Ruff and not by another extension.

dhruvmanila avatar Jul 04 '25 03:07 dhruvmanila

Can you say when does that "Loading..." popup happens? Like, is it in response to the hover request?

Also, does it occur even after you disable / remove the Ruff extension? I want to make sure that this is actually happening due to Ruff and not by another extension.

It happens in response to the hover request, yes, and yes it stills happen when I disable/enable the ruff extension, reload the language server, and restart everything too.

Orionnss avatar Jul 10 '25 09:07 Orionnss

yes it stills happen when I disable/enable the ruff extension, reload the language server, and restart everything too.

No, I mean to say that does it happen when you remove the Ruff extension? Like, is it happening due to Ruff extension. Sorry if that's what you mean, I couldn't understand that.

dhruvmanila avatar Jul 10 '25 10:07 dhruvmanila