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

struct using serde_with loses code completion and navigation #10869

Open
devrandom opened this issue Sep 21, 2023 · 1 comment
Open

struct using serde_with loses code completion and navigation #10869

devrandom opened this issue Sep 21, 2023 · 1 comment

Comments

@devrandom
Copy link

Environment

  • IntelliJ Rust plugin version: 232.9921.62
  • Rust toolchain version: 1.71.0
  • IDE name and version: CLion CL-232.9559.58
  • Operating system: Ubuntu 22

Problem description

No navigation or completion for structs using serde_with.

See also #10573.

Steps to reproduce

    use serde_with::serde_as;
    use serde::Deserialize;

    #[serde_as]
    #[derive(Deserialize)]
    pub struct Xxx {
        pub f: String,
    }

    impl Xxx {
        fn new() -> Self {
            let s = Self { f: "".to_string() };
            s
        }
    }

Control-click on the Xxx in impl Xxx doesn't navigate, and trying to enter s. doesn't bring up any actual fields or methods for the struct as autocomplete suggestions.

@qarmin
Copy link

qarmin commented Oct 16, 2023

Looks like 0.4.197.5402-232 is the latest version, that works good and can be downloaded from:

https://plugins.jetbrains.com/plugin/8182--deprecated-rust/versions/stable

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