Named bookmarks not recognized on Windows Powershell #371
Replies: 7 comments
-
This is related to you using PowerShell. Try quoting the bookmark name:
|
Beta Was this translation helpful? Give feedback.
-
@jotaen Why are bookmark names required to be prefixed by an Pseudo-code in the bookmark creation
|
Beta Was this translation helpful? Give feedback.
-
@vladdeSV The prefix is not required when setting a bookmark, only when using it. So for setting you can say `klog bookmarks set file.klg foo` and then use it via `klog total @foo`.
I didn't test on Powershell unfortunately, only with cmd.exe. But I assume if setting doesn't work, then using the named bookmark won't probably work either on Powershell.
|
Beta Was this translation helpful? Give feedback.
-
Ah, that is true. Best suggestion I have then would be to add a note in the documentation that PowerShell users need to quote the bookmark name. |
Beta Was this translation helpful? Give feedback.
-
Yes, even though quoting is inconvenient, it might still be the best workaround... I won't be able to look into this more this week, so I'll take care of it later. I hope it can be fixed somehow, otherwise I'll add some warning / hint in the docs. Thanks for reporting!
|
Beta Was this translation helpful? Give feedback.
-
This issue should be closed, or possibly renamed to reflect that this is PowerShell related. Solution to problem is to quote the bookmark name ( |
Beta Was this translation helpful? Give feedback.
-
The I’ve added a note in the documentation how to workaround this. You can either prepend the bookmark name with a backtick, or you wrap it in quotes. So both the following ways will do:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Just upgrade klog, excited for the multiple bookmarks feature. But when I try to set a new one, it just assign it to
default
.I've tried in Linux and work well
Beta Was this translation helpful? Give feedback.
All reactions