SendCode
SendCode copied to clipboard
Sent code appears in Cmder but is deleted from command line before it's run
Hi,
I recently updated my package and have since encountered an odd issue when running code through SendCode to Cmder. In both terminal and python, code sent from a python script will appear in cmder briefly and immediately disappear (delete?), and then an empty command is executed. I tried removing all of my custom preferences, and the issue persists with the following minimal settings file:
{
"conemuc": "C:\\user\\cmder\\vendor\\conemu-maximus5\\ConEmu\\ConEmuC.exe",
"prog": "cmder",
"python":
{
"bracketed_paste_mode": true,
"ctrl+v_to_console": false,
"prog": "cmder"
}
}
Are you using ipython
? I suggest using ipython
and turn on ctrl+v_to_console
.
The issue I described appears in all scripts - including R code, Bash code, etc. So the ctrl+enter
functionality is necessary in my case regardless of whether I'm using ipython
.
The only case that I could reproduce your issue was when I was wrongly sending python code to bash or python (not ipython). In all other cases, it worked perfectly.
If you are sending python code, make sure the syntax is chosen as Python and you are using ipython
not the ordinary python
.
On the other hand, if you are sending an R command, make sure the syntax is R.