Content assist, Outline view and hovering doesn't work. Wrong settings or bug?
See original GitHub issueContent assist works only once on every Eclipse restart. Outline view and hovering never work. Is it possible to use Eclipse IDE for Rust with Debian version of rust?
I start Eclipse, write io:: <Ctrl+Space> => io::stdin() <.> => io::stdin().read_line(); Completion works. If I try to do it once again on the next line after io:: It doesn’t work and shows only unimplemented, println, for and some other global common variants. Also hovering on foo doesn’t mark occurences.
Here is the test code I found somewhere here on issues.
use std::io;
fn main() {
io::stdin().read_line(buf); // Content assist worked well here.
io::stdin(). // Here didn't.
let foo = 1; // Howering here does nothing.
{
let foo = 2;
println!("{}", foo);
}
println!("{}", foo);
}
Commands outputs below
rustc --version
rustc 1.24.1
rustup toolchain list
stable-x86_64-unknown-linux-gnu
1.24.1-x86_64-unknown-linux-gnu (default)
pgrep -l rls
13743 rls
cat /proc/13743/cmdline /home/***/.rustup/toolchains/1.24.1-x86_64-unknown-linux-gnu/bin/rls
IDE Settings:
IDE Error log:
IDE download from official website with built-in Corrosion, EGit, etc… default eclipse.ini wasn’t changed.
** Info** Eclipse IDE for Rust Developers Version: 2018-12 (4.10.0) Build id: 20181214-0600 Corrosion: Rust edition in Eclipse IDE 0.3.0.201812040953 OS: Debian 9.6 rustup installed via Eclipse but I want to use 1.24.1 toolchain installed from Debian repo. Installed packages: rustc, rust-src, rust-gdb
Issue Analytics
- State:
- Created 5 years ago
- Comments:24 (16 by maintainers)
Ok. With latest snapshots the problem disappeared.
@norru I’ve installed lsp4e and Corrosion from the snapshots and now the problem with event loop exception disappeared but completion still doesn’t work and shows ‘no proposals’. On hovering on ‘ex’ I see ‘no field
ex
on type std::result::Result<usize, std::io::Error>’ and now on every completion list shown (for example after dot . operator) there is new warning P.S. This is a new org.eclipse.corrosion.rls.log from snapshot version of lsp4e. Corrosion: Rust edition in Eclipse IDE 0.4.0.201901091242 Language Server Protocol client for Eclipse IDE (Incubation) 0.9.0.201901110651