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

Once an error is detected, it does not disappear once the error is resolved #59

Closed
joshring opened this issue Aug 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@joshring
Copy link

joshring commented Aug 27, 2024

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

Expected behavior
Expected the error highlighting to be removed once the, part having the error was commented out

Screenshots
image

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 677355d (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.

@pherrymason pherrymason added the bug Something isn't working label Aug 27, 2024
pherrymason added a commit that referenced this issue Aug 27, 2024
Fix VSCode extension reading arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@pherrymason @joshring and others