goblint / GobPie

Goblint IDE integration via MagpieBridge
MIT License
8 stars 4 forks source link

Create IntelliJ plugin #41

Open karoliineh opened 2 years ago

michael-schwarz commented 2 years ago

I think while this is nice to have, I don't think we need to focus on this too much for now.

karoliineh commented 2 years ago

Creating the plugin "technically works".

IntelliJ

But it is quite broken:

Although I will not dive into the causes of these issues and try and fix them asap, I will leave this issue open, so I will not forget to fix them eventually.


Meanwhile, if anyone wants to try it (but mostly for documentation to myself, so I would not have to remember it all), the current steps for creating and running the plugin are:

  1. Replace goblint in GobPie class GoblintServer.java method constructGoblintRunCommand() with absolute path
  2. Generate the .jar as usual.
  3. (if on Mac) add exp.cpp-path to goblint.json, because it is unable to locate the right cpp itself when ran from IntelliJ.
  4. Install IntelliJLSP as documented in the repository.
  5. Configure the language server:
    • set Jar file path to the generated GobPie .jar
    • set Working directory to the project (to-be-analysed) root.