Hello folks! Any tips for an efficient Portal workflow in IntelliJ, with the plugin?
What frustrates me is that I first must open the Portal tool window and then run portal.api/open (b/c it fails otherwise). I’d love to have a single-command way to get Portal up and hooked into the repl 🙏 I use Cursive REPL commands for the p/open & friends part, but it has no support for opening a tool window prior. Ideally, IntelliJ would not require me to activate the portal plugin manually ever…
i'm not sure about Intellij, for me, I just put the portal/open code into dev/user.clj, and it'll just auto load the user.clj and open portal automatically under dev alias. I think this approach is editor agnostic.
I want to use the IntelliJ plugin, b/c is is much easier for me to view and manage than a separate window, e.g if I go fullscreen
I think this issue was introduced as part of https://github.com/djblue/portal/commit/fb5c7675216cbd370886645c2e6dfc00e962aa4e. The idea was to allow using the window while intellij was still indexing. Not sure how we allow for both 🤔
I don't see why being DumbAware should cause this behaviour, but I'm not a JetBrains dev :) Perhaps ask in their support forum, whether this is truly the case, and whether there is a workaround? 🙏