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

Node segment shows up all the time if node is in the path. #356

Open
duckpuppy opened this issue May 4, 2022 · 0 comments
Open

Node segment shows up all the time if node is in the path. #356

duckpuppy opened this issue May 4, 2022 · 0 comments
Labels

Comments

@duckpuppy
Copy link

Describe the bug
If node is in the current executable search path, the node segment shows the node version even if not in a node project.

To Reproduce
Steps to reproduce the behavior:

  1. Add node executable to system search path
  2. Enable node segment in powerline-go

Expected behavior
Node segment should only show up when in a node project (ie. when there's also a package version)

Environment (please complete the following information):

  • OS: macOS Monterey
  • Architecture: intel
  • Shell: zsh

Additional context
Bug was added with this commit: 14bfc26

The segment should not be visible unless there's also a package version to display.

@duckpuppy duckpuppy added the bug label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant