Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: ϵͳҲָ· in install_or_update #17

Open
maryjeck opened this issue Apr 11, 2023 · 14 comments
Open

Exception: ϵͳҲָ· in install_or_update #17

maryjeck opened this issue Apr 11, 2023 · 14 comments

Comments

@maryjeck
Copy link

plugins loaded
Package Control: Skipping automatic upgrade, last run at 2023-04-11 09:58:44, next run at 2023-04-11 10:58:44 or after
Unable to start subprocess for LSP-ruff
Traceback (most recent call last):
File "D:\sublime_text\Data\Installed Packages\LSP.sublime-package\plugin/core/windows.py", line 241, in start_async
plugin_class.install_or_update()
File "D:\sublime_text\Data\Packages\lsp_utils\st3\lsp_utils_client_handler\abstract_plugin.py", line 109, in install_or_update
server.install_or_update()
File "D:\sublime_text\Data\Packages\lsp_utils\st3\lsp_utils\server_pip_resource.py", line 100, in install_or_update
self.run(self.pip_binary(), 'install', '-r', dest_requirements_txt_path, '--disable-pip-version-check')
File "D:\sublime_text\Data\Packages\lsp_utils\st3\lsp_utils\server_pip_resource.py", line 35, in run
raise Exception(error)
Exception: ϵͳҲָ·

@LDAP LDAP changed the title Help , god please helpme , I got an error like this "Exception: ϵͳҲָ·" 'Exception: ϵͳҲָ·' in install_or_update Apr 11, 2023
@LDAP LDAP changed the title 'Exception: ϵͳҲָ·' in install_or_update Exception: ϵͳҲָ· in install_or_update Apr 11, 2023
@LDAP
Copy link
Collaborator

LDAP commented Apr 11, 2023

What's your LSP, ST and OS version?
Do you have Python installed?
Is the Python module venv (python3-venv in Linux repos) installed?

@maryjeck
Copy link
Author

I use ST4 in win11
I choose python3 in msys2, and I put the PATH to the system environment variable.

@LDAP
Copy link
Collaborator

LDAP commented Apr 12, 2023

What happens if you run python -m venv in a terminal?

@maryjeck
Copy link
Author

python -m venv : it show venv: error: the following arguments are required: ENV_DIR

python -m venv . : it create a environment.

@LDAP
Copy link
Collaborator

LDAP commented Apr 13, 2023

Can you check if there is an error in the LSP Log Panel? You can open the panel by executing the command LSP: Toggle Log Panel

@maryjeck
Copy link
Author

Is it means that " tools -> lsp -> Toggle Log Panel " ?
It shows me nothing.

@LDAP
Copy link
Collaborator

LDAP commented Apr 13, 2023

@rchl Do you have an idea?

@maryjeck
Copy link
Author

@rchl Do you have an idea?

It seams the wrong with lsp. the lsp can,t find path of pip or python in the msys2 .

图片

The lsp search "pip" in the path like "Scripts" ,but msys2 haven,t that path.

Can we set the ruff-lsp path in the config?

@rchl
Copy link
Member

rchl commented Apr 13, 2023

We can probably adjust the logic so that it works with msys2 also. Maybe instead of checking platform just check for existence of the directory.

Can we set the ruff-lsp path in the config?

I think you might be able to override command in LSP-ruff.sublime-settings but you'd be loosing the benefit of this package that automatically maintains the ruff server for you.

@maryjeck
Copy link
Author

// Settings in here override those in "LSP-ruff/LSP-ruff.sublime-settings"

{
"command": [
"D:\UsrCmd\msys64\ucrt64\bin\ruff-lsp.exe"
],
}

I set the config like this. It also show the error

@rchl
Copy link
Member

rchl commented Apr 13, 2023

More like this probably "command": ["D:\\UsrCmd\\msys64\\ucrt64\\bin\\ruff-lsp.exe"],

@maryjeck
Copy link
Author

maryjeck commented Apr 17, 2023

More like this probably "command": ["D:\\UsrCmd\\msys64\\ucrt64\\bin\\ruff-lsp.exe"],

图片

sorry,this web change the context.

@maryjeck
Copy link
Author

is it fixed?

@rchl
Copy link
Member

rchl commented May 10, 2023

No and I won't be looking into it myself.

I would suggest using native python instead of msysgit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants