GithubHelp home page GithubHelp logo

Comments (8)

oblitum avatar oblitum commented on June 15, 2024

@ovidius72 try to provide more detail taking coc.nvim issue template as a model: https://raw.githubusercontent.com/neoclide/coc.nvim/master/.github/ISSUE_TEMPLATE/bug_report.md. It's hard to have an idea without info.

from coc-rust-analyzer.

fannheyward avatar fannheyward commented on June 15, 2024

Do you test with a single rust file or a project with Cargo.toml ?

from coc-rust-analyzer.

ovidius72 avatar ovidius72 commented on June 15, 2024

It's a project with cargo.toml file.
I did more tests and found this.
I've created a file user.rs under the src directory. Working on that file auto completion does not work until you go in the main.rs file and import it with mod user;. Doing that I can see that everything work just fine. So it seems that it only works if you use that module in the main.rs file, otherwise not.
Can you please test if this is the same for you ? thanks
I'm learning rust so it could be that I'm doing it wrong but I suppose that all .rs files should be detected by rust-analyzer.

from coc-rust-analyzer.

fannheyward avatar fannheyward commented on June 15, 2024

You can test your code with VSCode+rust-analyzer to make sure it works or not.

from coc-rust-analyzer.

ovidius72 avatar ovidius72 commented on June 15, 2024

thanks @fannheyward It doesn't work in VSCode+ra . The same thing happens. I don't know if it is the wanted behavior but this has nothing to do with coc-rust-analyzer. If it is an issue, it is related to rust-analyzer itself.
Thanks.

from coc-rust-analyzer.

mcchrish avatar mcchrish commented on June 15, 2024

Had the same issue after upgrading the rust-analyzer binary to 2020-04-27. So I manually download and replace the installed binary to https://github.com/rust-analyzer/rust-analyzer/releases/tag/2020-04-20 and now works again.

@fannheyward is there an option to let this plugin choose which version of rust-analyzer to install? That would be handy in cases like downgrading to some version specially since rust-analyzer is not yet stable.

from coc-rust-analyzer.

fannheyward avatar fannheyward commented on June 15, 2024

The latest release is 2020-05-04, you can test the new release.

from coc-rust-analyzer.

ovidius72 avatar ovidius72 commented on June 15, 2024

the problem is here I guess: rust-lang/rust-analyzer#4177

from coc-rust-analyzer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.