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

Visual Studio project generator broken #649

Closed
jay opened this issue Feb 13, 2016 · 4 comments
Closed

Visual Studio project generator broken #649

jay opened this issue Feb 13, 2016 · 4 comments

Comments

@jay
Copy link
Member

jay commented Feb 13, 2016

>generate vc10
20743/ was unexpected at this time.

This is an unusual one. The command interpreter may still process special characters in REM comments in batch files, and in this case interprets a question mark in a URL as path globbing or some such.

>rem /?foo=bar/
bar/ was unexpected at this time.

Introduced in d49881c#diff-227457f73d3f44861a493547a1a5a59e

To remedy this I'm going to remove that NOTE. FYI @captain-caveman2k @vszakats

@jay jay closed this as completed in 464a1d0 Feb 13, 2016
@mback2k
Copy link
Member

mback2k commented Feb 13, 2016

Thanks @jay. @captain-caveman2k and I always wondered why vc10 fails.

@vszakats
Copy link
Member

@jay Sorry about this. Another, more generic solution would be to switch
to use :: as comment marker. It would resolve this issue and be more readable too.
It's supported way back into MS-DOS, so it should be safe:

:: https://blogs.msdn.microsoft.com/oldnewthing/20080926-00/?p=20743/

@vszakats
Copy link
Member

Patch:
vszakats@a197b88

@jay
Copy link
Member Author

jay commented Feb 13, 2016

It's not your fault, just a bug. I would argue it's a Windows bug but the way they document it you can't really be sure. I've programmed a lot of batch and I've never seen that happen before. I don't think it's necessary to change all .bat comments from rem to :: to address this issue. That note is stale anyway since we no longer set the errorlevel.

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants