Closed rogierg closed 2 years ago
@rogierg in which line does it fail? I'm afraid this won't be supported anymore.
@rogierg it fails on $Process = New-Object System.Diagnostics.Process
. As that's required to have the best possible experience for a UTF-8 enabled shell, this is no longer supported.
@JanDeDobbeleer: line 40, so no way for me to fix this is what you're saying? 😭
> $env:POSH_CONSTRAINED_LANGUAGE = 1
PS>oh-my-posh init pwsh | Invoke-Expression
New-Object : Cannot create type. Only core types are supported in this language mode.
At line:40 char:20
$Process = New-Object System.Diagnostics.Process
@rogierg should be fixed now
@JanDeDobbeleer: it is! 🙏
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
I'm running PS in constrained language mode so I got the "Cannot create type. Only core types are supported in this language mode." error.
I have changed to UTF-8 manually but with these lines in my profile I still get the errors associated with constrained language mode: ` $env:POSH_CONSTRAINED_LANGUAGE = 1
oh-my-posh init pwsh | Invoke-Expression`
Theme
Default theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output