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

CMake integration doesnt' work #55

Open
Steve132 opened this issue Jan 21, 2024 · 0 comments
Open

CMake integration doesnt' work #55

Steve132 opened this issue Jan 21, 2024 · 0 comments

Comments

@Steve132
Copy link

The merge to integrate cmake tools at

#51

Is a really cool addition that I (as a CMake user) desperately want.
however, it doesn't work.

The reason it doesn't work is because

https://github.com/harikrishnan94/cxx-compiler-explorer/blob/cb8d03d9e395c5bf1863ce5e6b1baeee7bec85c6/src/compdb.ts#L76C1-L76C82

tries to load the empty file, but fails when the file isn't there. This SHOULD trigger an exception which is caught by the except block, initializing the map with an empty map in the exception handler case...but for some reason its not. The exception passes through to the VsCode editor. Probably, ENOENT exceptions inside await blocks aren't caught by exception handlers? Or something? It seems unclear.

This issue means I can't use the CMake support.

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

No branches or pull requests

1 participant