Idea build project not working

Answered

On IntelliJ 2023.3.4, nothing seems to happen when I build or rebuild my project by press "Build Project". The Build Output dialog shows my project building but nothing happen. 

idea.log has these informational messages:

2024-02-23 14:47:32,501 [ 283970]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Starting activity runconfig.running with id 55234319
2024-02-23 14:47:32,533 [ 284002]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Ending activity runconfig.running with id 55234319
2024-02-23 14:47:33,328 [ 284797]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Starting activity runconfig.running with id 589757919
2024-02-23 14:47:33,351 [ 284820]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Ending activity runconfig.running with id 589757919
2024-02-23 14:47:33,479 [ 284948]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Starting activity runconfig.running with id 2066388337
2024-02-23 14:47:33,493 [ 284962]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Ending activity runconfig.running with id 2066388337
2024-02-23 14:47:33,629 [ 285098]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Starting activity runconfig.running with id 358701511
2024-02-23 14:47:33,654 [ 285123]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Ending activity runconfig.running with id 358701511
2024-02-23 14:47:33,778 [ 285247]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Starting activity runconfig.running with id 184786852
2024-02-23 14:47:33,802 [ 285271]   INFO - #c.i.a.d.c.d.t.TimeSpanUserActivityDatabaseThrottler - Ending activity runconfig.running with id 184786852

 

Every time I press Build Project there was a new " Starting activity " and "Ending activity" appended, but my project does not build. 

But if i run my project by pressing run or debug button, build output it works and my project can works fine. Only build project not works

Upload ID: 2024_02_23_23qrm1tQ6JZJ1vngKYc9J1

Upload ID: 2024_02_23_o1mjBsjUs799T8n6a7hU3U

0
6 comments
Hello,

From the screenshots, I can't find any clue about the reason.
Please attach the logs via the menu Help > Collect logs and Diagnostic Data to https://uploads.jetbrains.com/  and paste the upload ID here if possible.
0

Thanks, here is logs. 

Upload ID: 2024_02_26_2A1EMrxHfkfnx38cyxDLMP

 

 

0
Hello, from the build log file, can't find any exception. But in the IDEA log file, a lot of network issues such as: 

Recoverable I/O exception (java.net.BindException) caught when processing request to {}->http://172.**.*.***:9902

Also, a lot of exception is thrown by the plugin CodeGlance3. May I ask you to try to disable all third-party plugins (File | Settings | Plugins | Installed | ⚙ [Gear icon] | Disable All Downloaded Plugins) to try again?

What's the project type? Maven/Gradle or else?
0

Hello, I uploaded a video and a new logs after disabled all my downloaded plugins. 

The video shows steps: 

1. press build button, it running build but does nothing. 

2. press debug button, it works fine, the project is building and parsing class file.

3. stop debug, press build button, build running again but still does nothing. 

The Upload id: 2024_02_26_275rjmy2nTdpSVje9vQYif (files: idea-logs-20240226-1209215808493221938088373.zip, 录屏2024-02-26 12.08.24.mov)

0

Hello!

Thank you for sharing the video!

It looks like IDEA fails to initialize the build process for your Project, when you use the “Build Project” option.

This, for instance, may happen if JDKs are configured incorrectly for the Project or one of its' Modules. Please double-check your Project's Structure.

It's hard to tell the exact difference between the “Build Project” option and the Run Configuration, that executes successfully, without being closely familiar with the Project. Does the Run Configuration involve the entire Project's contents or only specific section / submodule of it?

Another option to try is  to re-import your Project:

  1. Close all instances of IDEA
  2. Remove workspace and projects folders from IDEA's System Directory
  3. Rename .idea folder from the Project's Directory
  4. Re-import the Project (Open → double-click the root pom.xml → Open as Project)
0

Hello. 

Thank you for your suggestion. 

I reimport my project and build project works fine now.

0

Please sign in to leave a comment.