Closed khraosgenetor closed 1 month ago
Can you share the script generated by oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json"
?
Also, can you share all the inner exceptions of the "type initializer" exception you got?
Can you share the script generated by
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json"
? Also, can you share all the inner exceptions of the "type initializer" exception you got?
How do I get the inner exception?
Also the script:
(@(& 'C:/Users/alien/AppData/Local/Programs/oh-my-posh/bin/oh-my-posh.exe' init pwsh --config='C:\Users\alien\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json' --print) -join "`n") | Invoke-Expression
Nevermind sorry, The Powershell from Terminal did not allow me to use the above script. I manually created a new profile, which now works. Sorry for the trouble.
Prerequisites
Exception report
Screenshot
Environment data
Steps to reproduce
exec " oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression"
Expected behavior
No normal exeptions
Actual behavior
Runs into the error: Set-PSReadLineOption : The type initializer for 'Microsoft.PowerShell.PSConsoleReadLine' threw an exception. At line:456 char:5