Code Monkey home page Code Monkey logo

Comments (9)

brantou avatar brantou commented on May 27, 2024 3

@faustinoaq Scry is already available in emacs(lsp-crystal.el).
wechatimg47

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.

keplersj avatar keplersj commented on May 27, 2024 1

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.

kofno avatar kofno commented on May 27, 2024 1

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.

faustinoaq avatar faustinoaq commented on May 27, 2024

If you have tested scry successfully in some editor , please feel free to contribute to scry wiki 👍

from scry.

bmulvihill avatar bmulvihill commented on May 27, 2024

@faustinoaq I see how @keplersj installs scry through his atom package, would something similar be possible for vscode-crystal-lang?

from scry.

faustinoaq avatar faustinoaq commented on May 27, 2024

@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 😄

https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/229f2e2e3910724e60dc76f3f4fce6ddd652eff0/src/crystalMain.ts#L31-L48

Feel free to open a PR 😉

CHANGELOG entry

from scry.

faustinoaq avatar faustinoaq commented on May 27, 2024

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.

KaneRoot avatar KaneRoot commented on May 27, 2024

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.

omerxx avatar omerxx commented on May 27, 2024

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)

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.