Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

tracking issue: crashing/not working #773

Closed
5 of 12 tasks
nrc opened this issue Mar 16, 2018 · 8 comments
Closed
5 of 12 tasks

tracking issue: crashing/not working #773

nrc opened this issue Mar 16, 2018 · 8 comments
Milestone

Comments

@nrc
Copy link
Member

nrc commented Mar 16, 2018

@nrc nrc added this to the 1.0 milestone Mar 16, 2018
@nrc
Copy link
Member Author

nrc commented Mar 16, 2018

TODO - there are a bunch of similar bugs reported in the rls-vscode repo

@Diggsey
Copy link

Diggsey commented Apr 15, 2018

Updated RLS to latest version as of today, here's a selection of errors from the logs:

ERROR 2018-04-15T15:33:00Z: racer::cargo: ERROR!: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." } C:\Users\appveyor\.cargo\registry\src\github.com-1ecc6299db9ec823\racer-2.0.13\src/racer\cargo.rs 492
thread 'request-worker-2' panicked at 'byte index 18446744073709551615 is out of bounds of `extern crate rouille;

extern crate dotenv;
extern crate chrono;
extern crate pretty_env_logger;

extern crate threadpool;

extern crate webhooks;
#[macro_use]
extern crate failure;


use std::{thread, env};
use std::time::Duration;
use std::sync::Arc;
use`[...]', libcore\str\mod.rs:2240:9
thread '<unnamed>' panicked at 'missing key in compiler_jobs', libcore\option.rs:916:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', libcore\result.rs:945:5
thread 'main' panicked at 'Out of order or duplicate change', tools\rls\src\actions\mod.rs:270:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.

@nrc
Copy link
Member Author

nrc commented Apr 15, 2018

@Diggsey what is the date of the nightly? And could you try again with today's (when its released). The Racer issue shouldn't crash the RLS, should just give sub-optimal code completion. The second error should be fixed. I hoped the third error should be fixed last week, but perhaps it is triggered by one of the previous crashes. In any case I'd be interested if it still happens, especially if it happens reliably (and I can get access to the project it's crashing for) - reproducing these crashes is the hardest part right now.

@kngwyu
Copy link
Contributor

kngwyu commented Apr 16, 2018

@Diggsey
About racer's bug, it's because racer tries to resolve dependencies manually by only Cargo.toml and Cargo.lock, without checking registry.
These kind of bugs are now fixed in my branch by kngwyu/racer-nightly#3, but I'm really not sure this will be merged into upstream.

@Diggsey
Copy link

Diggsey commented Apr 16, 2018

@nrc what about the fourth error? That's happening for me pretty regularly right now.

thread 'main' panicked at 'Out of order or duplicate change', tools\rls\src\actions\mod.rs:270:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.

The problem is that it occurs when editing, not just from a particular project, but it happens all the time for me on any project.

@nrc
Copy link
Member Author

nrc commented Apr 19, 2018

I've been trying to investigate. I think what is happening is that the RLS is crashing for some other reason and then when it restarts, it's sequence numbers are out of sync with the editors, giving rise to the 'out of order' error.

@nrc
Copy link
Member Author

nrc commented Apr 19, 2018

This seems to be a bug either in the extension or VSCode - if the RLS crashes, and is then restarted, VS Code sends both the changes twice to the new RLS, crash again and we send the message three times, etc.

@nrc
Copy link
Member Author

nrc commented Apr 19, 2018

I just landed a fix on master which should cope with duplicate onChange notifications, though a better fix would be on the client side.

@nrc nrc closed this as completed Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants