cli icon indicating copy to clipboard operation
cli copied to clipboard

dapr init crashes when LanguageMode is ConstrainedLanguage

Open BauerVF opened this issue 8 months ago • 2 comments

Expected Behavior

dapr init works with different kind of LanguageModes or the automatic configuration of the path environment variables can be disabled via the cli.

Actual Behavior

It crashes when the LanguageMode is set to "ConstrainedLanguage", while dapr init:

Extracting binaries and setting up components... error moving placement binary to path: Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1

  • [System.Environment]::SetEnvironmentVariable('Path',[System.Environme ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
    
    
    

Steps to Reproduce the Problem

  1. Set Powershell LanguageMode to "ConstrainedLanguage".
  2. Run Dapr init

Release Note

RELEASE NOTE: FIX Fix dapr init bug when using powershell ConstrainedLanguage

BauerVF avatar Apr 29 '25 14:04 BauerVF

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar May 29 '25 14:05 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jun 28 '25 14:06 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jul 28 '25 14:07 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Aug 27 '25 14:08 dapr-bot

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.

dapr-bot avatar Sep 03 '25 14:09 dapr-bot