Comments (8)
@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.
Do you test with a single rust file or a project with Cargo.toml ?
from coc-rust-analyzer.
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.
You can test your code with VSCode+rust-analyzer to make sure it works or not.
from coc-rust-analyzer.
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.
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.
The latest release is 2020-05-04, you can test the new release.
from coc-rust-analyzer.
the problem is here I guess: rust-lang/rust-analyzer#4177
from coc-rust-analyzer.
Related Issues (20)
- [coc.nvim] Rust Analyzer Language Server client: couldn't create connection to server. HOT 2
- Failed to load workspaces. HOT 3
- rust-analyzer failed to start in coc.nvim HOT 2
- unresolved import regex: maybe a missing crate regex? HOT 2
- Ubuntu22.04云主机UEFI版,源码安装vim9和coc.nvim后,用coc命令安装该插件后,发现rust插件不能正常运行 HOT 1
- couldn't create connection to server. HOT 2
- question: how to check which rust analyzer binary is being used HOT 1
- How to disable the documentation in pmenu HOT 1
- How to stop notes from showing-up in the editor? HOT 3
- Installation error on macOS M2 airbook
- The last two lines of doc comments are always missing in popup window. HOT 8
- rust-analyzer.completion.snippets.custom was not covered as expected, but was added instead HOT 1
- is rust-analyzer.checkOnSave.command deprecated? HOT 1
- Warning diagnostics underline formatting is using hint underline formatting.
- Extraneous backslashes in code-action auto completes HOT 7
- overly long loop turn warning on every few keytypes HOT 3
- codelens run, how to make the split configurable? HOT 4
- Performance issues, for a large number of header comments HOT 12
- Failed to activate after setting a http_proxy HOT 1
- backslash generated if we use extract into a function OR fill struct fields etc OR implement missing members HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-rust-analyzer.