Closed ArcticOc closed 7 months ago
Hmm. It could be because we fail to expand $HOME.
We have the same problem using environment variables like ${env:PYTHON_VERSION}
in path.
"ruff.path": [
"${workspaceFolder}/dist/export/python/virtualenvs/ruff/${env:PYTHON_VERSION}/bin/ruff"
]
The error message:
Interpreter executable (/workspace/dist/export/python/virtualenvs/ruff/${env:PYTHON_VERSION}/bin/ruff) not found
Seems like predefined variables are expanded, but not the environment variables.
I have a similar problem:
"ruff.format.args": [
"--config",
"~/AppData/Roaming/Code/User/pyproject.toml",
],
This worked fine until 2024.10.0
and throws the following error since 2024.12.0
:
[info] error: invalid value '~/AppData/Roaming/Code/User/pyproject.toml' for '--config <CONFIG_OPTION>'
Yeah, we're failing to expand things there. I will fix now.
Environment
Ruff: v2024.12.0 VSCode: 1.86.2 (Universal) OS: Mac Os 14.3
Description
Here is the error message.
This path value used to be fine, but it seems to be invalid after the most recent update to Ruff or VSCode.
Thanks!