-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add D Support #7332
Add D Support #7332
Conversation
@kassane Thanks for the PR! The language registry API has changed a bit on main. You now need to register the Tree-sitter grammar in a separate call, and then reference it by name in the language Also, could you include screenshots of the syntax highlighting and outline view? Just a heads up - we are very soon going to be moving most of Zed's built-in languages into installable extensions (#7096). D is a major enough language that I'm ok with merging this in the meantime. But once the extension system lands, we will probably remove this code and put it into a new |
Hi, @maxbrunsfeld 👋 Rebased again. Note: In
Sadly, I have not uploaded any screenshots because macOS is not available. For the moment all I have available is Linux ( Linux support still in progress #7015). However, based on tree-sitter-d support in another editor, it could probably be something similar.
Great!! This will help a lot in organizing the project. |
Ok, I’d like some D user to actually test this before merging. Could someone who is awaiting this feature help out with this PR by just manually testing a bit, and adding screenshots of the syntax highlighting and outline view? |
I can take a look this week. I only just started playing with Zed
(informed by this PR actually).
I am keen to see how it copes with the serve-d extension which can be
finicky on large D repos like we have at Weka.
(I am also the author of several language plugins for Nova which you might
be familiar with.)
…On Sun, Feb 11, 2024 at 12:33 PM Max Brunsfeld ***@***.***> wrote:
Ok, I’d like some D user to actually test this before merging. Could
someone who is awaiting this feature help out with this PR by just manually
testing a bit, and adding screenshots of the syntax highlighting and
outline view?
—
Reply to this email directly, view it on GitHub
<#7332 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ4G7P44JNHOUE6NHQ7AKDYTEFFZAVCNFSM6AAAAABCYG3CE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHAZTENJTGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
One thing I might be interested in is the ability to extend Zed with
actions to run our unique build process and parse the specific output from
D code. Those are significant quality of life items for those of us at
Weka.
…On Sun, Feb 11, 2024 at 12:36 PM Garrett D'Amore ***@***.***> wrote:
I can take a look this week. I only just started playing with Zed
(informed by this PR actually).
I am keen to see how it copes with the serve-d extension which can be
finicky on large D repos like we have at Weka.
(I am also the author of several language plugins for Nova which you might
be familiar with.)
On Sun, Feb 11, 2024 at 12:33 PM Max Brunsfeld ***@***.***>
wrote:
> Ok, I’d like some D user to actually test this before merging. Could
> someone who is awaiting this feature help out with this PR by just manually
> testing a bit, and adding screenshots of the syntax highlighting and
> outline view?
>
> —
> Reply to this email directly, view it on GitHub
> <#7332 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAJ4G7P44JNHOUE6NHQ7AKDYTEFFZAVCNFSM6AAAAABCYG3CE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHAZTENJTGA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
It appears to test this, I need to actually build zed? Or are there test binaries I can try somewhere? |
Currently just building zed. |
I did install, but was unable to test the LSP integration as the LSP release only includes artifacts for x86.
(The beta releases of serve-d do include arm64 artifacts.) The Tree-Sitter integration appears good -- I'll paste up some syntax highlighting. |
I'm not familiar with the outline view. |
Okay found reference to it as cmd-shift-O. I tried that in this buffer and it doesn't work -- does it depend on the LSP integration? Because if so that won't work on this ARM based Mac. I will talk with the developer of the serve-d extension to see if he can release an ARM binary for the latest "release", or possibly cut another new release. |
@maxbrunsfeld, Zed no have xz unpack? Caused by:
Invalid gzip header
[2024-02-29T10:30:39-03:00 ERROR project] server stderr: Some("")
[2024-02-29T10:30:40-03:00 ERROR util] crates/languages/src/d.rs:128: no cached binary
[2024-02-29T10:30:41-03:00 ERROR util] crates/languages/src/d.rs:128: no cached binary
[2024-02-29T10:30:41-03:00 ERROR project] failed to start language server "serve-d": failed to iterate over archive |
cc: @WebFreak001 |
Closing this for now. Language server support for extensions will land soon, which should make this easier. Sorry for the slow response! |
Release Notes:
cc: @gdamore