Closed Ar5ham closed 2 years ago
@Ar5ham what command do you use so I can reproduce this?
what command do you use so I can reproduce this?
Command for compiling? or something else?
@Ar5ham yes, I'm looking for the exact steps to reproduce (for example with newtonsoft.json).
The build command is kind of abstracted via a cmd, had to go dig it out. Try this one 👇🏽👇🏽
msbuild.exe "newtonsoft.json.testnet.csproj" /nologo /p:BuildingInSeparatePasses=true /p:BuildingWithBuildExe=true /p:Test_Code=1 /clp:NoSummary /verbosity:normal /Target:BuildGenerated /p:Pass=Generate /p:ObjectPath=g:\opensource\newtonsoft.json\ /p:TARGET_PLATFORM=windows /p:THREAD_ID=2
@JanDeDobbeleer I updated the oh-my-posh module on PS (below are the versions) and I can't repro the issue anymore. Perhaps we can close this for now. Both 6.41 and 6.44.1 don't repro this issue anymore. Windows didn't update/upgrade in between.
❯ Get-InstalledModule
Version Name Repository Description
------- ---- ---------- -----------
6.44.1 oh-my-posh PSGallery A prompt theme engine for any shell
1.0.0 posh-git PSGallery Provides prompt with Git status summary information and tab completion for Git commands, parameters, remotes and branch names.
0.8.0 Terminal-Icons PSGallery PowerShell module to add file icons to terminal based on file extension
2.2.16 VSSetup PSGallery Visual Studio Setup PowerShell Module
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?
In the most recent version of the Oh-my-posh with Windows Terminal Preview Version: 1.12.2931.0, I am getting the following error in my compile windows. The moment I add
Import-Module oh-my-posh
to the$Profile
this error shows up, even if I don't set a theme. If I removed the import the error doesn't repro again, which I find very odd.This is another error instance when I am compiling an open source project, Newtonsoft.Json
This is the
$profile
at the moment:I'm not 100% sure if this is a Terminal/windows issue or oh-my-posh issue at the moment but it consistently repros on my build PS terminal. will be happy to provide additional info if it helps debugging this.
Theme
I have used both of the following in my
$profile
(One at the time not both together)Set-PoshPrompt -Theme agnoster
oh-my-posh --init --shell pwsh --config ~/Documents/PowerShell/Modules/oh-my-posh/themes/jandedobbeleer.omp.json | Invoke-Expression
However this issue repros even without setting a theme.What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output