Skip to content

Writing harnesses under e.g. rust-analyzer gives a poor experience #1712

Closed

Description

@tedinski

Writing a harness, either under cfg(kani) or not, should leave people with a natural experience in their editors, including autocomplete, red-squigglies for errors, documentation, not being greyed-out, etc.

There are multiple issues to think about here, including:

  • Having the kani crate (etc) available
  • Dealing with cfg(kani) and cfg(test)

But there are likely further issues, because we've observed a customer not seeing errors at all (i.e. not even reporting kani as an unknown symbol.) We should investigate whether there are further issues on our side here...

Activity

  1. added
    [C] Bug
    on Sep 22, 2022
  2. self-assigned this
    on Oct 5, 2022
  3. celinval commented on Oct 5, 2022

    @celinval
    Contributor

    @tedinski / @adpaco-aws can you please try the following instructions for vscode? https://users.rust-lang.org/t/passing-feature-flags-to-rust-analyzer/45918/3

    Note that rust-analyzer does have a --all-targets option. So I don't think that's a rust-analyzer limitation.

  4. celinval commented on Oct 5, 2022

    @celinval
    Contributor

    For CLion, the option looks like:

    settings

  5. adpaco commented on Oct 5, 2022

    @adpaco
    Contributor

    I've that option on and it doesn't work for me (in VSCode).

  6. added
    [E] User Experience
    on Apr 24, 2023
  7. added a commit that references this issue on Jan 12, 2026
    7ab86a3
  8. added a commit that references this issue on Jan 14, 2026
    92d3365
  9. added this to the Autoharness milestone on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] Bug[E] User Experience

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions