microsoft / microsoft/vscode-cpptools
Did not escape apostrophe in args
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Type: Debugger
Describe the bug
- OS and Version: WSL Ubuntu Hirsute
- VS Code Version: 1.55.0 insider
- C/C++ Extension Version: 1.3.0 insider
- Other extensions you installed (and if the issue persists after disabling them): doesn't matter
- A clear and concise description of what the bug is.
If args in launch.json contains the character ', that character is not escaped before passing to gdb.
I am encountering this issue when one of my args entries contains the character '.
To Reproduce
Pass anything to args that contains ', for example:
"args": [
"this-arg-isn't-working",
]
Additional context
The error was:
&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
zsh:1: unmatched '
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the launch.json args example on WSL Ubuntu and inspect the extension's handling of args before they are passed to gdb. The work is done when an argument containing an apostrophe reaches gdb without producing the unmatched-quote error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100