Skip to content
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 JetBrains Editor Support #889

Open
invakid404 opened this issue Aug 21, 2024 · 5 comments
Open

Add JetBrains Editor Support #889

invakid404 opened this issue Aug 21, 2024 · 5 comments

Comments

@invakid404
Copy link

Hi! I use JetBrains IDEs (WebStorm, PyCharm, RubyMine) please add support.

@hellovai
Copy link
Contributor

hellovai commented Aug 21, 2024

We've had this request quite a bit, I'll take a look next week and report back with how much work we think this is.

@invakid404 would it work for you if we did something like this in the meanwhile:

The ability to baml-cli playground --port 3000 to spawn a webui synced to your local filesystem matching promptfiddle.com?

@invakid404
Copy link
Author

We've had this request quite a bit, I'll take a look next week and report back with how much work we think this is.

@invakid404 would it work for you if we did something like this in the meanwhile:

We offer a baml-cli playground --port 3000 command which would spawn a webui synced to your local filesystem matching promptfiddle.com?

I would personally be fine with a playground outside the IDE, yes. I still think a basic BAML plugin for JetBrains that adds language support (syntax highlighting, LSP) and no in-IDE playground would still be very useful so that I can at least read BAML files locally and click around.

@sxlijin
Copy link
Collaborator

sxlijin commented Sep 13, 2024

Awesome to hear! I've filed #960 as a separate task, and we'll make sure to update you when we finish that.

In the meantime, we'll keep this issue open for other folks who want Jetbrains support to let us know. Some research ntoes about what we'd have to do:

  • Jetbrains custom language support docs are here
  • quick skim: Jetbrains doesn't support textmate/lezer grammars, it looks like we'd have to expose more out of the LSP
  • showing the preview would require some rearchitecture, since it's unclear how we'd embed the webview. could use JCEF (embedded chromium), but that's an experimental feature.

@invakid404
Copy link
Author

Awesome to hear! I've filed #960 as a separate task, and we'll make sure to update you when we finish that.

In the meantime, we'll keep this issue open for other folks who want Jetbrains support to let us know. Some research ntoes about what we'd have to do:

  • Jetbrains custom language support docs are here
  • quick skim: Jetbrains doesn't support textmate/lezer grammars, it looks like we'd have to expose more out of the LSP
  • showing the preview would require some rearchitecture, since it's unclear how we'd embed the webview. could use JCEF (embedded chromium), but that's an experimental feature.

JetBrains IDEs support TextMate grammars via the TextMate plugin bundled with all JetBrains IDEs. Plugins can provide TextMate bundles by implementing TextMateBundleProvider.

@angelozerr
Copy link

angelozerr commented Nov 20, 2024

For LSP tropic, jetbrains provides an lsp support for ultimate which is not free.

If you want to have a free lsp support, please try https://github.com/redhat-developer/lsp4ij which is a free LSP support IntelliJ plugin.

If you are interested to evaluate it, see the following documentation:

And if you want to evaluate quickly LSP4IJ without developping a plugin but just filling in a settings the start command of your ls, please see https://github.com/redhat-developer/lsp4ij/blob/main/docs/UserDefinedLanguageServer.md

I suggest that you read article https://idetools.dev/blog/lsp4ij-announcement/ to have an overview of LSP4IJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants