knittl / idea-jmh-plugin

Plugin for Jetbrains Intellij IDEA to make benchmarking with JMH easier.
https://plugins.jetbrains.com/plugin/13868-jmhack
MIT License
6 stars 1 forks source link

Fix: Exception while trying to acquire the JMH lock (C:\Windows\/jmh.lock): Access is denied #1

Closed joserobjr closed 4 years ago

joserobjr commented 4 years ago

Fixes artyushov#19 by setting the passParentEnvs as true by default

knittl commented 4 years ago

Thanks for the pull request!

Do you think it makes sense to pass the parent environment only on Windows systems? On Linux it works with a clean environment without problems. Inheriting the system environment could have ill effects

joserobjr commented 4 years ago

I just noticed that it was you who gave the answer suggesting to activate the checkbox manually lol

I really don't know because I can't test on Linux and I have few experiences on this topic. No green play arrows from this plugin were working, they were also ignoring manual configurations in the run configuration template menu. Making that flag true by default made everything work out of the box