Module disappears from project view after IntelliJ restart

Answered

I have project consisting of about 30 Java Spring projects imported into common workspace as IntelliJ modules. Some of them being multimodule projects. With those all projects everything works as expected.

Additionally I'm importing a few projects of different nature, also as Intellij modules: Angular project, and a few projects containing plain text only (for example project with yaml files only). The problem is, that often after IntelliJ restart those modules disappear. I can see them for a short moment after IIntelliJ restarts, and then they get removed from project view, and also from modules list. The only solution is to import them again, which is very annoying. Itellij doesn't display any error - just remove modules and it's all.

Any idea how o keep my modules intact after restarting?

0
10 comments

Can you show project settings with modules listed? 

 

Is it possible to share a sample project where the issue could be reproduced? 

0
Avatar
Permanently deleted user

List is much longer so doesn't fit. Do you need some specific settings visible?

0

I'm having a similar problem. I have several modules, one of which is a Spring Boot application. The others are Go and Python applications. Upon restarting IntelliJ, all but the Spring Boot module have disappeared from modules.

0

Is it Maven/Gradle project? 

Seems similar to https://youtrack.jetbrains.com/issue/IDEA-254867 

May you try EAP version of IntelliJ IDEA

Other users also report about similar behaviour: https://youtrack.jetbrains.com/issue/IDEA-261999

As suggested by Egor Klepikov, please check with custom plugins disabled. Share project sample to the mentioned ticket (IDEA-261999) if the issue remains after that. 

0
Avatar
Permanently deleted user

EAP works correctly, thx. I'm waiting for new stable release.

1

This issue as resurfaced for me.  Any way to mitigate or fix this?

0

Hello Ryan Ward Kelley,

Can you please try to disable all third-party plugins (Settings | Plugins | ⚙ | Disable all downloaded plugins)?

If it doesn't help, reproduce the issue on the latest version of IDE, collect logs via Help | Collect Logs and Diagnostic Data, upload logs to https://uploads.jetbrains.com and share uploadUI.

Also it would be helpful if you can share sample project where issue is reproducible.

0

Hi, I also encountered this issue.

In my case, after unloading modules (Load/Unload Modules) and restarting IntelliJ, the modules disappeared. I can see them for a brief moment after IntelliJ restarts, and then they are removed from the project view.

Often, even if I remove the module and re-import it with Maven, the module does not appear. I need to use "Invalidate Caches and Restart" option.

I collected some logs from Help | Collect Logs and Diagnostic Data:

2023-12-14 13:41:55,505 [ 57411] INFO - #c.i.w.i.i.WorkspaceModelImpl - Unloaded entity storage updated in 1 ms: Remove module 'module-core' from unloaded storage because a module with same name is added

2023-12-14 13:41:55,507 [ 57413] INFO - #c.i.w.i.i.WorkspaceModelImpl - Unloaded entity storage updated in 0 ms: Remove module 'module-crud' from unloaded storage because a module with same name is added

2023-12-14 13:41:55,509 [ 57415] INFO - #c.i.w.i.i.WorkspaceModelImpl - Unloaded entity storage updated in 1 ms: Remove module 'module-web-classes' from unloaded storage because a module with same name is added

2023-12-14 13:41:55,509 [ 57415] INFO - #c.i.w.i.i.WorkspaceModelImpl - Unloaded entity storage updated in 0 ms: Remove module 'module-liquibase' from unloaded storage because a module with same name is added

2023-12-14 13:41:55,509 [ 57415] INFO - #c.i.w.i.i.WorkspaceModelImpl - Unloaded entity storage updated in 0 ms: Remove module 'module-client' from unloaded storage because a module with same name is added

2023-12-14 13:42:23,369 [ 85275] INFO - #c.i.u.i.IndexingReasonExplanationLogger - Scanner has updated file module-crud.iml with appliers: [SingleIndexValueApplier{indexId=filetypes, inputId=486678, fileInfo='module-crud.iml(id=486678)'}] and removers: [];

2023-12-14 13:42:23,405 [ 85311] INFO - #c.i.u.i.IndexingReasonExplanationLogger - Scanner has updated file module-liquibase.iml with appliers: [SingleIndexValueApplier{indexId=filetypes, inputId=486671, fileInfo='module-liquibase.iml(id=486671)'}] and removers: [];

2023-12-14 13:42:23,545 [ 85451] INFO - #c.i.u.i.IndexingReasonExplanationLogger - Scanner has updated file module-web-classes.iml with appliers: [SingleIndexValueApplier{indexId=filetypes, inputId=486674, fileInfo='module-web-classes.iml(id=486674)'}] and removers: [];

2023-12-14 13:42:23,579 [ 85485] INFO - #c.i.u.i.IndexingReasonExplanationLogger - Scanner has updated file module-client.iml with appliers: [SingleIndexValueApplier{indexId=filetypes, inputId=486673, fileInfo='module-client.iml(id=486673)'}] and removers: [];

2023-12-14 13:42:23,622 [ 85528] INFO - #c.i.u.i.IndexingReasonExplanationLogger - Scanner has updated file module-core.iml with appliers: [SingleIndexValueApplier{indexId=filetypes, inputId=486676, fileInfo='module-core.iml(id=486676)'}] and removers: [];

2023-12-14 13:42:23,748 [ 85654] INFO - #c.i.j.n.l.n.NodeModulesIndexingRulesProvider - Updating roots because of lazy indexes for packages: [eslint, webpack, webpack-dev-server]

2023-12-14 13:42:25,198 [ 584151] INFO - #c.i.j.n.l.n.NodeModulesDirectoryManager - Removed /opt/workspace/module/module-web-resources/node/node_modules: under excluded roots

2023-12-14 13:42:25,325 [ 584151] INFO - #c.i.j.n.l.n.NodeModulesDirectoryManager - Removed /opt/workspace/module/module-web-resources/node_modules: under excluded roots

Can you help me, please?

Thanks!

0

Please file a new bug at https://youtrack.jetbrains.com/newIssue?project=IDEA and attach the complete logs using Help | Collect Logs and Diagnostic Data.

 

Also share .idea directory from the project.

0

Please sign in to leave a comment.