Closed joshring closed 3 months ago
Describe the bug Once an error is detected, it does not disappear once the error is resolved
To Reproduce Example code
module test1; import std::io; fn int! example_fn() { // comment out this part to see the error will still remain defer (try err) { // error in this part io::printf("enterring defer try\n"); // io::printf("value: %s\n", value); io::printf("exiting defer try\n"); } // return io::IoError.FILE_NOT_FOUND?; return 2; } fn void! main() { int !res = example_fn()!; if(try res) { io::printf("res :%d\n", res); } return; }
then comment out the defer (try err) but the error highlighting will remain even after commenting out
defer (try err)
Expected behavior Expected the error highlighting to be removed once the, part having the error was commented out
Screenshots
Desktop (please complete the following information):
OS:
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04 LTS Release: 24.04 Codename: noble
Editor: Visual Studio Code
code --version 1.92.2 fee1edb8d6d72a0ddff41e5f71a671c23ed924b9 x64
git latest:
commit 677355d4ddef8b0aec6579807b8181efa6c36752 (HEAD -> main, tag: v0.2.0, origin/main, origin/HEAD)
c3c is at git latest:
./c3c -V C3 Compiler Version: 0.6.2 (Pre-release, Aug 27 2024 08:28:14) Installed directory: /home/josh/git/c3_tests/c3c/build/ Git Hash: 484a9acc6f0c506592ab771e26683633c58b5174 LLVM version: 18.1.3 LLVM default target: x86_64-pc-linux-gnu
Additional context Add any other context about the problem here.
Describe the bug Once an error is detected, it does not disappear once the error is resolved
To Reproduce Example code
then comment out the
defer (try err)
but the error highlighting will remain even after commenting outExpected behavior Expected the error highlighting to be removed once the, part having the error was commented out
Screenshots
Desktop (please complete the following information):
OS:
Editor: Visual Studio Code
git latest:
c3c is at git latest:
Additional context Add any other context about the problem here.