Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status segment hangs with a condition #5816

Closed
1 task done
stevenxxiu opened this issue Nov 5, 2024 · 1 comment · Fixed by #5817
Closed
1 task done

Status segment hangs with a condition #5816

stevenxxiu opened this issue Nov 5, 2024 · 1 comment · Fixed by #5817
Assignees
Labels
🐛 bug Something isn't working

Comments

@stevenxxiu
Copy link

stevenxxiu commented Nov 5, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

The latest version v24.0.5 hangs when the status segment has some condition.

Theme

Minimal config:

# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 3
blocks:
  - type: prompt
    segments:
      - type: status
        templates:
          - '{{ if .Segments.Contains "Executiontime" }}a{{ else }}b{{ end }}'

What OS are you seeing the problem on?

Arch Linux

Which shell are you using?

Nushell

Log output

This hangs, so I can't get log output.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants