Comments (11)
crystal-lang-tools/scry#69 and crystal-lang-tools/scry#71 have both been resolved. This issue should be fixed with the next update to scry
and ide-crystal
.
from atom-ide-crystal.
I'm not sure I understand how this is due to ide-crystal
... This issue doesn't occur without ide-crystal
installed?
from atom-ide-crystal.
I see that you have linter
+linter-ui-default
+busy-signal
+intentions
installed alongside atom-ide-ui
. My first guess is that this could be causing your problem. atom-ide-ui
is itself a linter
consumer. Having them all installed at once could possibly create conflicts and other issues for your editor.
from atom-ide-crystal.
I also see that you have ide-haskell
and haskell-ghc-mod
. While compatible with Atom IDE, they are not totally integrated with it. (ref: atom-haskell/ide-haskell#215) I recommend ide-haskell-hie
for integrating Haskell with Atom IDE.
from atom-ide-crystal.
The issue does not occur without ide-crystal installed or when it's disabled. I will test your proposals later today
from atom-ide-crystal.
If you can't reproduce it without ide-crystal
it is definitely at fault, and my other suggestions won't fix the problem. I'll try to reproduce it soon.
What I can't figure out of the top of my head is what makes ide-crystal
different from ide-rust
in this scenario. They both make use of the same atom-languageclient
under the hood. Any thoughts @damieng?
from atom-ide-crystal.
This can happen if the language server does not correctly respond to the shutdown message.
The same process happens when shutting down the server because it is no longer in use (i.e. close the last opened crystal file) and might be easier to troubleshoot as Atom isn't unloading at the time so you can see the debugging messages (enable with atom.config.set('core.debugLSP', true)
)
from atom-ide-crystal.
@faustinoaq Is Scry handling shutdown messages correctly? The only code I see that handles it is at https://github.com/crystal-lang-tools/scry/blob/4b699f6a7bce2fb2f866e0c2b4ab61fd4931491d/src/scry/context.cr#L25-L35
from atom-ide-crystal.
I don't think it is - it's supposed to send a response to the shutdown message rather than just terminate.
There is also an exit message which is supposed to do what Scry's current shutdown does.
https://microsoft.github.io/language-server-protocol/specification
from atom-ide-crystal.
Is Scry handling shutdown messages correctly?
@keplersj I think so, although I don't know if scry is still full compatible with latest LSP specification
I don't think it is - it's supposed to send a response to the shutdown message rather than just terminate.
@damieng Oh, you're right, seems scry isn't sending a shutdown response, I just remember I added exit(0)
some time ago as a workaround 😅
BTW, these are my VSCode logs (working just fine)
D, [2018-03-29 13:59:03 -05:00 #6893] DEBUG -- : Content-Length: 58
D, [2018-03-29 13:59:03 -05:00 #6893] DEBUG -- :
D, [2018-03-29 13:59:03 -05:00 #6893] DEBUG -- : {"jsonrpc":"2.0","id":1,"method":"shutdown","params":null}
I, [2018-03-29 13:59:03 -05:00 #6893] INFO -- : ...your session has ended
Full logs here: scry.out.tmNDE6.zip
from atom-ide-crystal.
BTW, Thank you for the PRs! 😄
from atom-ide-crystal.
Related Issues (20)
- Can't find crystal even though I specified a path HOT 4
- Is this project alive? HOT 1
- I think format on save is crashing atom HOT 2
- It does not recognize the file as a crystal one, it says ruby HOT 1
- 0.2.1 Freezes HOT 2
- It hangs when running diagnostics on file HOT 2
- Add images to README HOT 1
- Support atom-crystal on Windows using WSL
- atom-crystal icon is broken HOT 1
- Uncaught TypeError when using atom-ide-crystal HOT 5
- The automated release is failing 🚨
- The automated release is failing 🚨
- Failed to load the ide-crystal package HOT 8
- The automated release is failing 🚨 HOT 5
- Action Required: Fix Renovate Configuration
- logo design
- currently used version of scry is out of date
- Problems on save
- Dependency Dashboard
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-crystal.