Code Monkey home page Code Monkey logo

Comments (6)

snej avatar snej commented on June 10, 2024

Roc version is "roc nightly pre-release, built from commit dd9a6ff on Sat May 11 09:12:29 UTC 2024”

VS Code is Version: 1.85.0

from roc.

Anton-4 avatar Anton-4 commented on June 10, 2024

Hi @snej,
Did you set Roc-lang › Language-server: Exe in the settings of the extension?
For me it is set to /Users/admin/Downloads/temp2/roc_nightly-macos_apple_silicon-2024-05-13-e5ea6dc4617/roc_language_server.
We mention it but it's easy to look over, I'll look into improving this.

from roc.

Anton-4 avatar Anton-4 commented on June 10, 2024

Issues for improvements:
ivan-demchenko/roc-vscode-unofficial#29
ivan-demchenko/roc-vscode-unofficial#30

from roc.

Anton-4 avatar Anton-4 commented on June 10, 2024

The text in the editor does have colors, though, so I assume the language server is running now.

That will work without the language server. If you introduce an error in to the code, e.g by changing Stdout.line to Stdout.lin and the error is underlined in red, the language server is working.

from roc.

snej avatar snej commented on June 10, 2024

Yes, I entered the path to the language server.

If you look closely at the error, it looks as though the language server is echoing some compiler status output (about downloading a package) to the HTTP response stream before the response headers are complete, and only afterwards sends the Content-Length header. Perhaps that output is being redirected to the wrong FD?

Client roc-lang: connection to server is erroring. Header must provide a Content-Length property. {"downloading \u001b[36mhttps":"//github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br\u001b[0m\n into /Users/snej/.cache/roc/packages\n\nContent-Length: 38"} Shutting down server.

from roc.

Anton-4 avatar Anton-4 commented on June 10, 2024

Hmm, what seems wrong to me is that {"downloading \u001b[36mhttps":"//github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br\u001b[0m\n into /Users/snej/.cache/roc/packages\n\nContent-Length: 38"} is not the json we want. Content-Length is not a separate json field, it's just concatenated with the other value string.

Can you try updating to the latest vscode (1.89)? That version works on my mac.

from roc.

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.