Jump to content

Having a little trouble with my workspace...


Recommended Posts

I was doing some work on my mod today and i suffers a power outage. When i restarted my entire workspace was broken. Its kinda hard to describe the problem so i am just going to show you.




Every single class looks like that. The weird thing is minecraft still starts and runs just fine. I have tried running gradlew setupDecompWorkspace and gradlew idea but i dont know what else to try.


If i press ALT + Enter on anything at the top of the list is "Setup JDK" but my JDK setup looks fine.


Any help with this would be greatly appreciated.


I am the author of Draconic Evolution

Link to comment
Share on other sites

Take a backup of you src folder (The code you are working on), and type in:


gradlew clean

gradlew setupDecompWorkspace

gradlew idea


This will clean development env and reset it, backup everything before. Files might be deleted.

I require Java, both the coffee and the code :)

Link to comment
Share on other sites

I just run all the gradle commands from the built in terminal. IDEA automatically detects that something have changed and gives me an option to reload the project. Although im not sure if that works when adding dependencies via the build.gradle


In any case you have convinced me to finally set it up so i am doing it now.

I am the author of Draconic Evolution

Link to comment
Share on other sites

I also had problems with Gradle integration in IntelliJ.  I use the following method which works for me


1) gradlew setupDecompWorkspace

2) gradlew idea

3) Open project folder

4) When it asks "import unlinked gradle project" or words to that effect, choose yes

5) run the gradle task genIntellijRuns


Works every time and gives me the gradle tasks especially build.





Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.