Comments (9)
@faustinoaq Scry is already available in emacs(lsp-crystal.el).
However, scry has some problems when dealing with didSave.
{"code":-32001,"message":"Couldn't parse (Scry::NotificationMessage | Scry::RequestMessage) from {"jsonrpc":"2.0","method":"textDocument/didSave","params":{"textDocument":{"uri":"file:///home/parallels/program/github/scry/src/scry/log.cr","version":30},"includeText":""}} at 1:1","data":["???","(Scry::NotificationMessage | Scry::RequestMessage)","Scry::Message#parse:(Scry::NotificationMessage | Scry::RequestMessage)","Scry::start:(IO+ | Nil)","__crystal_main","_crystal_main<Int32, Pointer(Pointer(UInt8))>:Nil","Crystal::main_user_code<Int32, Pointer(Pointer(UInt8))>:Nil","Crystal::main<Int32, Pointer(Pointer(UInt8))>:Int32","main","__libc_start_main","_start","???"]}
I made a local change and fixed the above problem.
struct TextDocumentParams
JSON.mapping({
text_document: {type: (TextDocumentIdentifier | VersionedTextDocumentIdentifier), key: "textDocument"},
text: String?,
include_text: {type: Bool, nilable: true, key: "includeText"}, # Add includeText fix didSave bug
}, true)
end
from scry.
Use with Atom is as simple as installing the ide-crystal
package and a consumer package. This can be done using either the Settings GUI, or on the command line with apm install ide-crystal
. For the consumer I recommend atom-ide-ui
. Facebook's Nuclide and steelbrain's linter (only providers diagnostics, not full IDE functionality) are also viable options for consumers.
from scry.
I'm kind of a newcomer again, so maybe I can find some time to re-set things up and I can write some articles from a kind-of newcomer perspective.
from scry.
If you have tested scry successfully in some editor , please feel free to contribute to scry wiki
from scry.
@faustinoaq I see how @keplersj installs scry through his atom package, would something similar be possible for vscode-crystal-lang?
from scry.
@bmulvihill In fact I used to embed scry in vscode-crystal-lang. I removed it because some time ago scry was some unsable, bigger and slower
Currently scry is pretty stable, lightweight and fast, so, maybe I can try to add it again
Feel free to open a PR
from scry.
I removed embedded scry here: https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/master/CHANGELOG.md#change-8
BTW, I used 7zip because I was trying to ship scry as small as possible. Seems that isn't a problem now
from scry.
Besides the setup, the documentation is lacking an explanation about the actual features of Scry.
I read the wiki, I still don't know what are the actual features implemented.
from scry.
Hi guys, any hint about nvim setup?
It's taking hours and I still can't figure it out.
Can anyone provide an init.vim
/ .vimrc
example of the setup
function for the lsp?
from scry.
Related Issues (20)
- test failure with latest commit on master and crystal 0.26 HOT 5
- `flag?` crashes compiler HOT 4
- https://github.com/crystal-lang/crystal/issues/7151 HOT 6
- This library should have a set of benchmarks HOT 1
- What unit does scry use in lsp ranges HOT 1
- Building gives `undefined constant Crystal::Codegen::Target` error HOT 12
- Extract LSP protocol to a shard? HOT 2
- Stop depending on the real stdlib for our specs
- Speedup by going full async and manage tasks intelligently HOT 1
- Debug idea: use lsp-inspector
- Prelude Error Message HOT 2
- Completion fails using Emacs and lsp-mode
- Incorrect path reference
- specs failing... HOT 1
- Is the project abandoned? HOT 4
- Fails to build with crystal 0.36 HOT 1
- Broken JSON-RPC message HOT 3
- Build failure on master branch, Crystal 1.0.0; dependency resolution problem. HOT 1
- Can't build with Crystal 1.3.2 (Error: no overload matches 'Crystal.exit' with types Int32) HOT 3
- scry starts itself up and take over 3 gigs of memory
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 scry.