You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I call for instance realgud:pdb on a on a python file that contains spaces in the name, the suggested command line to execute is similar to the following: python -m pdb /absolute/path/this\ is\ a\ test.py.
The debugger exits immediately with an error, printing the following lines:
Making font-lock-breakpoint-keywords buffer-local while locally let-bound!
using pdb mode map
Making kill-buffer-hook buffer-local while locally let-bound!
That’s all folks.... exited abnormally with code 1
The debugger starts correctly if I manually change the suggested line adding quotes this way: python -m pdb "/absolute/path/is a test.py"
Is there a way to change the default suggestion so that I don't have to manually change it every time?
The text was updated successfully, but these errors were encountered:
Here is what seems to be happening. realgud-suggest-invocation is what is suggesting the file in the invocation. It uses the shell-quote-argument function from subtr.el which decides to add the backslashes.
So far so good I suppose. Then in realgud: run-debugger the command line is parsed to try to figure out the file part of the script and if there are special options it might need to deal with. The function it uses there is split-string-and-unquote which is another function from subr.el Somewhere between these two standard Elisp functions packing and unpacking arguments isn't round tripping.
Maybe there is a better pair to use?
I'll note though that once the command is corrected, the corrected name gets into the history of invocations, and that can be used to retrieve the command.
If I call for instance realgud:pdb on a on a python file that contains spaces in the name, the suggested command line to execute is similar to the following: python -m pdb /absolute/path/this\ is\ a\ test.py.
The debugger exits immediately with an error, printing the following lines:
The debugger starts correctly if I manually change the suggested line adding quotes this way: python -m pdb "/absolute/path/is a test.py"
Is there a way to change the default suggestion so that I don't have to manually change it every time?
The text was updated successfully, but these errors were encountered: