JanDeDobbeleer / oh-my-posh

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

24.0.4: Block isn't starting on a newline as in 23.*.* #5811

Closed jaliyaudagedara closed 2 weeks ago

jaliyaudagedara commented 2 weeks ago

Code of Conduct

What happened?

I have installed 24.0.4 today, and noticed the block isn't starting on a newline.

2024-11-05_13-24-06

Theme

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "console_title_template": "{{ .Shell }} in {{ .Folder }}",
  "blocks": [
    {
      //
    },
    {
      "type": "prompt",
      "newline": true,
      "alignment": "left",
      "segments": []
    },
    {
      //
    }
  ],
  "version": 3,
  "auto_upgrade": true,
  "final_space": true
}

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 24.0.4

Shell: powershell (7.4.6)

Prompt:

 Jaliya   9.0.100-rc.2.24474.11    ~                                                                                                                                       powershell  13:24:46 
Segments:

ConsoleTitle(true)                        -   0 ms
Session(true)                             -   0 ms
Dotnet(true)                              -   1 ms
Path(true)                                -   1 ms
Git(false)                                -  12 ms
Node(false)                               -   0 ms
Go(false)                                 -   0 ms
Julia(false)                              -   0 ms
Python(false)                             -   0 ms
Ruby(false)                               -   0 ms
Azfunc(false)                             -   0 ms
Aws(false)                                -   1 ms
Root(true)                                -   0 ms
Status(true)                              -   0 ms
Shell(true)                               -   0 ms
Ytm(false)                                -   1 ms
Time(true)                                -   0 ms

Run duration: 18.0674ms

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

Config path: C:\Users\Jaliya\Documents\PowerShell\Modules\oh-my-posh\themes\jaliyaudagedara.omp.json

Logs:

[DEBUG] 13:24:46.329 debug.go:50 → debug mode enabled
[DEBUG] 13:24:46.329 debug.go:50 → plain mode enabled
[DEBUG] 13:24:46.329 terminal.go:Getenv:161 → C:\Users\Jaliya\AppData\Local
[TRACE] 13:24:46.329 terminal.go:Getenv(LOCALAPPDATA) - 74µs
[TRACE] 13:24:46.329 terminal.go:CachePath() - 74µs
[DEBUG] 13:24:46.329 terminal.go:65 → loading cache file: C:\Users\Jaliya\AppData\Local\oh-my-posh\omp.cache
[DEBUG] 13:24:46.329 terminal.go:65 → loading cache key: upgrade_check
[DEBUG] 13:24:46.329 terminal.go:65 → loading cache key: version_dotnet
[TRACE] 13:24:46.329 terminal.go(C:\Users\Jaliya\AppData\Local\oh-my-posh\omp.cache) - 0s
[DEBUG] 13:24:46.329 terminal.go:Getenv:161 → C:\Users\Jaliya\AppData\Local
[TRACE] 13:24:46.329 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:24:46.329 terminal.go:CachePath() - 0s
[DEBUG] 13:24:46.329 terminal.go:65 → loading cache file: C:\Users\Jaliya\AppData\Local\oh-my-posh\omp.cache.68207106-4a53-4fa6-90ef-099454ea4252
[TRACE] 13:24:46.329 terminal.go(C:\Users\Jaliya\AppData\Local\oh-my-posh\omp.cache.68207106-4a53-4fa6-90ef-099454ea4252) - 0s
[TRACE] 13:24:46.329 terminal.go:setPromptCount() - 0s
[TRACE] 13:24:46.330 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.330 terminal.go:setPwd:194 → C:\Users\Jaliya
[TRACE] 13:24:46.330 terminal.go:setPwd() - 503.9µs
[DEBUG] 13:24:46.330 terminal.go:Getenv:161 → C:\Users\Jaliya\Documents\PowerShell\Modules\oh-my-posh\themes\jaliyaudagedara.omp.json
[TRACE] 13:24:46.330 terminal.go:Getenv(POSH_THEME) - 0s
[DEBUG] 13:24:46.330 terminal.go:ResolveConfigPath:93 → config set using POSH_THEME: C:\Users\Jaliya\Documents\PowerShell\Modules\oh-my-posh\themes\jaliyaudagedara.omp.json
[TRACE] 13:24:46.330 terminal.go:ResolveConfigPath() - 0s
[TRACE] 13:24:46.330 terminal.go:Init() - 1.0829ms
[TRACE] 13:24:46.330 terminal.go:Shell() - 0s
[TRACE] 13:24:46.330 terminal.go:Flags() - 0s
[TRACE] 13:24:46.331 load.go:loadConfig() - 565µs
[TRACE] 13:24:46.331 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.331 debug.go:60 → terminal program: Windows Terminal
[DEBUG] 13:24:46.331 debug.go:60 → terminal shell: shell
[DEBUG] 13:24:46.331 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.331 terminal.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 13:24:46.331 terminal_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.331 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.331 terminal_windows.go:WindowsRegistryKeyValue:213 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 13:24:46.331 colors_windows.go:GetAccentColor() - 0s
[TRACE] 13:24:46.331 colors.go:SetAccentColor() - 0s
[TRACE] 13:24:46.331 terminal.go:Shell() - 0s
[DEBUG] 13:24:46.331 terminal.go:Getenv:161 → 7.4.6
[TRACE] 13:24:46.331 terminal.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 13:24:46.331 debug.go:PrintDebug:23 → segment: Title
[TRACE] 13:24:46.332 terminal_windows.go:Root() - 0s
[TRACE] 13:24:46.332 terminal.go:Shell() - 0s
[TRACE] 13:24:46.332 terminal.go:StatusCodes() - 0s
[TRACE] 13:24:46.332 terminal_windows.go:IsWsl() - 0s
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal_windows.go:IsWsl() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 terminal.go:User:331 → Jaliya
[TRACE] 13:24:46.332 terminal.go:User() - 0s
[DEBUG] 13:24:46.332 terminal.go:Host:348 → RAVANA-TPP15
[TRACE] 13:24:46.332 terminal.go:Host() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.332 terminal.go:Getenv(SHLVL) - 0s
[TRACE] 13:24:46.332 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.332 text.go:Render({{ .Shell }} in {{ .Folder }}) - 629.6µs
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.332 terminal.go:Getenv:161 → 4
[TRACE] 13:24:46.332 terminal.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 13:24:46.332 terminal.go:Getenv:161 → 1
[TRACE] 13:24:46.332 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 language.go:Enabled:117 → extensions: [*.jl]
[DEBUG] 13:24:46.332 language.go:Enabled:118 → folders: []
[DEBUG] 13:24:46.332 language.go:Enabled:125 → home_enabled: false
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Status
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal.go:StatusCodes() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Node
[DEBUG] 13:24:46.332 status.go:formatStatus:45 → {{ .Code }}
[DEBUG] 13:24:46.332 language.go:Enabled:117 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 13:24:46.332 language.go:Enabled:118 → folders: []
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.332 language.go:Enabled:125 → home_enabled: false
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Azfunc
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Go
[DEBUG] 13:24:46.332 language.go:Enabled:117 → extensions: [host.json local.settings.json function.json]
[DEBUG] 13:24:46.332 language.go:Enabled:117 → extensions: [*.go go.mod]
[DEBUG] 13:24:46.332 language.go:Enabled:118 → folders: []
[DEBUG] 13:24:46.332 language.go:Enabled:118 → folders: []
[DEBUG] 13:24:46.332 language.go:Enabled:125 → home_enabled: false
[DEBUG] 13:24:46.332 language.go:Enabled:125 → home_enabled: false
[TRACE] 13:24:46.332 text.go:Render({{ .Code }}) - 0s
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.332 status.go:Enabled:37 → always_enabled: true
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Python
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Ruby
[DEBUG] 13:24:46.332 python.go:Enabled:56 → files
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.332 language.go:Enabled:117 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 language.go:Enabled:117 → extensions: [*.rb Rakefile Gemfile]
[DEBUG] 13:24:46.332 language.go:Enabled:118 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Root
[DEBUG] 13:24:46.332 language.go:Enabled:125 → home_enabled: false
[DEBUG] 13:24:46.332 language.go:Enabled:125 → home_enabled: false
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Dotnet
[TRACE] 13:24:46.332 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.332 segment.go:Execute:103 → segment: Path
[DEBUG] 13:24:46.332 path.go:145 → display_cygpath: false
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:PathSeparator() - 0s
[DEBUG] 13:24:46.333 aws.go:Enabled:35 → display_default: false
[TRACE] 13:24:46.333 terminal.go:Shell() - 0s
[DEBUG] 13:24:46.333 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.333 terminal.go:Shell() - 0s
[TRACE] 13:24:46.333 terminal.go:Getenv(AWS_VAULT) - 0s
[DEBUG] 13:24:46.333 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.333 terminal.go:Flags() - 0s
[TRACE] 13:24:46.333 terminal.go:Getenv(AWS_DEFAULT_PROFILE) - 0s
[DEBUG] 13:24:46.333 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.333 terminal.go:Getenv(AWS_PROFILE) - 0s
[DEBUG] 13:24:46.333 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.333 terminal.go:Getenv(AWS_REGION) - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.333 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.333 terminal.go:Getenv(AWS_DEFAULT_REGION) - 0s
[DEBUG] 13:24:46.333 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.333 terminal.go:Getenv(AWS_CONFIG_FILE) - 0s
[TRACE] 13:24:46.333 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.333 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.332 language.go:Enabled:117 → extensions: [*.cs *.csx *.vb *.sln *.slnf *.csproj *.vbproj *.fs *.fsx *.fsproj global.json]
[DEBUG] 13:24:46.333 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.333 segment.go:Execute:103 → segment: Session
[DEBUG] 13:24:46.333 language.go:Enabled:118 → folders: []
[DEBUG] 13:24:46.333 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.333 terminal.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 13:24:46.333 terminal.go:Getenv:161 → NO DATA
[TRACE] 13:24:46.333 terminal.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 13:24:46.333 terminal.go:TemplateCache() - 0s
[DEBUG] 13:24:46.333 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.333 language.go:Enabled:137 → always
[DEBUG] 13:24:46.333 language.go:Enabled:156 → fetch_version: true
[DEBUG] 13:24:46.333 path.go:setMappedLocations:552 → mapped_locations_enabled: true
[DEBUG] 13:24:46.333 path.go:setMappedLocations:553 → 
[DEBUG] 13:24:46.333 path.go:setMappedLocations:554 → 
[DEBUG] 13:24:46.333 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:PathSeparator() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.333 path.go:setMappedLocations:555 → ~
[TRACE] 13:24:46.333 terminal.go:TemplateCache() - 0s
[DEBUG] 13:24:46.333 path.go:setMappedLocations:560 → mapped_locations: map[]
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:PathSeparator() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:PathSeparator() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[ERROR] 13:24:46.333 terminal.go:FileContent:298 → open C:\Users\Jaliya/.aws/config: The system cannot find the file specified.
[TRACE] 13:24:46.333 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.333 path.go:colorizePath:728 → cycle: []
[TRACE] 13:24:46.333 terminal.go:FileContent(C:\Users\Jaliya/.aws/config) - 568.7µs
[DEBUG] 13:24:46.333 path.go:getFolderSeparator:263 → NO DATA
[DEBUG] 13:24:46.333 path.go:getFolderSeparator:265 →  
[DEBUG] 13:24:46.333 path.go:colorizePath:731 → cycle_folder_separator: false
[DEBUG] 13:24:46.333 path.go:colorizePath:732 → %s
[DEBUG] 13:24:46.333 path.go:colorizePath:734 → %s
[DEBUG] 13:24:46.333 path.go:colorizePath:735 → %s
[DEBUG] 13:24:46.333 path.go:colorizePath:736 → %s
[TRACE] 13:24:46.333 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.333 terminal.go:GOOS() - 0s
[TRACE] 13:24:46.333 terminal.go:StackCount() - 0s
[TRACE] 13:24:46.333 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.333 text.go:Render( {{ .UserName }} ) - 568.7µs
[TRACE] 13:24:46.333 text.go:Render(diamond) - 0s
[TRACE] 13:24:46.333 text.go:Render(  {{ .Full }} ) - 0s
[TRACE] 13:24:46.333 text.go:Render(powerline) - 0s
[DEBUG] 13:24:46.334 win32_windows.go:isWriteable:258 → not current user or in group
[DEBUG] 13:24:46.334 win32_windows.go:isWriteable:262 → current user is member of S-1-5-32-544
[DEBUG] 13:24:46.334 win32_windows.go:isWriteable:270 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 13:24:46.334 win32_windows.go:isWriteable:272 → user has write access
[TRACE] 13:24:46.334 terminal_windows.go:DirIsWritable() - 504.9µs
[TRACE] 13:24:46.334 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.334 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.334 text.go:Render(   {{ .Path }} ) - 0s
[TRACE] 13:24:46.334 text.go:Render(powerline) - 0s
[DEBUG] 13:24:46.344 terminal.go:CommandPath:395 → C:\Program Files\Git\cmd\git.exe
[TRACE] 13:24:46.344 terminal.go:CommandPath(git.exe) - 11.9214ms
[TRACE] 13:24:46.344 terminal.go:HasCommand(git.exe) - 11.9214ms
[DEBUG] 13:24:46.344 git.go:shouldDisplay:326 → fetch_bare_info: false
[DEBUG] 13:24:46.344 terminal.go:ResolveSymlink:287 → C:\Users\Jaliya
[TRACE] 13:24:46.344 terminal.go:ResolveSymlink(C:\Users\Jaliya) - 0s
[ERROR] 13:24:46.344 terminal.go:HasParentFilePath:559 → CreateFile .git: The system cannot find the file specified.
[TRACE] 13:24:46.345 terminal.go:HasParentFilePath(.git) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(  ) - 0s
[TRACE] 13:24:46.345 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.345 text.go:Render(<parentBackground></>  ) - 0s
[TRACE] 13:24:46.345 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.345 text.go:Render({{ if gt .Code 0 }}#e91e63{{ end }}) - 0s
[TRACE] 13:24:46.345 text.go:Render(diamond) - 0s
[TRACE] 13:24:46.345 text.go:Render({{ if gt .Code 0 }}#e91e63{{ end }}) - 554.9µs
[TRACE] 13:24:46.345 terminal.go:Shell() - 0s
[TRACE] 13:24:46.345 terminal.go:Shell() - 0s
[TRACE] 13:24:46.345 terminal.go:Flags() - 0s
[TRACE] 13:24:46.345 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.345 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.345 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.345 terminal_windows.go:56 → C:\Users\Jaliya
[TRACE] 13:24:46.345 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.345 segment.go:Execute:103 → segment: Time
[DEBUG] 13:24:46.345 terminal_windows.go:56 → C:\Users\Jaliya
[DEBUG] 13:24:46.345 segment.go:Execute:103 → segment: Shell
[TRACE] 13:24:46.345 terminal.go:GOOS() - 0s
[DEBUG] 13:24:46.345 segment.go:Execute:103 → segment: Ytm
[DEBUG] 13:24:46.345 time.go:Enabled:27 → 15:04:05
[DEBUG] 13:24:46.345 shell.go:Enabled:26 → mapped_shell_names: map[]
[TRACE] 13:24:46.345 terminal.go:Shell() - 0s
[TRACE] 13:24:46.345 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.345 terminal.go:Flags() - 0s
[DEBUG] 13:24:46.345 ytm.go:setStatus:63 → http://127.0.0.1:9863
[TRACE] 13:24:46.345 terminal.go:TemplateCache() - 0s
[DEBUG] 13:24:46.345 ytm.go:setStatus:64 → api_url: 20
[TRACE] 13:24:46.346 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.346 text.go:Render(<#0077c2,transparent></>  {{ .Name }} <transparent,#0077c2></>) - 680.7µs
[TRACE] 13:24:46.346 text.go:Render(plain) - 0s
[DEBUG] 13:24:46.346 terminal.go:HTTPRequest:499 ↓
    GET /query HTTP/1.1
    Host: 127.0.0.1:9863
    User-Agent: Go-http-client/1.1
    Accept-Encoding: gzip

[ERROR] 13:24:46.346 terminal.go:HTTPRequest:504 → Get "http://127.0.0.1:9863/query": dial tcp 127.0.0.1:9863: connectex: No connection could be made because the target machine actively refused it.
[TRACE] 13:24:46.346 terminal.go:HTTPRequest(http://127.0.0.1:9863/query) - 1.1836ms
[TRACE] 13:24:46.346 text.go:Render(powerline) - 0s
[TRACE] 13:24:46.347 terminal.go:TemplateCache() - 0s
[TRACE] 13:24:46.347 text.go:Render( {{ .CurrentDate | date .Format }} ) - 545.9µs
[TRACE] 13:24:46.347 text.go:Render(diamond) - 0s
[TRACE] 13:24:46.347 terminal.go:Shell() - 0s
[TRACE] 13:24:46.347 terminal.go:Shell() - 0s
[TRACE] 13:24:46.347 terminal.go:Flags() - 0s
[TRACE] 13:24:46.347 terminal.go:Shell() - 0s
[DEBUG] 13:24:46.347 terminal_windows.go:TerminalWidth:114 → terminal width: 209
[TRACE] 13:24:46.347 terminal_windows.go:TerminalWidth() - 0s
[DEBUG] 13:24:46.347 terminal.go:Getenv:161 → C:\Users\Jaliya\AppData\Local
[TRACE] 13:24:46.347 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:24:46.347 terminal.go:CachePath() - 0s
[TRACE] 13:24:46.347 terminal.go:Flags() - 0s
jaliyaudagedara commented 2 weeks ago

With 23.x.x, I have this,

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "console_title_template": "{{ .Shell }} in {{ .Folder }}",
  "blocks": [
    {
      //
    },
    {
        "type": "newline"
    },
    { 
      //
    }
  ],
  "version": 3,
  "auto_upgrade": true,
  "final_space": true
}

And it's working. image

JanDeDobbeleer commented 2 weeks ago

@jaliyaudagedara this is no longer supported:

{
    "type": "prompt",
    "newline": true,
    "alignment": "left",
    "segments": []
}

It will be evaluated as empty and thus not print, if this worked before that was actually a bug. You need to add the newline to a block that actually has characters to print:

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "console_title_template": "{{ .Shell }} in {{ .Folder }}",
  "blocks": [
    {
      //
    },    
    {
        "newline": true,
      //
    }
  ],
  "version": 3,
  "auto_upgrade": true,
  "final_space": true
}
jaliyaudagedara commented 2 weeks ago

Thanks @JanDeDobbeleer for your quick response.

I see, got it.

P.S: That worked!!!