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

Diagnostics are not shown for tests #94

Open
alexveden opened this issue Jan 4, 2025 · 1 comment
Open

Diagnostics are not shown for tests #94

alexveden opened this issue Jan 4, 2025 · 1 comment

Comments

@alexveden
Copy link

Describe the bug
Inline diagnostics are not shown in code for test files (dedicated @test modules).

image

Desktop (please complete the following information):

  • OS: Linux
  • Editor Vim
  • Version LSP built from master

Additional context
I think the problem that tests are build with different command, to make the error message we need to run:

~/code/c3_advent ➜ c3c test --test
Error|c3_advent/test/test_foo.c3|7|32|Expected ';'
@pherrymason
Copy link
Owner

Diagnostics are fetched by compiling the code with c3, and displaying the errors it throws. Maybe the compiler is ignoring the tests and that's why no diagnostics are shown. Will invistigate

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

2 participants