Giter Club home page Giter Club logo

Comments (4)

kofno avatar kofno commented on June 18, 2024 1

Seems like we should break up this issue into a few issues and spin those out to be worked independently.

from scry.

faustinoaq avatar faustinoaq commented on June 18, 2024

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.

keplersj avatar keplersj commented on June 18, 2024

Should this be closed?

from scry.

keplersj avatar keplersj commented on June 18, 2024

Sorry wrong button

from scry.

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.