microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.43k stars 430 forks source link

Filename not mentioned in error #3788

Open JVApen opened 1 month ago

JVApen commented 1 month ago

Brief Issue Summary

When using this extension to build via cmake, I'm getting the following error:

[rollbar] Unhandled exception: Unhandled Promise rejection: build SyntaxError: Unexpected non-whitespace character after JSON at position 186 {}

This error is quite useless to me as:

Can this error be extended with some information about the actual source of the JSON?

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

v-frankwang commented 1 month ago

@JVApen We're not particularly clear on this issue for your description, can you provide a program that can reproduce your problem?

JVApen commented 1 month ago

I don't have a distilled reproduction, though I don't expect this is needed.

The issue is that the error that is given is useless as it indicates some error inside a JSON without indicating where the JSON comes from. Without this, I can't know if this error is an issue in my setup or a bug in your code.

v-frankwang commented 1 month ago

@JVApen I'm very sorry that a simple project I created on my own could not reproduce the problem, so it's very necessary that you provide a simple project that can reproduce the problem, which will be very beneficial for our developers to investigate as well as to solve the problem.