Open asfaltboy opened 6 years ago
same here, it's because f-string parser work on python3.3 -> need to be upgrade to 3.6 minimal
Ooops, my bad! I forgot that I added support for pluggable python version a while back, and didn't update the docs.
Check out the PR here and let me know if it's sufficiently clarifying.
tl;dr sublime ships with 3.3. specify a path to python with desired version in your build system via:
"python_executable": "/usr/local/opt/python/bin/python3.7",
Ooops, my bad! I forgot that I added support for pluggable python version a while back, and didn't update the docs.
Check out the PR here and let me know if it's sufficiently clarifying.
tl;dr sublime ships with 3.3. specify a path to python with desired version in your build system via:
"python_executable": "/usr/local/opt/python/bin/python3.7",
it's not help
{
"build_systems":
[
{
"python_executable": "/Users/user/path/automation-services/.venv/bin/python3",
"cmd": [
"/Users/user/path/automation-services/.venv/bin/pytest",
"{filename}::{test_func}",
"-k {selection}"
],
"name": "Pytest Runner",
"target": "run_python_tests",
"working_dir": "/Users/user/path/automation-services",
"external": true // with this and without
}
]
}
i still have error f-string
What version is /Users/user/path/automation-services/.venv/bin/python3
run python3 -V
?
If running this "Pytest Runner" build fails it should throw an exception in the console, can you show me the full traceback?
@dc-avasilev have you had any chance to look into the logs?
You could also try to enable SublimeTestPlier's verbose logging by adding "debug": true
to your SublimeTestPlier.sublime-settings
file. This will output your kwargs, as well as many of the calls in the test resolution flow.
For more information on editing user settings, see here: https://www.sublimetext.com/docs/3/settings.html
For example using f-strings in tests (a python 3.6 feature), causes a
SyntaxError
when passing the test module so urce toast.parse()
using the builtinpython3.3/ast.py
. Full traceback below: