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

runcmake fails when CMakeSettings.json has UTF8 BOM #8

Closed
Helco opened this issue Aug 6, 2019 · 0 comments · Fixed by #9
Closed

runcmake fails when CMakeSettings.json has UTF8 BOM #8

Helco opened this issue Aug 6, 2019 · 0 comments · Fixed by #9

Comments

@Helco
Copy link

Helco commented Aug 6, 2019

I had a weird error when using the runcmake task where it would fail right away with the following error message. Turns out this was due to CMakeSettings.json being saved as UTF8 with BOM, when changing the encoding to UTF8 (without BOM) using VSCode, the task could proceed.

SyntaxError: Unexpected token  in JSON at position 0
lukka added a commit that referenced this issue Aug 9, 2019
CMakeSettings.json
lukka added a commit that referenced this issue Aug 9, 2019
CMakeSettings.json
@lukka lukka closed this as completed in #9 Aug 9, 2019
lukka added a commit that referenced this issue Aug 9, 2019
fix #8 stripping BOM if present in CMakeSettings.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant