JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.79k stars 2.35k forks source link

fonts not supported on vscode powershell terminal #1602

Closed Cuantico closed 2 years ago

Cuantico commented 2 years ago

Code of Conduct

What happened?

A bug happened! image (vscode powershell terminal) image (regular windows powershell terminal) image fonts tested.

Theme

oh-my-posh --init --shell pwsh --config ~/jandedobbeleer.omp.json | Invoke-Expression

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 7.0.0

Segments:

ConsoleTitle(true) -   0 ms -
session(true)  -   0 ms -  @DESKTOP-k
path(true)     -   0 ms -   ~ 
git(false)     -  10 ms -
battery(true)  -  23 ms -  37 
node(false)    -   0 ms -
shell(true)    -   0 ms -  ﲵ powershell 
root(false)    -   0 ms -
text(true)     -   0 ms -  NO CONFIG 
exit(true)     -   0 ms -   

Run duration: 35.5243ms

Cache path: C:\Users\L\AppData\Local/oh-my-posh

Logs:

2022/01/17 23:06:07 debug: getenv
C:\Users\L\AppData\Local
2022/01/17 23:06:07 getenv duration: 0s, args: LOCALAPPDATA
2022/01/17 23:06:07 getCachePath duration: 0s, args:
2022/01/17 23:06:07 getArgs duration: 0s, args:
2022/01/17 23:06:07 getArgs duration: 0s, args:
2022/01/17 23:06:07 getShellName duration: 11.5806ms, args:
2022/01/17 23:06:07 debug: getenv

2022/01/17 23:06:07 getenv duration: 0s, args: OMP_CACHE_DISABLED
2022/01/17 23:06:07 isRunningAsRoot duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getShellName duration: 0s, args:
2022/01/17 23:06:07 getCurrentUser duration: 0s, args:
2022/01/17 23:06:07 getHostName duration: 0s, args:
2022/01/17 23:06:07 lastErrorCode duration: 0s, args:
2022/01/17 23:06:07 environ duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 debug: getenv

2022/01/17 23:06:07 getenv duration: 0s, args: SSH_CONNECTION
2022/01/17 23:06:07 debug: getenv

2022/01/17 23:06:07 getenv duration: 0s, args: SSH_CLIENT
2022/01/17 23:06:07 getCurrentUser duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 getHostName duration: 428.9µs, args:
2022/01/17 23:06:07 debug: getenv

2022/01/17 23:06:07 getenv duration: 0s, args: POSH_SESSION_DEFAULT_USER
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getArgs duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 stackCount duration: 0s, args:
2022/01/17 23:06:07 isRunningAsRoot duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getShellName duration: 0s, args:
2022/01/17 23:06:07 getCurrentUser duration: 0s, args:
2022/01/17 23:06:07 getHostName duration: 0s, args:
2022/01/17 23:06:07 lastErrorCode duration: 0s, args:
2022/01/17 23:06:07 environ duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 hasCommand duration: 9.3462ms, args: git.exe
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 error: hasParentFilePath
CreateFile C:\.git: The system cannot find the file specified.
2022/01/17 23:06:07 hasParentFilePath duration: 1.144ms, args: .git
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getBatteryInfo duration: 23.4987ms, args:
2022/01/17 23:06:07 isRunningAsRoot duration: 520.1µs, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getShellName duration: 0s, args:
2022/01/17 23:06:07 getCurrentUser duration: 0s, args:
2022/01/17 23:06:07 getHostName duration: 0s, args:
2022/01/17 23:06:07 lastErrorCode duration: 0s, args:
2022/01/17 23:06:07 environ duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getShellName duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 isRunningAsRoot duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 isRunningAsRoot duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getPathSeperator duration: 0s, args:
2022/01/17 23:06:07 getShellName duration: 0s, args:
2022/01/17 23:06:07 getCurrentUser duration: 0s, args:
2022/01/17 23:06:07 getHostName duration: 0s, args:
2022/01/17 23:06:07 lastErrorCode duration: 0s, args:
2022/01/17 23:06:07 environ duration: 0s, args:
2022/01/17 23:06:07 getRuntimeGOOS duration: 0s, args:
2022/01/17 23:06:07 getcwd duration: 0s, args:
2022/01/17 23:06:07 lastErrorCode duration: 0s, args:
2022/01/17 23:06:07 debug: getenv
C:\Users\L\AppData\Local
2022/01/17 23:06:07 getenv duration: 0s, args: LOCALAPPDATA
2022/01/17 23:06:07 getCachePath duration: 335.7µs, args:
JanDeDobbeleer commented 2 years ago

@Cuantico this is not a bug with oh-my-posh but rather the wrong font name or incorrect setting. Make sure to adjust the integrated terminal setting and not the editor, and reference the right font name.

github-actions[bot] commented 6 months ago

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.