Manage multi module in same project

已回答

I have 2 Maven projects: one is SVN-based, and one is Git-based. The SVN-based project is Maven multi-module while the Git-based one is just a simple Maven project. In fact, the Git-based project originates from a submodule of the SVN-based one. The reason for this extraction is part of the migration effort from SVN to Git.

Now I want to manage these 2 projects as 2 modules of the same project in term of IntelliJ jargon. How could I do this?

0

Import one project from Maven per https://www.jetbrains.com/help/idea/maven-support.html#maven_import_project_start. Then go to Project Structure | Modules, click + button, Import another project as module by pointing to pom.xml of that project.

In Settings (Preferences on macOS) | Version Control | Directory Mappings map the corresponding folders to Git and SVN.

1

I managed to do that and it seems work well. The only flaw I am observing is that when clicking VCS in the toolbar, IntelliJ crashed. There is no java_error_* log or specific idea64 crash dump found. Looking into the Event Viewer, I can see the error report:

Fault bucket 1528012277741046730, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: idea64.exe
P2: 2022.3.0.0
P3: 6336f088
P4: StackHash_f803
P5: 10.0.19041.2130
P6: b5ced1c6
P7: c0000374
P8: PCH_1D_FROM_ntdll+0x000000000009DC14
P9: 
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERE269.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERE3F1.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERE411.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERE41F.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERE45E.tmp.txt

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_idea64.exe_f521f07ba7657a561672f9e6ed80188147292735_c7039d68_7eaf25a1-f2b5-445d-a269-de08618b17eb

Analysis symbol: 
Rechecking for solution: 0
Report Id: cbaa913c-6894-4262-a20d-6e1dfec94808
Report Status: 268435456
Hashed bucket: 35d66920b2cba038553497122330cbca
Cab Guid: 0

For the time being, I can only work with version control task by using the related context-sensitive menu or the Version Control tool window.

 

0

Please upload the dmp crash (C:\Users\<user>\AppData\Local\CrashDumps\) file at https://uploads.jetbrains.com and provide the ID.

0

There is no dmp crash found when this happens. I can only share  the log file at the ID 2022_12_07_23DPt9wWjD2Q3bsc4B9nem

0

This log is no helpful in case of the native crashes. It looks like some OS/driver/hardware issue.

Maybe 

C:\ProgramData\Microsoft\Windows\WER\Temp\WERE269.tmp.mdmp

file will reveal something.

0

As shown in the Event View log:

  • I find nothing under the Temp folder
  • There is AppCrash_idea64.exe_*** under the Report Archive folder. I uploaded the Report.wer file under that at the ID 2022_12_08_WzcubwZNk1MYzRHva9PxQM
0

DGAgent third-party security tool is causing these crashes:

LoadedModule[32]=C:\Program Files\DGAgent\plugins\09D849B6-32D3-4A40-85EE-6B84BA29E35B\AE_MailSensor_Plugin64.dll
LoadedModule[33]=C:\Program Files\DGAgent\plugins\09D849B6-32D3-4A40-85EE-6B84BA29E35B\ame_outlooksensor64.dll
LoadedModule[34]=C:\Program Files\DGAgent\plugins\09D849B6-32D3-4A40-85EE-6B84BA29E35B\ame_smtpsensor64.dll
LoadedModule[35]=C:\Program Files\DGAgent\plugins\8E4EA70A-6128-4B57-BD3F-8E9E0F0DA6BB\OS_Plugin64.dll
LoadedModule[36]=C:\Program Files\DGAgent\plugins\8E4EA70A-6128-4B57-BD3F-8E9E0F0DA6BB\COM_Sensor64.dll

 

Please contact your security team and ask to whitelist IntelliJ IDEA process so that these modules are not loaded into its address space. I'd recommend the same for the java processes.

Feel free to contact this tool vendor for a fix, they may have an updated version that will not cause crashes.

Unfortunately, there is nothing that we can do about this issue as it's caused by the third-party tool you are using.

1

Serge Baranov

I contacted security team to whitelist it and it seems to work well, no more crashes until now. Thanks.

One more question: In a simple Git-based project in IntelliJ, I usually see the Commit tool window which shows the Changed files, and in the case if I enable staging area it will show Staged and Unstaged files. But in the case of mixed version control system project like this, I don't see it anywhere. How do I enable this?

0

I've asked our VCS support team to help you. Please wait for their response.

1

Sy Pham unfortunately, the Commit Toolwidow works for Distributed Version Control systems at the moment. So if you add some VCS like SVN, the Ui that is common for both is enabled, which is commit dialog. 

It is not possible to enable Commit toolwindow in this case. Please vote for https://youtrack.jetbrains.com/issue/IDEA-225055/Enable-Non-modal-commit-interface-for-Centralized-VCS

1

Dmitriy Smirnov

Good to know.

What is the meaning of "modal" and "non-modal" in the context of VCS here?

0

请先登录再写评论。