SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

Sent code appears in Cmder but is deleted from command line before it's run

Open dylanhogan opened this issue 4 years ago • 4 comments

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"
	}
}

dylanhogan avatar Nov 19 '19 16:11 dylanhogan

Are you using ipython? I suggest using ipython and turn on ctrl+v_to_console.

randy3k avatar Nov 20 '19 02:11 randy3k

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.

dylanhogan avatar Nov 20 '19 14:11 dylanhogan

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.

randy3k avatar Nov 20 '19 18:11 randy3k

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.

randy3k avatar Nov 20 '19 21:11 randy3k