Open OlegLoewen opened 3 months ago
To load coverage IDE runs external process:
/opt/homebrew/Cellar/perl/5.38.2_1/bin/perl -I/Users/blubber/dev/afroc/SHARED//SHARED -I/Users/blubber/dev/afroc/SHARED//SHARED/lib/execution_module -I/Users/blubber/dev/afroc/SHARED//SHARED/lib/execution_module/t "-I/Users/blubber/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/plugin/perl/lib" /Users/blubber/perl5/bin/cover --silent --nosummary -report camelcade /Users/blubber/Library/Caches/JetBrains/IdeaIC2024.1/coverage/afroc_S_Tests_from__GetDiskInfo_t_
You may try to run one from the command line. Basically it should give a machine readable coverage information. Also, if you have an application crash, it should be reported to the JetBrains, because it indicates some JBR issue, plugin can't do that.
The listed command works just fine in terminal. Looks like the issue is Apple ARM chip related. I see similar issues for other applications Similar warnings:
oshi.util.platform.mac.SysctlUtil - Failed sysctl call: hw.cpufrequency, Error code: 2
oshi.util.platform.mac.SysctlUtil - Failed sysctl call: hw.cpufrequency_max, Error code: 2
[MacOS] psutil.cpu_freq() broken on Apple M1 · Issue #1892 · giampaolo/psutil
Not sure this is the cause. I will try to reproduce this on my side, but not sure when I'll be able to. Or you may try to run the plugin from sources and debug on your side if you are familiar with Java
yes, I have some Java experience. Do you have a small description how to debug the plugin?
Run Plugin
run configuration. It just runs the second IDE with plugin from the sources.com.perl5.lang.perl.coverage.PerlCoverageRunner#doLoadCoverageData
. Basically it runs the command ^^ and desearilizes json with Gson libarary. Btw, worth trying to:
it's strange. I was able to follow your instructions. I opened same project and ran the same test coverage, but I wasn't able to reproduce it. While debugging, the coverage provides fast results as expected. Not sure how to resolve my issue. All of my team members have the same issue as me. Any advice or idea?
Interesting. Yes, have a few:
That's the output of diagnostic logs. As you see, there is a big time gap after PerlCommandLine - host = local; vm = system; pty = false; charset: UTF-8
2024-06-25 10:57:17,503 [1010293] WARN - oshi.util.platform.mac.SysctlUtil - Failed sysctl call: hw.cpufrequency, Error code: 2
2024-06-25 10:57:18,512 [1011302] WARN - oshi.util.platform.mac.SysctlUtil - Failed sysctl call: hw.cpufrequency_max, Error code: 2
2024-06-25 10:57:19,016 [1011806] SEVERE - oshi.software.os.mac.MacNetworkParams - Failed getaddrinfo(): nodename nor servname provided, or not known
2024-06-25 10:57:19,580 [1012370] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-06-25 10:57:19,580 [1012370] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-06-25 10:59:06,403 [1119193] WARN - #c.i.o.o.e.ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting
2024-06-25 10:59:25,672 [1138462] INFO - #com.perl5.lang.perl.coverage.PerlCoverageRunner - Loading coverage by: /opt/homebrew/Cellar/perl/5.38.2_1/bin/perl -I/Users/blubber/myapp/SHARED -I/Users/blubber/myapp/SHARED/lib/execution_module -I/Users/blubber/myapp/SHARED/lib/execution_module/t "-I/Users/blubber/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/plugin/perl/lib" /Users/blubber/perl5/bin/cover --silent --nosummary -report camelcade /Users/blubber/Library/Caches/JetBrains/IdeaIC2024.1/coverage/hostctrl_S_Tests_from__GetDiskInfo_t_
2024-06-25 10:59:25,673 [1138463] INFO - #com.perl5.lang.perl.idea.execution.PerlCommandLine - Executing: /opt/homebrew/Cellar/perl/5.38.2_1/bin/perl -I/Users/blubber/myapp/SHARED -I/Users/blubber/myapp/SHARED/lib/execution_module -I/Users/blubber/myapp/SHARED/lib/execution_module/t "-I/Users/blubber/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/plugin/perl/lib" /Users/blubber/perl5/bin/cover --silent --nosummary -report camelcade /Users/blubber/Library/Caches/JetBrains/IdeaIC2024.1/coverage/hostctrl_S_Tests_from__GetDiskInfo_t_
2024-06-25 10:59:25,673 [1138463] INFO - #com.perl5.lang.perl.idea.execution.PerlCommandLine - environment: {} (+CONSOLE)
2024-06-25 10:59:25,673 [1138463] INFO - #com.perl5.lang.perl.idea.execution.PerlCommandLine - working dir: null
2024-06-25 10:59:25,673 [1138463] INFO - #com.perl5.lang.perl.idea.execution.PerlCommandLine - host = local; vm = system; pty = false; charset: UTF-8
2024-06-25 11:03:17,723 [1370513] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-06-25 11:03:17,723 [1370513] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-06-25 11:03:17,731 [1370521] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {MAVEN_REPOSITORY=/Users/blubber/.m2/repository}
Hm. total mystery for now. you could send me your zipped logs dir to the email hurricup
in gmail and i'll look into them.
maybe before that: How can I build the plugin locally and install it via local plugin file to test, whether this will work?
Use buildPlugin
run configuration. It should create a zip files in the build/...something/
dir
Any updates on this? Did you have a chance to check with 2024.2?
Unfortunately, the issue is still there. Not sure, how I provide additional information to resolve this.
we may try recording a performance snapshot like described here https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems may be i'll find something in the recording
If run test with coverage, the tests are executed and I get the test results, however coverage is not shown. Sometimes it's shown after 5 minutes. If I run the test coverage the 2nd time, Intellij crashes while the dialog "Loading Coverage data" appears, after clicking on "replace existing coverage". The exactly same project in intellij with same plugin on a Windows machine, provides the test coverage in a few seconds without any trouble. Please help to resolve this issue.
Logs:
IntelliJ IDEA 2024.1.3 (Community Edition) Build #IC-241.17890.1, built on June 4, 2024 Runtime version: 17.0.11+1-b1207.24 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.5 GC: G1 Young Generation, G1 Old Generation Memory: 4096M Cores: 12 Metal Rendering is ON Registry: ide.experimental.ui=true Non-Bundled Plugins: com.perl5 (2024.1) Kotlin: 241.17890.1-IJ OS: OSX 14.5 Hardware: Macbook M3 Pro Perl: 5.38.2