-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
_p9k_taskwarrior_init_data:32: bad floating point constant #2648
Comments
…and I think I may have figured this one out. PR in a bit |
After upgrading TaskWarrior to 3.0.1, I think... the comand means to return some "Runnable" which resolves to a float, now returns the float itself. So when we try to resolve the Runnable, ZSH throws an exception, and p10k cannot parse the float from that. This just changes the assumption that we get a float back. p.s: Please when reviewing, ask youself "How does this affect P10K at large?" I don't have this purview, but this change sure fixes my problem. Fixes romkatv#2648
The output of "3.0.1" does not look like what we are trying to get. I suppose there was a backward-incompatible change in the command line API of The PR you sent is on the wrong track, I'm afraid. I suggest that you disable taskwarrior prompt segment in your |
That's okay. I'll close the PR. Yes, 3.x has some breaking changes in them. Now, writing this comment, I'm realizing I'll leave the issue open for someone who hopefully knows how to get that. |
Also, how does one disable the task bit for p10k? I searched and can't point to one shell variable I can turn off to disable this |
Open |
It's an array of pending tasks. |
Hi, function prompt_mytaskwarrior() {
emulate -L zsh
setopt pipefail
(( $+commands[task] )) || return
local line IFS
task +PENDING count 2>/dev/null | read -r lineP || return
task +OVERDUE count 2>/dev/null | read -r lineO || return
[[ "${lineP}" == "0" ]] && return
lineP="⇡${lineP}"
if [[ "${lineO}" == "0" ]]
then
lineO=""
else
lineO="!${lineO}"
fi
local tags="${lineP}${lineO}"
[[ -n $tags ]] || return
p10k segment -f 208 -i $'' -t $tags
} and, although it is slow, it works flawlessly. To use it add this function to .zshrc before sourcing powerlevel10k and replace "taskwarrior" with" mytaskwarrior" in ".p10k.zsh" best C. |
This is a regression in taskwarrior that will be fixed in a 3.0.2 patch release |
Thanks! That's great know. |
I no longer see this behavior after updating to Taskwarrior 3.0.2 |
Thanks for the confirmation. Closing. |
Looks like the problem was with |
I recently upgraded taskwarrior to 3.0.1 and I get this error
This looks similar to #1365.
Commenting out this line "fixes" it — i.e. allows me to get the prompt back — but I'm unsure if it's the right fix.
The output of the command string in "ts" is 3.0.1
…thus…
I think this is the error here? …but my zsh-fu is not even at beginner level
powerlevel10k/internal/p10k.zsh
Line 5268 in 178fcda
The text was updated successfully, but these errors were encountered: