Giter Site home page Giter Site logo

Comments (10)

alexheretic avatar alexheretic commented on June 18, 2024

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.

alexheretic avatar alexheretic commented on June 18, 2024

@imp did you get a chance to test this again? I can't reproduce this myself at the moment.

from atom-ide-rust.

imp avatar imp commented on June 18, 2024

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.

alexheretic avatar alexheretic commented on June 18, 2024

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.

phisk avatar phisk commented on June 18, 2024

Bug is back:

[Enter steps to reproduce:]

  1. open atom
  2. 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.

imp avatar imp commented on June 18, 2024

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.

alexheretic avatar alexheretic commented on June 18, 2024

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.

alexheretic avatar alexheretic commented on June 18, 2024

Btw logging/debugging is a little easier with the latest version see https://github.com/mehcode/atom-ide-rust#debugging

from atom-ide-rust.

phisk avatar phisk commented on June 18, 2024

changed to nightly-2017-12-12-x86_64-pc-windows-msvc and it works again. :)
thank you

from atom-ide-rust.

alexheretic avatar alexheretic commented on June 18, 2024

nightly Rls builds are back and working again

from atom-ide-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.