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

Python path #1

Open
schlaup opened this issue Apr 4, 2018 · 2 comments
Open

Python path #1

schlaup opened this issue Apr 4, 2018 · 2 comments
Assignees

Comments

@schlaup
Copy link

schlaup commented Apr 4, 2018

First, thank you for this great extension! It is exactly what I was looking for.

I had one issue:

I always got the message "Python 3 is required" and the extension did not start. I had Python 3 in my path and the terminal of VSCode did use Python 3. Setting pythonPath of the Python extension also did not help.

I investigated further and found out that the PlatformIO extension that I had installed uses version 2.7 of Python which is bundled with the extension. Somehow, your extension was using the Python version bundled with another extension.

It might be a bug with VSCode.

Anyway, it would be helpful if your extension had a pythonPath setting like the Python extension to choose the appropriate Python version.

@danixeee
Copy link
Member

danixeee commented Apr 4, 2018

Thank you for the feedback and I am glad that you like the extension.
Currently the extension is trying to find python version from $PATH by executing commands python --version and python3 --version if first command is python 2. Anyway, I didn't predict situation that you are facing, so I will add pythonPath to the extension configuration section and use python path from there.

@danixeee danixeee self-assigned this Apr 7, 2018
@danixeee
Copy link
Member

danixeee commented Apr 7, 2018

I have added a configuration section for textx-ls extension. Now you are able to add a path to python version that you want to use. Here is an explanation how to do it. Please let me know if it's working properly now. Thanks!

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

No branches or pull requests

2 participants