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_interpreter defined in project settings not used to start jsonserver.py #907

Open
jeffworne opened this issue Sep 14, 2021 · 1 comment

Comments

@jeffworne
Copy link

Expected Behaviour

When starting ST4, Anaconda uses the python_interpreter defined in project_name.sublime-project before other values of python_interpreter in Anaconda user or global settings to start jsonserver.py. This is expected since certain linting features depend on more recent versions of python (e.g type hints found in python3.6+).

Actual Behaviour

Anaconda uses the value of python_interpreter found in Anaconda.sublime-settings - User and, if not defined, uses the global settings value. It never uses the value found in project_name.sublime-project at startup. This means jsonserver.py may launch with the system python (e.g. python2.7) leading to syntax errors during linting (e.g. with type hints supported in python3.6+).

Steps to Reproduce

Fresh install of ST4 and Anaconda, create a new project and add python_interpreter in project_name.sublime-project settings. Check the python interpreter used to launch jsonserver.py and verify it does not match the one in the project settings file.

ST3, Anaconda and OS versions

ST4: Build 4113
Anaconda: v2.2.1
OS: OSX Big Sur 11.6

ST3 Console Logs

No log issues recorded.

Anaconda's JsonServer Logs

Note: Anaconda's JsonServer logs can be found in:

  • Linux: ~/.local/share/anaconda/logs
  • OS X: ~/Library/Logs/anaconda
  • Windows: %APPDATA\Anaconda\Logs

JSON server launches without issue, it just doesn't use the one defined in project_name.sublime-project.

@jeffworne
Copy link
Author

Just to add, this behavior also means the automatic shell_cmd switching of the python interpreter for the Anaconda Python Builder will not use the one found in project_name.sublime-project which is, arguably, more of an issue.

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

1 participant