Limitation: DSim `-defparam` errors on Windows machines

Modified on Tue, 19 Nov at 5:17 PM

Limitation: DSim -defparam errors on Windows machines


Problem

DSim may fail on Windows machines when the -defparam option is used, with an error message like this:


 

=E: [BadDefparamConv]:
     Failed to convert defparam token to type of generic:

 


Solution

  1. Close the terminal running DSim. If you're running DSim from within Visual Studio Code, close Visual Studio Code.
  2. Install PowerShell 7.
  3. Re-run DSim.

Cause

Older versions of PowerShell, including Windows PowerShell, do not properly parse the string in the -defparam option.



Products Affected

  • DSim Desktop
  • DSim
  • DSim Cloud

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article