Comments (5)
I believe that you send the input to STDIN and you must separate them with newlines and they are JSON messages.
from racket-langserver.
Seems like we can do this using something similar to this:
#lang racket/gui
(require framework)
(define t (new racket:text%))
(void (send t insert-port (current-input-port)))
(send t tabify-all)
(void (send t save-port (current-output-port) 'text))
Going to try this out and check if it supports various other #lang
s and if so, will make a pr. Is there a recommended place to add this?
from racket-langserver.
There's something similar to that implemented here:
racket-langserver/text-document.rkt
Line 277 in 19953f6
But I believe it is disabled here:
Lines 114 to 115 in 01bc4ad
So, those are the two places you'd want to look at
from racket-langserver.
Oh, awesome, thanks!
from racket-langserver.
Just wanted to quickly ask - what's the way to actually test the language server on its own with input json? It seems typing into stdin while running main.rkt
doesn't do much. I'm working on adding some formatter stuff for this issue (and to support it for the vscode magic-racket extension as well).
from racket-langserver.
Related Issues (20)
- LSP does not like anything 'above' `#lang` HOT 2
- A `#;` without something to comment out yields an unrecoverable error
- An Experimental Refactor HOT 2
- Class name and its method names diagnosed as unbound variables HOT 3
- off-by-one error in document-highlight for symbols that are imported
- 100% CPU and never terminate for macro with infinite recursion HOT 13
- Close paren on type formatting reformats whole document instead of current expression HOT 16
- support formatting options HOT 9
- Cross-file goto references HOT 9
- Virtual documents without file paths HOT 10
- Shebang at the top of the file breaks syntax highlighting HOT 2
- feature request: textDocument/selectionRange HOT 1
- Exception when formatting ("textDocument/formatting") HOT 4
- require/typed marked as "unused require" HOT 6
- What is the relationship between the racket-langserver and racket-language-server? HOT 4
- Show textDocument/hover for functions from current project HOT 1
- textDocument/signatureHelp not working HOT 1
- Server initialization failed: The JSON sent is not a valid request object. (racket/racket#4532) HOT 1
- ‘hash-ref: no value found for key’ for certain files HOT 1
- Action to replace `(all-defined-out)` provide with explicit list of items HOT 1
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 racket-langserver.