Please provide the following information when submitting an issue.
Where appropriate replace the [ ] with a [X]
My Framework
My Environment
I have already...
My issue is related to (check only those which apply):
Expected Behavior
Should run as before
Actual Behavior
WIndows Server 2019 is being provided as free CI environments, eg on GitHub (actions). I've seen this at another hosted CI environment, but just dismissed it. I see errors like:
Unhandled Exception: System.ArgumentException: Item has already been added. Key in dictionary: 'NPM_CONFIG_PREFIX' Key being added: 'npm_config_prefix'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Diagnostics.ProcessStartInfo.get_EnvironmentVariables()
at OpenCover.Console.Program.RunProcess(CommandLineParser parser, Action`1 environment) in C:\projects\opencover\main\OpenCover.Console\Program.cs:line 309
at OpenCover.Console.Program.<>c__DisplayClass2_0.<RunWithContainer>b__1(Action`1 environment) in C:\projects\opencover\main\OpenCover.Console\Program.cs:line 118
at OpenCover.Framework.Manager.ProfilerManager.<>c__DisplayClass21_0.<SetProfilerAttributes>b__0(Object state) in C:\projects\opencover\main\OpenCover.Framework\Manager\ProfilerManager.cs:line 132
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
causing OpenCover to die. This is not an issue on most windows platforms as environment variables are case-insensitive, however, 2019 is upping the ante. Perhaps the collation of environment variables should either not use a case-insensitive hash-table, or should select one var over another. I tried to make that happen externally via my launcher, but it seems that I've had no effect.
Steps to reproduce the problem:
I think you should be able to fork https://github.com/fluffynuts/PeanutButter and repro the issue at commit ccbdb2aa74acba05dc90cf2b9a2bce959c766c7d. After that, I've reverted to using dotCover as it doesn't fail -- however OpenCover reports are a lot more useful, so I'd really prefer to use OpenCover.
Please provide the following information when submitting an issue.
My Framework
My Environment
I have already...
My issue is related to (check only those which apply):
Expected Behavior
Should run as before
Actual Behavior
WIndows Server 2019 is being provided as free CI environments, eg on GitHub (actions). I've seen this at another hosted CI environment, but just dismissed it. I see errors like:
causing OpenCover to die. This is not an issue on most windows platforms as environment variables are case-insensitive, however, 2019 is upping the ante. Perhaps the collation of environment variables should either not use a case-insensitive hash-table, or should select one var over another. I tried to make that happen externally via my launcher, but it seems that I've had no effect.
Steps to reproduce the problem:
I think you should be able to fork https://github.com/fluffynuts/PeanutButter and repro the issue at commit ccbdb2aa74acba05dc90cf2b9a2bce959c766c7d. After that, I've reverted to using dotCover as it doesn't fail -- however OpenCover reports are a lot more useful, so I'd really prefer to use OpenCover.