Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Having a little trouble with my workspace...


brandon3055
 Share

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.

 

0zR8Afa.png

 

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

Well, assume you add a dependency to your mod. If you don't use the gradle integration, you have to close IDEA, run gradlew idea and open IDEA again (and I am not sure if that preserves your project settings, since it modifies the project files).

If you do use the gradle integration you add the dependency (by modifying the build.gradle inside idea) then hit the "refresh gradle" button and you're done.

It is just more seamless.

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.

 

-TGG

 

 

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.

Guest
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.

 Share



×
×
  • Create New...

Important Information

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