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

?Assumption about python interpreter #51

Open
SHuang-Broad opened this issue Jul 16, 2024 · 2 comments
Open

?Assumption about python interpreter #51

SHuang-Broad opened this issue Jul 16, 2024 · 2 comments

Comments

@SHuang-Broad
Copy link

There might be an assumption in the latest wdl-devtools that could be invalid for some user.

I'm in the process of switching to a new (Mac) computer.

When trying to use VSCode for viewing a WDL file on the new laptop, it is reporting the following.

WDL Language Server version: 0.0.90
/usr/local/bin/python3 -m venv /Users/shuang/.vscode/extensions/broadinstitute.wdl-devtools-0.0.90/out/.venv
spawn /usr/local/bin/python3 ENOENT


/Users/shuang/.vscode/extensions/broadinstitute.wdl-devtools-0.0.90/out/.venv/bin/python -m pip install --upgrade wdl-lsp
spawn /Users/shuang/.vscode/extensions/broadinstitute.wdl-devtools-0.0.90/out/.venv/bin/python ENOENT


[Error - 9:25:15 AM] wdl client: couldn't create connection to server.
Launching server using command /Users/shuang/.vscode/extensions/broadinstitute.wdl-devtools-0.0.90/out/.venv/bin/python failed. Error: spawn /Users/shuang/.vscode/extensions/broadinstitute.wdl-devtools-0.0.90/out/.venv/bin/python ENOENT

It looks like the venv wasn't successfully created, as /usr/local/bin/python3 doesn't exist (on the new machine, python3 is at /opt/homebrew/bin/python3).

@dinvlad
Copy link
Contributor

dinvlad commented Jul 17, 2024

I don't think the current version assumes the location, however what might be happening is that you'd need to set pythonPath to your Python interpreter in your workspace settings, as per https://github.com/broadinstitute/wdl-ide/blob/7808a6bd40bdadd9f5cb713ee34b69a53a7e4322/client/vscode/src/extension.ts#L84C74-L84C84

@SHuang-Broad
Copy link
Author

You are right!
I just needed to do the following in VSCode (Code -> Settings -> Settings)
Screenshot 2024-07-17 at 9 59 17 PM

Maybe need a documentation change?

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

2 participants