jbangdev / jbang-idea

IntelliJ IDEA plugin for JBang
https://plugins.jetbrains.com/plugin/18257-jbang
MIT License
20 stars 9 forks source link

Improve the Jbang experience in IntelliJ #102

Open ia3andy opened 9 months ago

ia3andy commented 9 months ago

Currently to load the dependencies, you have to use this:

image

Problem is that, it took me a call with @maxandersen to find this button. I've tried this (which I think should also sync the dependencies):

image

And also right clicking on the file doesn't show this:

image

Something like the Maven Runner plugin would be nice and make sure it's available when right clicking on all the java files with the jbang (and also when right clicking in the editor):

image
fbricon commented 9 months ago

@ia3andy you do have the Synch JBang menu on top, in your screenshot, when you right-click on the file

maxandersen commented 9 months ago

@fbricon his point is that is the only place its present. not in the jbang view on the right nor on the file in the file explorer part. I had to screenshare to see why andy could not get it to work - turned out he didn't find the sync action anywhere he was used to find "actions"

frederikb commented 8 months ago

Just to add another point of view: I just learned that the IntelliJ Plugin for JBang is not "broken" and that a sync action for dependencies exists.

I had implicitly assumed that synching dependencies would have happened automatically on load and save and had therefore switched to using jbang edit --live --sandbox.

Now obviously this is my fault for not digging deeper or checking documentation but there you go. Now I can fully enjoy the plugin! 🎉

msangel commented 2 months ago

Can this Sync JBang DEPS to module moved out of entire file context menu and have it only in actual DEPS locations? Or show it as suggestions only in their declaration. Having it for entire file is a bit crowded. Also +1 for having it too in navigator context menu in group.

maxandersen commented 1 month ago

@msangel but then you would have to scroll up on large file - and you might not have does in a file but would be available elsewhere.

Agree it would be nice if could be made more automatic like in vscode jbang.