Skip to content

Flycheck entirely broken for cg_clif #12845

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

Closed
bjorn3 opened this issue Jul 22, 2022 · 3 comments
Closed

Flycheck entirely broken for cg_clif #12845

bjorn3 opened this issue Jul 22, 2022 · 3 comments
Labels
A-flycheck issues with flycheck a.k.a. "check on save" C-bug Category: bug

Comments

@bjorn3
Copy link
Member

bjorn3 commented Jul 22, 2022

rust-analyzer version: rust-analyzer version: 0.3.1131-standalone (897a7ec 2022-07-17)

rustc version: rustc 1.64.0-nightly (263edd43c 2022-07-17)

relevant settings: rust-analyzer.linkedProject is set in .vscode/settings.json inside the cg_clif repo. It includes the main crate which I edited. No relevant settings at user level.

When introducing a deliberate non-syntax error I don't get any errors from flycheck. Syntax errors are reported though.

[Trace - 5:55:06 PM] Sending notification 'textDocument/didSave'.
Params: {
    "textDocument": {
        "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs"
    }
}


[Trace - 5:55:06 PM] Received request 'window/workDoneProgress/create - (146)'.
Params: {
    "token": "rustAnalyzer/cargo check"
}


[Trace - 5:55:06 PM] Sending response 'window/workDoneProgress/create - (146)'. Processing request took 0ms
No result returned.


[Trace - 5:55:06 PM] Received notification '$/progress'.
Params: {
    "token": "rustAnalyzer/cargo check",
    "value": {
        "kind": "begin",
        "title": "cargo check"
    }
}


[Trace - 5:55:06 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {
    "changes": [
        {
            "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs",
            "type": 2
        },
        {
            "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs",
            "type": 2
        },
        {
            "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs",
            "type": 2
        },
        {
            "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs",
            "type": 2
        },
        {
            "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs",
            "type": 2
        },
        {
            "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs",
            "type": 2
        },
        {
            "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs",
            "type": 2
        },
        {
            "uri": "file:///home/gh-bjorn3/cg_clif/src/value_and_place.rs",
            "type": 2
        }
    ]
}


[Trace - 5:55:06 PM] Received notification '$/progress'.
Params: {
    "token": "rustAnalyzer/cargo check",
    "value": {
        "kind": "end"
    }
}
@bjorn3 bjorn3 added C-bug Category: bug A-flycheck issues with flycheck a.k.a. "check on save" labels Jul 22, 2022
@lnicola
Copy link
Member

lnicola commented Jul 22, 2022

Does cargo check actually report any errors?

@bjorn3
Copy link
Member Author

bjorn3 commented Jul 22, 2022

Gotcha

error[E0514]: found crate `cfg_if` compiled by an incompatible version of rustc

Looks like something got messed up when switching between nightly versions without cargo clean. cargo clean did the trick.

@bjorn3 bjorn3 closed this as completed Jul 22, 2022
@lnicola
Copy link
Member

lnicola commented Jul 22, 2022

Shouldn't we report that error? 😬

See also #12808 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-flycheck issues with flycheck a.k.a. "check on save" C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants