user5289979
user5289979

Reputation: 201

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

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"

Upvotes: 20

Views: 3097

Answers (1)

hito
hito

Reputation: 408

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.

Upvotes: 31

Related Questions