vim-cellmode icon indicating copy to clipboard operation
vim-cellmode copied to clipboard

error on command execution

Open jonathaw opened this issue 8 years ago • 5 comments

Hi,

first of all, great plugin! just what i was looking for! i'm getting a wierd error when I try to run a line, instead of running, vim adds this line to the buffer: ad -y /tmp/vMZ0ura/8.ipy

increasing the number *.ipy everytime i try it again.

could this be because I'm running on a remote machine (through ssh) and don't have write permission for /tmp/? if so, coult you add a variable that we can set for a different location for tmp files?

thanks!!

jonathaw avatar Apr 25 '17 10:04 jonathaw

Hey, sorry for the delayed response. I am using tempname() to generate temporary files. You can control the dircetory in which it is creating file with the TMPDIR envvar. Can you try starting vim with something like

TMPDIR=$HOME/tmp vim

and see if it solves the problem ?

julienr avatar May 06 '17 08:05 julienr

Hi,

thanks for helping!

I now get this in my tmux-ipytohn: `In [1]:

In [1]: %load -y /tmp/vt6Jm8b/6.ipy

In [2]: # %load -y /tmp/vt6Jm8b/6.ipy ...: print('aaa') ...: aaa

In [3]: %load -y /tmp/vt6Jm8b/7.ipy

In [4]: # %load -y /tmp/vt6Jm8b/7.ipy ...: print('aaa') ...: aaa

In [5]: %load -y /tmp/vt6Jm8b/8.ipy

In [6]: # %load -y /tmp/vt6Jm8b/8.ipy ...: print('aaa') ...:`

when I try to execute print('aaa')....

any suggestions?

jonathaw avatar May 08 '17 09:05 jonathaw

What version of ipython are you using ? I'm not sure this still works with pre 4.0 versions.

julienr avatar May 08 '17 17:05 julienr

IPython 5.3.0...

jonathaw avatar May 11 '17 15:05 jonathaw

Sorry for the delayed response...

The output you posted looks fine. The %load lines are how ipython actually loads the files written by vim-cellmode to the temporary folder. And in [2] and [4] it seems to actually execute the print(aaa).

julienr avatar Jun 07 '17 21:06 julienr