Closed ytm157 closed 1 year ago
@ytm157 I tried to automate it https://github.com/esteinberg/plantuml4idea/pull/158 , but the authors refused it :( .
Maybe the problem was that 2022 needs JRE 11 (and 2022.3.3 is broken like 2023) Gradle was broken back then, but now it work fine and the old way does not work for 2023. The project is now switched to Gradle, it should work out of box.
After pulling the updated code and building it with Gradle, it works now. Thank you for your quick reaction! ❤
Well, there's still a question. How do you develop with the hot swap?
I want to change my code under debug mode and not restart the whole project.
The JReble seems not to work after I change my code, it just changes nothing, and the plugin does not auto-reload.
And run 'buidPlugin' while 'runIde' will throw an error "The requested operation cannot be performed on a file with a user-mapped section open". There's a same issue here, which seems a problem with Windows.
This should help:
It works! I found the real output classes that sandbox ide will use is in /out/production/classes rather than build/classes. When build and run using Intellij IDEA, it will compile the source to /out/production/classes, after the code is changed, JReble will compile it and hot swap to /out/production/classes too. However, build with default gradle will only out to "build" directory, I did not figure out where the real production directory locates, so JReble can not find it either. I still don't know how to use the default gradle build to support hot swap, but thanks a lot, it works for now. If I figure it out, I'll share it with you❤
Many intellij plugins built with gradle, it's more fashion and convenient. I cannot run this project correctly after many tries, the developer notes in readme is out of date. It'll be grateful if you can give me some advice.
I'm using version 02530c in master branch, after checking the code and plugin.xml, I'm sure use sdk 2022.3.3 - Windows x64 ZIP Archive (zip) and openjdk17 is no problem. Here's what I had done:
Clone the code from 02530c
Open project in idea (I use 2022.1.4 for development)
Add plugin sdk 2022.3 in project structure
![image](https://user-images.githubusercontent.com/110707169/234243061-b6ec8407-6f6e-4348-acac-276e7a237963.png)
Set project and module sdk to 223.88 and language level to default 17
![image](https://user-images.githubusercontent.com/110707169/234243129-4011b5df-66d0-444e-b537-f94278385f60.png)
Using plugin useful-actions to![image](https://user-images.githubusercontent.com/110707169/234243267-882fc660-e8ba-4c5a-a324-f14f5120ced9.png)
Add Dependant Bundled Plugins to IntelliJ Platform Plugin SDK
, then reopen the project. After that I can build it successfully.But cannot run.
The full runing command and error tips as followning :
It said it can't find main class, but after I decompile the app.jar, I can see Main class is just right there.![image](https://user-images.githubusercontent.com/110707169/234243541-7d7b6038-e1d6-4796-a2bc-6ef396d9f79e.png)
So what's the best practice for running this porject, did I miss anything?