Sublime Forum

Sublime 3 vers 4152 syntax issue

#1

Good afternoon.
so I recently updated my sublime text to the latest version and all files now fail because somewhere sublime is saying to use \\ instead of \ when calling

[cmd: ['py', '-m', 'py_compile', 'C:\\BC\\Files\\Scripts\\login2.py']]

so I have scoured the forums for the past few hours, and added system paths, and my forum search and google-fu has failed me.
#1 why did the sublime update cause this to happen
#2 where on earth is this setting located in any of the sublime settings files?

Thanks.

0 Likes

#3

0 Likes

#4

The \\ in the diagnostic output is not the same thing as what is actually being used for the execution; it’s an artifact of how the debug output is captured and displayed (because sequences that start with \ are special to programming languages). So, that is unlikely to be your problem.

In regards to Python builds, the change that happened between ST3 and ST4 is that the build system uses py instead of python on Windows because the most common problem people had with running Python programs from Sublime were caused by them installing Python without adding it to the path. However, Python has a py launcher which can find the correct Python install even if it’s not on the path, and py is installed into the Windows system folder where it’s always available.

This causes issues for people that never told their Python installer to install the py launcher (or if you are using a Python variant that does not include one), because now the build system is trying to launch a thing that does not exist.

Presuming that your system actually has Python installed, more information on this and how to resolve it can be found in the video below. If you don’t have Python installed, then you should do that first (but based on your screenshot, you likely do since there seems to be something Python related on your PATH).

0 Likes

#5

thanks for that video. I didn’t initially look at it because my sublime still states it was 3, and didn’t know if it was just for 4. anyways, I made a new build file and it is still kicking back that error. if I understand, it is not windows rejecting the double \, but something different? I mean I get python through the MS $tore, which is why I have the long path, I added the python.exe explicitly, because the path that it added was just to the containing folder for all ms apps. so path is there. in fact path for the app as well as for the work directory is in there. so if it is not because of the double \ , and is not the path, is it worth it to reinstall sublime?

0 Likes

#6

actually. thank you. I did a reinstall, and now it is working, but it seems I am now missing a code dependency that is no longer there… but at least It is no longer kicking back the error.

1 Like