Comments (10)
Could be that Rls collapsed somehow, this error can happen when the server process has ended. The stderr output of the Rls may help.
Can you try updating your Rls to latest nightly rustup update nightly
and seeing if the error persists?
If so you can record the Rls stderr by overriding the Rls command.
# config.cson
"ide-rust":
rlsCommandOverride: "RUST_BACKTRACE=full rustup run nightly rls 2> ~/rls.log"
You may need to modify to get it working on mac, I'm not sure.
This should allow you to reproduce the error and look at rls.log
, or wherever you routed the stderr.
Unfortunately the stderr output from Rls can be a bit noisy but it may help point to a problem in Rls.
from atom-ide-rust.
@imp did you get a chance to test this again? I can't reproduce this myself at the moment.
from atom-ide-rust.
No, I never got a chance to reproduce that. Perhaps it has something to do with my Rust environment that has been changed since then.
from atom-ide-rust.
Ok thanks, I'm going to close this with the optimistic notion that this has been fixed upstream (atom-languageclient/rls). Please reopen if you start seeing it again.
from atom-ide-rust.
Bug is back:
[Enter steps to reproduce:]
- open atom
- edit any rust source file
Atom: 1.23.1 x64
Electron: 1.6.15
OS: win 10 1709 (Build 16299.125)
Thrown From: ide-rust package 0.8.0
Stack Trace
Uncaught Error: Connection is closed.
At C:\Users\p\.atom\packages\ide-rust\node_modules\vscode-jsonrpc\lib\main.js:613
Error: Connection is closed.
at /packages/ide-rust/node_modules/vscode-jsonrpc/lib/main.js:138:28)
at throwIfClosedOrDisposed (/packages/ide-rust/node_modules/vscode-jsonrpc/lib/main.js:613:19)
at Object.sendNotification (/packages/ide-rust/node_modules/vscode-jsonrpc/lib/main.js:667:13)
at LanguageClientConnection._sendNotification (/packages/ide-rust/node_modules/atom-languageclient/build/lib/languageclient.js:365:15)
at LanguageClientConnection.didChangeWatchedFiles (/packages/ide-rust/node_modules/atom-languageclient/build/lib/languageclient.js:167:10)
at ServerManager.projectFilesChanged (/packages/ide-rust/node_modules/atom-languageclient/build/lib/server-manager.js:248:33)
at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.23.1/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.23.1/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
at didChangeCallback (~/AppData/Local/atom/app-1.23.1/resources/app/src/project.js:350:28)
at PathWatcher.onNativeEvents (~/AppData/Local/atom/app-1.23.1/resources/app/src/path-watcher.js:671:15)
at ~/AppData/Local/atom/app-1.23.1/resources/app/src/path-watcher.js:567:31
at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.23.1/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.23.1/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
at NativeWatcher.onEvents (~/AppData/Local/atom/app-1.23.1/resources/app/src/path-watcher.js:448:26)
at handler (~/AppData/Local/atom/app-1.23.1/resources/app/src/path-watcher.js:177:15)
Commands
-2:25.3.0 core:move-left (input.hidden-input)
4x -2:24.5.0 core:backspace (input.hidden-input)
-2:23.5.0 core:save (input.hidden-input)
Non-Core Packages
atom-ide-ui 0.7.0
atom-material-syntax 1.0.7
atom-material-syntax-dark 1.0.0
atom-material-syntax-light 0.4.6
atom-material-ui 2.0.6
ide-rust 0.8.0
language-powershell 4.0.0
language-rust 0.4.12
minimap 4.29.7
from atom-ide-rust.
I concur - the issue is back. I've updated my Rust environment this morning and it pops up this backtrace window on the first keystroke in any window with Rust code.
➭ rustup show
Default host: x86_64-apple-darwin
installed toolchains
--------------------
stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin
active toolchain
----------------
nightly-x86_64-apple-darwin (default)
rustc 1.24.0-nightly (dc39c3169 2017-12-17)
from atom-ide-rust.
I also get this with the latest nightly Rls (rust 2017-12-17), after building it falls over after a stderr message fatal runtime error: allocator memory exhausted
. (Nice use of the new stderr logging though!)
Looks like this is a problem with Rls, which isn't too surprising as the build is failing over there at the moment.
We can use an earlier Rls until nightly is working, e.g. nightly-2017-12-12
works fine for me. Let me know if that's also the case for you guys.
from atom-ide-rust.
Btw logging/debugging is a little easier with the latest version see https://github.com/mehcode/atom-ide-rust#debugging
from atom-ide-rust.
changed to nightly-2017-12-12-x86_64-pc-windows-msvc and it works again. :)
thank you
from atom-ide-rust.
nightly Rls builds are back and working again
from atom-ide-rust.
Related Issues (20)
- long running 'cargo check' with high CPU usage
- How to install rust analyser ? HOT 1
- Installing “[email protected]” failed HOT 2
- Editor crashes when "main.rs" is empty
- some macros break syntax highlighting for long spans of code HOT 1
- ide-rust's use of rust analyzer results in extremely poor battery life HOT 1
- Old errors never (ever) clear out. HOT 1
- Unable to start rust-analyzer because of corrupt env vars HOT 4
- Apparently needs need another package to work
- Installing “[email protected]” failed. HOT 3
- Perpetual "rust-analyzer initializing for..." but no rust-analyzer process in `top` HOT 2
- Ctrl + Shift + C Not formating HOT 4
- "Ghost" window stays open after closing atom HOT 8
- Need more elaborate instruction on how to install rust-analyzer HOT 6
- Failed to load the ide-rust package HOT 1
- Support custom command / toolchain for rustfmt HOT 3
- About section on Github still refers to Rust Language Server HOT 1
- Uncaught Error: Message header must separate key and value using :
- Contacting?
- Archive project 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 atom-ide-rust.