Comments (10)
The completion only work when you press Tab, maybe you're expecting it to show up automatically ? (not currently implemented)
If that's not the case, Just to double check you should have enable_rust_analyzer = true
and then you can test with something like std::process::Com<TAB>
Then I guess the second thing to check is does a rust-analyze process gets created when you run irust ? you can check after starting it , in top or similar utility.
If that's the case , I guess the next step to add some dbg! here https://github.com/sigmaSd/IRust/blob/master/crates/irust/src/irust/ra/rust_analyzer.rs
from irust.
Tried tab and shift and tab but nothing, not just for use statements nothing gets autocomplete at all.
from irust.
That's weird, rust analyzer seem to have spawned so it's an issue in the cominucation for some reason
Can you dbg! completion_request line, character here https://github.com/sigmaSd/IRust/blob/master/crates/irust/src/irust/ra/rust_analyzer.rs#L157 after you press tab (while having some input to complete)
If you're a flatpak user , can you try the flatpak just for testing (link in the readme)
from irust.
Also you should comment this line out to see if the lsp server is complaining https://github.com/sigmaSd/IRust/blob/master/crates/irust/src/irust/ra/rust_analyzer.rs#L28
from irust.
Also you should comment this line out to see if the lsp server is complaining https://github.com/sigmaSd/IRust/blob/master/crates/irust/src/irust/ra/rust_analyzer.rs#L28
By this, i could saw the rust-analyzer was not installed and after installing it, completion works.
However unlike evcxr, only the functions are autocompleted and the variables are not auto completed. I see there is an option in rust-analyzer called "rust-analyzer.completion.privateEditable.enable", so I tried setting that in rust_analyzer.rs but still getting filled only with the functions, if it possible to fill the variables on tab?
from irust.
@vsndev3 I pushed a commit that add that feature f74f7a8
from irust.
Thanks for quick response. However I see the same behavior. In Vscode with rust-analyzer the same struct extends correctly.
Any way to print more logs to see output of rust-analyzer?
from irust.
Just for sanity check make add dbg!(&initialize_request); to make sure you're sending the new parmas
If that doesn't work make I have a small suspicion that a request workspace/didChangeConfiguration
is needed, but it works for me without it
from irust.
you need to redirect stderr to make sense of the output cargo r 2>log
from irust.
Just for sanity check make add dbg!(&initialize_request); to make sure you're sending the new parmas
If that doesn't work make I have a small suspicion that a request
workspace/didChangeConfiguration
is needed, but it works for me without it
Thanks, It's working for me also. Seems I have missed clean build.
from irust.
Related Issues (20)
- Use `rustyline` or `reedline` for input? HOT 1
- Move theme settings from config.toml to themes config
- Improve Jupyter kernel support HOT 7
- typing twice in windows with crossterm-0.26+ HOT 2
- Can irust repl evaluate code with release mode instead of debug mode? HOT 3
- Cannot use two `irust_repl`s at the same time. HOT 27
- Rust analyzer is not working on Windows HOT 6
- Interactive usage HOT 3
- IRust installation fails due to use of unstable library feature 'once_cell' HOT 3
- FileNotFoundError while `python -m irust_kernel.install` HOT 1
- cargo-edit requires --path argument for a local dependency after version 0.9.1 HOT 2
- irust doesn't display Thai text properly. HOT 1
- Unclear documentation on importing local crates HOT 5
- untitled issue HOT 4
- Proposal: Split eval output HOT 3
- Option to specify config.toml path HOT 6
- Support nREPL protocol? HOT 2
- Failed to format error output HOT 2
- Logo missing on Jupyter lab launcher page HOT 3
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 irust.