Closed skeept closed 10 months ago
This should've been fixed so upgrading should solve that.
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?
First of all sorry if this has been fixed in later versions. This is the only time I have come across this and I have been using the tool for years now.
This is the error I got:
oh-my-posh fatal error rendering os segment:runtime error: invalid memory address or nil pointer dereference
goroutine 19 [running]: runtime/debug.Stack() /opt/hostedtoolcache/go/1.17.3/x64/src/runtime/debug/stack.go:24 +0x65 main.(Segment).setStringValue.func1() /home/runner/work/oh-my-posh/oh-my-posh/src/segment.go:297 +0x58 panic({0x8bef20, 0x1268fd0}) /opt/hostedtoolcache/go/1.17.3/x64/src/runtime/panic.go:1038 +0x215 strings.Count({0x0, 0xc000202000}, {0x93a0fe, 0xc00002e0c0}) /opt/hostedtoolcache/go/1.17.3/x64/src/strings/strings.go:47 +0x50 strings.Replace({0x0, 0x0}, {0x93a0fe, 0x1}, {0x93a0e7, 0x1}, 0xffffffffffffffff) /opt/hostedtoolcache/go/1.17.3/x64/src/strings/strings.go:930 +0xcc strings.ReplaceAll(...) /opt/hostedtoolcache/go/1.17.3/x64/src/strings/strings.go:964 main.dirMatchesOneOf({0xa16e60, 0xc0000e4a50}, {0x0, 0xe}, {0x12d2ab0, 0x0, 0x0}) /home/runner/work/oh-my-posh/oh-my-posh/src/regex.go:84 +0x76 main.(Segment).cwdExcluded(0xc0001d7680) /home/runner/work/oh-my-posh/oh-my-posh/src/segment.go:186 +0xde main.(Segment).shouldIncludeFolder(0xc0001d7680) /home/runner/work/oh-my-posh/oh-my-posh/src/segment.go:159 +0x2c main.(Segment).setStringValue(0xc0001d7680, {0xa16e60, 0xc0000e4a50}) /home/runner/work/oh-my-posh/oh-my-posh/src/segment.go:303 +0x7b main.(Block).setStringValues.func1(0x0) /home/runner/work/oh-my-posh/oh-my-posh/src/block.go:87 +0x65 created by main.(Block).setStringValues /home/runner/work/oh-my-posh/oh-my-posh/src/block.go:85 +0x9d
Theme
not sure
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output