SendText icon indicating copy to clipboard operation
SendText copied to clipboard

New SyntaxError when sending multiple lines to Terminal

Open Auerilas opened this issue 9 years ago • 1 comments

SendText works great! Thanks for all of the work to make it. I just started to get a new error though. If I highlight multiple lines and hit Cmd+Enter to send them to Terminal, the lines run, but for some reason SendText (or SublimeText) started appending '--' to the end of the lines. The result is a SyntaxError:

For example, I sent the following five lines (including comments) to terminal by highlighting them in SublimeText and hitting Cmd+Enter. The lines run fine, but I receive:

>>> ### FRUIT MASS CLEAN
... # drop subplot 8D which is absnormally low
... fruitMass2 = fruitMass[~fruitMass['Subplot'].isin(['8D'])]
>>> #average by subplot
... fruitMass_Plot = fruitMass2.groupby(['Plot', 'Subplot', 'Temperature', 'Herbivory'], as_index = False)['FruitMass'].mean()
 >>> --
  File "<stdin>", line 1
    --
     ^
 SyntaxError: invalid syntax

This error doesn't appear if I run lines one by one, or cut and paste from Sublime into Terminal. So there's something weird about highlighting?

Auerilas avatar Mar 09 '16 23:03 Auerilas

My fault. This appears to be a problem w/ SendText Plus. I've migrated the issue to there.

Auerilas avatar Mar 23 '16 16:03 Auerilas