Comments (4)
Seems like we should break up this issue into a few issues and spin those out to be worked independently.
from scry.
Yeah, I agree, I'll split this issue
Also here is one of the scry logs:
I, [2017-10-22 05:58:47 -0500 #17072] INFO -- : Scry is looking into your code...
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : Content-Length: 351
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- :
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : {"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"capabilities": {"workspace": {"applyEdit": true}, "textDocument": {"completion": {"completionItem": {"snippetSupport": true}}, "synchronization": {"didSave": true}}}, "rootUri": "file:///home/main/Projects/experiments", "rootPath": "/home/main/Projects/experiments", "processId": 17072}}
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : initialize
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : Content SEND: Content-Length: 133
{"jsonrpc":"2.0","id":1,"result":{"capabilities":{"textDocumentSync":1,"documentFormattingProvider":true,"definitionProvider":true}}}
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : Content-Length: 57
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- :
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : {"jsonrpc": "2.0", "method": "initialized", "params": {}}
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : Content SEND: Content-Length: 374
{"jsonrpc":"2.0","error":{"code":-32001,"message":"Couldn't parse (Scry::NotificationMessage | Scry::RequestMessage) from {\"jsonrpc\":\"2.0\",\"method\":\"initialized\",\"params\":{}} at 0:0","data":["0xc41a05: ??? at ??","0x1107a18: ??? at ??","0x679cc8: ??? at ??","0x639c33: main at ??","0x7fd71df824ca: __libc_start_main at ??","0x6139cc: ??? at ??","0x0: ??? at ??"]}}
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : Content-Length: 733
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- :
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : {"jsonrpc": "2.0", "method": "textDocument/didOpen", "params": {"textDocument": {"languageId": "crystal", "version": 0, "uri": "file:///home/main/Projects/experiments/crystal/count_lines.cr", "text": "record FileObject, name : String, lines : Int32\nchannel = Channel(FileObject).new\ntotal_lines = 0\nfiles = Dir.glob(\"/usr/lib/crystal/**/*.cr\")\n\nfiles.each do |f|\n spawn do\n lines = File.read(f).lines.size\n channel.send FileObject.new(f, lines)\n end\nend\n\ncount = [] of FileObject\nfiles.size.times do\n count << channel.receive\nend\n\ncount = count.sort_by(&.lines)\n\ncount.each do |f|\n p [f.name, f.lines]\nend\n\np count.sum(&.lines) # => 134025 (0.23.1)\n\ndef foo(a : String)\n\t\nend\n\nfoo(1.0)\n"}}}
D, [2017-10-22 05:58:47 -0500 #17072] DEBUG -- : textDocument/didOpen
D, [2017-10-22 05:58:48 -0500 #17072] DEBUG -- : Content SEND: Content-Length: 366
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/main/Projects/experiments/crystal/count_lines.cr","diagnostics":[{"range":{"start":{"line":29,"character":0},"end":{"line":29,"character":3}},"severity":1,"source":"Scry [Crystal]","message":"no overload matches 'foo' with type Float64\nOverloads are:\n - foo(a : String)"}]}}
D, [2017-10-22 05:58:57 -0500 #17072] DEBUG -- : Content-Length: 154
D, [2017-10-22 05:58:57 -0500 #17072] DEBUG -- :
D, [2017-10-22 05:58:57 -0500 #17072] DEBUG -- : {"jsonrpc": "2.0", "method": "textDocument/didSave", "params": {"textDocument": {"uri": "file:///home/main/Projects/experiments/crystal/count_lines.cr"}}}
D, [2017-10-22 05:58:57 -0500 #17072] DEBUG -- : Content SEND: Content-Length: 475
{"jsonrpc":"2.0","error":{"code":-32001,"message":"Couldn't parse (Scry::NotificationMessage | Scry::RequestMessage) from {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/didSave\",\"params\":{\"textDocument\":{\"uri\":\"file:///home/main/Projects/experiments/crystal/count_lines.cr\"}}} at 0:0","data":["0xc41a05: ??? at ??","0x1107a18: ??? at ??","0x679cc8: ??? at ??","0x639c33: main at ??","0x7fd71df824ca: __libc_start_main at ??","0x6139cc: ??? at ??","0x0: ??? at ??"]}}
D, [2017-10-22 05:58:58 -0500 #17072] DEBUG -- :
W, [2017-10-22 05:58:58 -0500 #17072] WARN -- : Connection with client lost
D, [2017-10-22 05:58:58 -0500 #17072] DEBUG -- : Content SEND: Content-Length: 276
{"jsonrpc":"2.0","error":{"code":-32001,"message":"Content-Length header is required. Ex: Content-Length: 132\\r\\n","data":["0x1104d35: ??? at ??","0x6797d0: ??? at ??","0x639c33: main at ??","0x7fd71df824ca: __libc_start_main at ??","0x6139cc: ??? at ??","0x0: ??? at ??"]}}
E, [2017-10-22 05:58:59 -0500 #17072] ERROR -- : Error writing file: Broken pipe
0x618415: ??? at ??
0x61c845: ??? at ??
0x61c23b: ??? at ??
0x11230c8: ??? at ??
0x679a29: ??? at ??
0x639c33: main at ??
0x7fd71df824ca: __libc_start_main at ??
0x6139cc: ??? at ??
0x0: ??? at ??
from scry.
Should this be closed?
from scry.
Sorry wrong button
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.