You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A java program calling Util.getWinDirs() triggers an antivirus scan on my laptop (Avecto Defendpoint) and takes almost 2 minutes to complete.
E.g this class:
public class A {
public static void main(String[] a) throws Exception {
System.out.println("Hello! " + new java.util.Date());
io.github.soc.directories.ProjectDirectories.from("crash", "boom", "bang");
System.out.println("Bye! " + new java.util.Date());
}
}
prints
Hello! Sat Jan 18 21:30:56 GMT 2020
Bye! Sat Jan 18 21:32:40 GMT 2020
Interestingly, if I save the powershell script that ProjectDirectories use into a file a.ps1 and run it like this: powershell -File a.ps1 then it completes in a couple of seconds.
The text was updated successfully, but these errors were encountered:
Not using -Noprofile actually causes this call to fail for me as my profile loads things that output values that interfere with the proper execution of the script. I think all invocations of powershell like this should use -NoProfile as pointed out by @alexarchambault .
OS: Windows 10
A java program calling
Util.getWinDirs()
triggers an antivirus scan on my laptop (Avecto Defendpoint) and takes almost 2 minutes to complete.E.g this class:
prints
Interestingly, if I save the powershell script that
ProjectDirectories
use into a filea.ps1
and run it like this:powershell -File a.ps1
then it completes in a couple of seconds.The text was updated successfully, but these errors were encountered: