Closed webstean closed 2 years ago
@webstean I'm following up on this in #2338, so I'm closing this one and will provide updates there as soon as I'm back from my holidays.
@webstean btw, I don't think Cascadia Code exists as a nerd fort. Try oh-my-posh font install and select the right font.
btw, I don't think Cascadia Code exists as a nerd fort.
@JanDeDobbeleer It does exist. CascadiaCode
is in the list output by oh-my-posh font install
, and https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaCode.zip
is an valid download URL.
@lewis-yeung this whole functionality is on my todo list anyways. Will have a proper look once I'm back.
@webstean I know why this happens, you pressed enter multiple times. If you enter the command, press enter and wait, it runs successfully. BUT, if you press enter twice (or during the download), it crashes.
Nice :-) It also fails unless you are in admin terminal - would be nice if it prompted to start an admin terminal Also, would be even better if there was an option to edit the VS Code settings.json as well :-)
@webstean the first one is possible, the second one isn't one I'm planning on maintaining. The reason is that this is simply too hard to maintain as settings change etc.
Source: https://docs.microsoft.com/en-us/windows/terminal/install#settings-json-file Terminal (stable / general release): %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json Terminal (preview release): %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\settings.json are dumb filenames for sure. And it seems unlikely the actual setting for Font Face would change. If you were prepared to add it, I'd be happy to maintain it
@webstean what I don't know is if we can simply (and reliably) swap one key's value in the json without ruining other settings. That's why I'm not inclined to even pursue this.
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?
PS C:\Users\andreww> oh-my-posh font install CascadiaCode
Caught panic:
runtime error: invalid memory address or nil pointer dereference
Restoring terminal...
goroutine 1 [running]: runtime/debug.Stack() /opt/hostedtoolcache/go/1.18.4/x64/src/runtime/debug/stack.go:24 +0x65 runtime/debug.PrintStack() /opt/hostedtoolcache/go/1.18.4/x64/src/runtime/debug/stack.go:16 +0x19 github.com/charmbracelet/bubbletea.(Program).StartReturningModel.func3() /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.22.0/tea.go:371 +0x95 panic({0x14ff540, 0x2088590}) /opt/hostedtoolcache/go/1.18.4/x64/src/runtime/panic.go:844 +0x258 oh-my-posh/font.(main).Update(0xc00013ee00, {0x1552b00?, 0xc00040a4b0?}) /home/runner/work/oh-my-posh/oh-my-posh/src/font/cli.go:171 +0x281 github.com/charmbracelet/bubbletea.(Program).StartReturningModel(0xc0000f68f0) /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.22.0/tea.go:540 +0x1291 github.com/charmbracelet/bubbletea.(Program).Start(...) /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.22.0/tea.go:549 oh-my-posh/font.Run({0xc0000aa0a0, 0xc}) /home/runner/work/oh-my-posh/oh-my-posh/src/font/cli.go:239 +0x94 oh-my-posh/cli.glob..func7(0x2094840?, {0xc0000a5ae0?, 0x2?, 0x2?}) /home/runner/work/oh-my-posh/oh-my-posh/src/cli/font.go:35 +0x7f github.com/spf13/cobra.(Command).execute(0x2094840, {0xc0000a5a80, 0x2, 0x2}) /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:876 +0x67b github.com/spf13/cobra.(Command).ExecuteC(0x2094340) /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990 +0x3b4 github.com/spf13/cobra.(*Command).Execute(...) /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918 oh-my-posh/cli.Execute({0x16f8254?, 0xc000062000?}) /home/runner/work/oh-my-posh/oh-my-posh/src/cli/root.go:40 +0x4a main.main() /home/runner/work/oh-my-posh/oh-my-posh/src/main.go:10 +0x27
Theme
n/a
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output