pimentel / atom-r-exec

Send R code to various R consoles from the Atom editor
https://atom.io/packages/r-exec
MIT License
19 stars 8 forks source link

Not working with iTerm 2.9 #31

Open thejmazz opened 8 years ago

thejmazz commented 8 years ago

Works with Terminal. Tried closing iTerm fully, then opening again, going to project dir, opening file with atom, starting R, then cmd+enter. Only one iTerm window, and its running R. Where to start looking?

For the time being its fine, I'll just have to use terminal lol

pimentel commented 8 years ago

@thejmazz thanks for the bug report. could you give me some more information? perhaps versions of:

Also, when it doesn't work, is anything output to the development console (View -> Developer -> Toggle Developer Tools)?

Thanks,

Harold

thejmazz commented 8 years ago

np.

Thing Version
Atom 1.6.0
r-exec 0.3.4
iTerm 2.9.20160313
OSX 10.11.3 (15D21)

The error is syntax error: Expected end of line but found identifier., coming from the child process I believe.

Heres some of the callstack:

screen shot 2016-03-23 at 10 46 29 pm screen shot 2016-03-23 at 10 45 17 pm
pimentel commented 8 years ago

This is helpful, thanks. Could you show me the code you are trying to send? (context isn't important, just what you are trying to send).

This is a bit weird. I am on Mac OS X 10.10... I'm wondering if this is some weird applescript issue.

thejmazz commented 8 years ago

Um, I was cmd+enter'ing on a source() line. But it was not working anywhere. and setwd wouldn't go through either.

source("ontology-explorer.r")
pimentel commented 8 years ago

Hi @thejmazz,

Have you tried the latest version? There is now a iTerm and iTerm2 mode since apparently some of the applescript API has changed. Can you try iTerm2 mode and see if it works? This is available in the latest release of atom-r-exec.

Thanks!

thejmazz commented 8 years ago

Sure, I'll update and try again soon.

sacul-git commented 8 years ago

Hi,

First of all, thanks for maintaining the R-exec package, it's great! I just wanted to let you know that I'm having the same problem as @thejmazz, running R-exec 0.3.5, iterm2 3.0.5, OSX 10.11.6, and Atom 1.9.7. R-exec works fine when I send to R.app or terminal, but not when I set "Which App" to iTerm2. I'm getting basically the same callstack as posted above. Just wondering if you've figured out what the issue is?