Closed kingkaos closed 1 year ago
This is most likely an issue with a .taskrc
config attribute.
Please remove your custom .taskrc
configuration and start with a bare minimum .taskrc
-- if Vit loads under this condition, then start adding back items to your config until you find the problem config attribute.
Hallo, thank you for the advice.
You have been right, I modified my .taskrc
before and thought that I removed all custom settings to end up with the default settings… I’ve overseen one line.
Thanks :)
Is the problem setting a valid Taskwarrior setting or was it a syntax error?
I tried 'taskwarrior-tui' before 'vit'. It was a valid 'taskwarrior-tui' setting but not a setting for 'Taskwarrior' itself. Since 'taskwarrior-tui' uses also the '.taskrc' for configuration this lead to this error message.
@kingkaos have you figured out how to marry the two?
On the other hand: if taskwarrior
itself does not complain, I don't think vit
should
@thehunmonkgroup How would you feel about changing that line to
return {k: v["type"] for k, v in subtree["uda"].items() if "type" in v}
? It seems to work fine locally.
This seems more like a structural issue with taskwarrior-tui.
VIT doesn't add any settings to .taskrc
, instead it uses its own configuration file, which prevents polluting .taskrc
with non-Taskwarrior settings.
I believe the correct solution is to file an issue with taskwarrior-tui for restructuring their approach to configuring the software.
I agree with you on that, so I'll file an issue. But I think it still might be worthwhile to consider, since taskwarrior
itself doesn't trip up on this and the 3rd party application guide also does not mention anything about this, so other applications might still choose to do this.
I don't recall any software documentation saying "please don't put stuff in our configuration file".
IMO it's commonly understood practice for an app to use its own configuration system for application specific settings.
Taskwarrior and VIT use different parsing mechanisms, it may be entirely incidental that it's not barfing on this non-Taskwarrior setting -- I don't think that's a compelling reason for VIT to parse .taskrc
differently.
If VIT barfs on a valid Taskwarrior setting, that is something VIT should accommodate.
On Sun Sep 03, 2023 at 20:29, thehunmonkgroup wrote:
I don't recall any software documentation saying "please don't put stuff in our configuration file".
IMO it's commonly understood practice for an app to use its own configuration system for application specific settings.
Taskwarrior and VIT use different parsing mechanisms, it may be entirely incidental that it's not barfing on this non-Taskwarrior setting -- I don't think that's a compelling reason for VIT to parse
.taskrc
differently.If VIT barfs on a valid Taskwarrior setting, that is something VIT should accommodate.
You're right, point acknowledged :)
I jsut installed
vit
usinghomebrew
on macos Ventura (13.4.1) withbrew install vit
and after trying to runvit
I received the following Python error:I tried to install
vit
using the development instructions (using virtual environment and Python 3.8.17) but got the same KeyError. Everything is the same (despite the paths, since this time I used a cloned repository and not brew).Steps to reproduce:
brew install vit
vit
I expected that
vit
would work out of the box withbrew
.I tested it with the default TaskWarrior settings.
I appreciate any help.