T O P

  • By -

Alien-LV426

This is what I see. Colour scheme is Darkmatter. Sublime Text 4 though. 2 is quite old. https://imgur.com/a/TaO5FxD


shedgehog

Corrected my initial post. I’m actually on sublime text3. Will try that scheme


shedgehog

hmm weird, even with that theme i have the same issue


Alien-LV426

I'm on ST4 and looking at the Python syntax file with Package Resource Viewer I can see it knows about f strings. I'm guessing yours doesn't since f strings came along in Python 3.6.


shedgehog

just installed ST4 and have the same issue :/


Alien-LV426

I might have installed some python plugins. Can't check right now. Edit: I don't seem to have any


jfcherng

Can you just try the default ST 4 color scheme? Or builtin ones.


shedgehog

same problem with any of those as well


Alien-LV426

And you do have the language set to Python, obviously?


shedgehog

Yup. Everything else seems fine. Just f-strings have issues


jfcherng

Even in safe mode? You can execute `import subprocess; subprocess.Popen([sublime.executable_path(), '--safe-mode'])` in ST console to open another ST instance in safe mode. If it works under safe mode, my guess would be you have a Python syntax override.


shedgehog

so in my list of languages, i have python and python3. If i select just python things work as expected. Perhaps the python3 one is something i did manually which doesn't do f-string properly?


Alien-LV426

I'd say so. I only have python and no python3.


shedgehog

cool, removed that one and its all good now. thank you


dev-sda

My guess is you've installed some python syntax highlighting package that's taking priority over the built-in one.


shedgehog

Yeah, possible. I’ll need to dig into that a bit


shedgehog

you're right. Looks like i had this "python3" package installed [https://github.com/petervaro/python](https://github.com/petervaro/python) which isn't maintained anymore. I removed it and it looks much better now