ocsmit / zed-r Goto Github PK
View Code? Open in Web Editor NEWR language support for Zed editor
R language support for Zed editor
Hi!
Could it be possible to add outline support to the extension? This way Outline View would show something like functions etc. Maybe something that was done here for example: zed-industries/zed#7357?
The languageserver does not start on opensuse Linux: there is no autocomplete, and no hover info (both do work with the inbuilt Python LSP).
The R languageserver library(languageserver)
is installed for the user, and for all users, and starts without errors when started manually in an R session.
When working with an R file, after installing zed-r
the following will appear in the Zed.log
.
2024-08-03T16:45:05.742464926-06:00 [ERROR] server container removal
Caused by:
No such file or directory (os error 2)
2024-08-03T16:45:05.742504035-06:00 [INFO] starting language server "r_language_server", path: "/home/fvd/Desktop/test-r-project", id: 2
2024-08-03T16:45:05.765531802-06:00 [INFO] starting language server. binary path: "/usr/bin/R", working directory: "/home/fvd/Desktop/test-r-project", args: ["--slave", "-e", "languageserver::run()"]
2024-08-03T16:45:06.645954691-06:00 [ERROR] invalid LSP message header "\u{c}Content-Length: 871\r\n\r\n"
2024-08-03T16:45:06.646022258-06:00 [ERROR] failed to start language server "r_language_server": oneshot canceled
2024-08-03T16:45:06.64604856-06:00 [ERROR] server stderr: Some("")
2024-08-03T16:45:06.646074588-06:00 [INFO] retrying installation of language server "r_language_server" in 1s
2024-08-03T16:45:06.646101245-06:00 [ERROR] server shut down
2024-08-03T16:45:07.646137143-06:00 [INFO] About to spawn test binary
2024-08-03T16:45:07.646197478-06:00 [WARN] test binary failed to launch
2024-08-03T16:45:07.646231712-06:00 [WARN] test binary check failed
2024-08-03T16:45:07.646265687-06:00 [INFO] beginning to reinstall server
2024-08-03T16:45:07.646307036-06:00 [INFO] deleting server container
2024-08-03T16:45:07.64645322-06:00 [ERROR] server container removal
After trying to fix this in the settings, I reinstalled Zed to start again from scratch, with a clean settings json. The error is the same remainse the same.
Can you give me pointers how to debug this any further?
I'd like to give this a shot! Any doc you can point to for installation?
@
as an extractor operator is being supported in R. Perhaps it should be added to the queries so that there may be some syntax highlighting?
Thanks for maintaining this @ocsmit !
Curious if it would be easy enough to support adding a roxygen comment #'
on enter keystroke when on a line that has a roxygen comment? That would make writing docs a bit easier.
I'm completely new to Zed and this extension. I use Rstudio for most tasks and typically work using .Rproj. I tried Sublime long time ago and there I could select code and send it to terminal with R session using a shortcut. I tried different combinations in Zed, but none seem to work. If there is any type of guide it would be very helpful. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.