Skip to content

dapr init crashes when LanguageMode is ConstrainedLanguage #1515

Open
@BauerVF

Description

@BauerVF

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions