Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix the Anaconda linter showing errors for f-strings in Sublime Text 3?

Tags:

The error shown is simply "[E]" so I'm not sure how to exempt this error in the Anaconda preferences.

e.g. the linter error for print(f"Hello, world!") says "[E] invalid syntax"

like image 462
user5289979 Avatar asked Sep 19 '17 20:09

user5289979


1 Answers

Edit your users preferences of Anaconda and add this:

"python_interpreter": "python3",

I have read somewhere that it was a known bug of python. It's fixed in version 3.6.3, so maybe you have to update your python version also. Mine was 3.6.3, so I don't know if it's necessary to update.

like image 90
hito Avatar answered Oct 27 '22 11:10

hito