-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
task config
does not report an error if it cannot write to .taskrc
#3611
Comments
I don't know much about contexts, but this does work for me. As the |
They were not being added (despite the command exiting successfully). I can't reproduce on this computer, will try again tonight on the other computer. I did end up making this tiny test harness, though, that might be helpful for some people to generate minimal repros:
|
Is the If the
I didn't realize there was any migration to do. What is the "older definition style"? As I said, I don't know much about contexts! |
I can't figure out what that |
So, "old" contexts look like:
Taskwarrior appears to convert this internally to a "new" context with only its read behavior defined:
If I wanted newly-created tasks in this context to have certain properties, I could edit it to be:
This isn't really documented anywhere I could find, so I've sort of sussed this out from interacting with it on several computers with several versions of taskwarrior. |
Maybe this is a WSL/linux permission intersection issue? The computer that was not behaving well was ubuntu-in-windows; maybe @martiege has a similar setup? |
Oh, intersting --
had me assuming this was a mac.. A PR to add documentation for those formats, either to the manpages here, or to https://github.com/GothenburgBitFactory/tw.org, would be great! |
Ah, sorry - I recently migrated to taskwarrior 3 on a linux computer, a WSL computer, a mac, and an android phone, and the issues I was having were either on the mac or the WSL computer, but neither are reproducible now (I just checked the WSL setup, and it's working fine) and I grabbed the logs from the mac. This is especially perplexing because I version control my taskrc, and I rolled it backwards/forwards and couldn't get it to repro at any recent commit... |
Ok, so there definitely is a "fails silently" bug here. figured since the repro was easy enough i'd test it, and sure enough... :) |
OK, nice! I can repro that too, with the simpler
I'll mark this as a bug and add it to the backlog. |
task config
does not report an error if it cannot write to .taskrc
@echo-bravo-yahoo it might be related yeah, as I only seem to experience the issue when I include a symlinked and read-only file, though I'm running nixos natively and not through wsl or anything. I'll check what permissions are given, but it still seems strange to me that the behaviour seems so random. |
I raised a PR to address silent fails on modification of the .taskrc file. |
Thanks @gagankonana. @martiege or @echo-bravo-yahoo, do you have the capability to compile locally and verify that @gagankonana's fix has addressed the issue? |
I don't appear to be able to create contexts in v3.1.0 from the CLI. Some other useful information:
The text was updated successfully, but these errors were encountered: