Skip to content

Java support#57

Merged
maxdeviant merged 8 commits intozed-industries:mainfrom
louni-longheval:main
Feb 18, 2024
Merged

Java support#57
maxdeviant merged 8 commits intozed-industries:mainfrom
louni-longheval:main

Conversation

@louni-longheval
Copy link
Contributor

No description provided.

@cla-bot
Copy link

cla-bot bot commented Feb 18, 2024

We require contributors to sign our Contributor License Agreement, and we don't have @samuser107 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@louni-longheval
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Feb 18, 2024
@cla-bot
Copy link

cla-bot bot commented Feb 18, 2024

The cla-bot has been summoned, and re-checked this pull request!

Copy link
Member

@maxdeviant maxdeviant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extension needs to referenced via a Git submodule.

@maxdeviant
Copy link
Member

@samuser107 Hmm, the submodule reference doesn't look quite right.

There should be a separate repository containing just the contents of the java extension, and that is what needs to be added as a Git submodule.

For example, here's how we do it with our Nushell extension: https://github.com/zed-extensions/nu

@louni-longheval
Copy link
Contributor Author

I think it's alright now

@maxdeviant
Copy link
Member

Looks like we're failing to build the WASM grammar now.

Is there a reason you went with https://github.com/serenadeai/java-tree-sitter as the Tree-sitter grammar instead of this one from the Tree-sitter org?

https://github.com/tree-sitter/tree-sitter-java

@maxdeviant
Copy link
Member

Looks like we're failing to build the WASM grammar now.

Is there a reason you went with https://github.com/serenadeai/java-tree-sitter as the Tree-sitter grammar instead of this one from the Tree-sitter org?

https://github.com/tree-sitter/tree-sitter-java

Actually, it looks like https://github.com/serenadeai/java-tree-sitter isn't even a Tree-sitter grammar for Java, it's Java bindings to Tree-sitter.

@maxdeviant
Copy link
Member

Could we also change the extension name to just "Java"?

https://github.com/samuser107/zed-java-extension/blob/2482bd4760c39a275a003e70e8a1bb272cf9d99c/extension.json#L2

The "for Zed" isn't necessary, as this is a Zed extension.

@louni-longheval
Copy link
Contributor Author

Looks like we're failing to build the WASM grammar now.
Is there a reason you went with https://github.com/serenadeai/java-tree-sitter as the Tree-sitter grammar instead of this one from the Tree-sitter org?
https://github.com/tree-sitter/tree-sitter-java

Actually, it looks like https://github.com/serenadeai/java-tree-sitter isn't even a Tree-sitter grammar for Java, it's Java bindings to Tree-sitter.

yes sorry for that. fixed it with the name too

Copy link
Member

@maxdeviant maxdeviant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working through this!

@maxdeviant maxdeviant merged commit ddfd14d into zed-industries:main Feb 18, 2024
@louni-longheval louni-longheval changed the title Java support for Zed Java support Feb 19, 2024
adorabilis pushed a commit to adorabilis/zed-extensions that referenced this pull request Aug 17, 2024
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants