I am not super fluent in Python or the ins-and-outs of Sublime Text packages and I am having a hard time trying to use a combination of SendCode and Terminus to run some Python code.
The first thing to note is that the code runs fine with a simple cmd+b build (aka results show up fine in Sublime native console with Python build).
When I run with SendCode however I keep getting an error that reads, "SyntaxError: multiple statements found while com piling a single statement". I've tried a couple of things to rule out issues and see what is going on:
I used a linter (Anaconda) to make sure the indentation and formatting was good.
I ran simple code through SendCode to make sure it worked (aka one line saying 'a = 5')
I sourced the file in a regular terminal window (python filename) and it produces the results.
I read through some of the older issues here about bracketed_passte_mode and tried adjusting the settings (from 'true' to 'false') but still can't get it to work.
I even tried to make a really simple multiline script to see if I could get it to work but still sometimes got the multiple statements issue if I highlighted the code block I intended to send (instead of hitting cmd enter one by one).
Anyway, I've tried a lot of things but can't seem to get it to work on my own. So I am looking for some help. Both packages seem really cool and I'd really like to use them.
I am not super fluent in Python or the ins-and-outs of Sublime Text packages and I am having a hard time trying to use a combination of SendCode and Terminus to run some Python code.
The first thing to note is that the code runs fine with a simple cmd+b build (aka results show up fine in Sublime native console with Python build).
When I run with SendCode however I keep getting an error that reads, "SyntaxError: multiple statements found while com piling a single statement". I've tried a couple of things to rule out issues and see what is going on:
I even tried to make a really simple multiline script to see if I could get it to work but still sometimes got the multiple statements issue if I highlighted the code block I intended to send (instead of hitting cmd enter one by one).
Anyway, I've tried a lot of things but can't seem to get it to work on my own. So I am looking for some help. Both packages seem really cool and I'd really like to use them.
think_complexity.txt