Sublime Forum

Custom Build System Stopped Working

#1

Very new to all this, apologies if this post is not up to par.

I’m learning Python. A project using pygame hasn’t been working. As I was trouble shooting, my Terminus build system suddenly stopped working. It simply returns a [Finished in ] dialogue and nothing else. If the code is broken, it will throw an error, but otherwise, just the Finished report.

Any advice on what I may have changed to break my build system? Bonus points for help with why pygame project was failing.

0 Likes

#2

The obvious reasons for a Python build just saying that it’s finished without saying anything else unless there is a problem are:

  1. Your build has a Syntax Check variant and you selected that one to build with; that only compiles the code but doesn’t run it. Use Tools > Build With... from a Python file to choose the version of the build that doesn’t have that.

  2. The code doesn’t display any output; this is generally caused by people trying to do something like 2 + 2 expecting the output to be 4, which only works in the REPL and not from within a script.

Without seeing the contents of your build it’s hard to say, but I would presume #1 is the kicker here, particularly if your Terminus build is based on the shipped Python.sublime-build build system (and it’s likely not #2 because pygame).

1 Like

#3

Thank you! I was getting frustrated, so I went ahead and deleted/rebuilt the system, which then worked fine. I’ll definitely refer back to this if I encounter the problem again.

0 Likes