Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support non-trivial command-lines for Compile Active File #1478

Closed
wants to merge 1 commit into from

Conversation

Trass3r
Copy link

@Trass3r Trass3r commented Oct 9, 2020

In particular macro definitions containing quotes and spaces.
The code was trying to be too clever, splitting the commandline into arguments and re-merging (the split args weren't even used/modified).
Just let the shell do its job.
NB: this doesn't fix #1227 (comment)

@bobbrow @andreeis

@bobbrow bobbrow added this to the 1.6.0 milestone Oct 12, 2020
in particular macro definitions containing quotes and spaces
fixes microsoft#969
fixes microsoft#1221
@Trass3r
Copy link
Author

Trass3r commented Jan 28, 2021

Rebased.

@elahehrashedi
Copy link
Contributor

@Trass3r Thank you for your contribution. Some part of this PR has been considered in: #1648. In the mentioned PR, there is a fix for substrings that include ' ' space. I can see your comments that the arguments haven't been used, however, we needed to fix the parsing algorithm to send the correct set of arguments to IntelliSense.
Again, thank you for your contribution.

@Trass3r
Copy link
Author

Trass3r commented Feb 4, 2021

This is not just about spaces but more so about arbitrarily complex shell expressions, one case was -DMACROSTR="\"Text with spaces\"", could also be mixing ' and " of course.

@elahehrashedi
Copy link
Contributor

@Trass3r thank you for your explanation. The PR is updated #1648. In case you are willing to test it, let us know about the test results under that PR.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C++ Compile Active File - doesn't work (Win 7)
3 participants