Skip Menu |
 

This queue is for tickets about the App-TimeTracker CPAN distribution.

Report information
The Basics
Id: 128740
Status: resolved
Priority: 0/
Queue: App-TimeTracker

People
Owner: domm [...] cpan.org
Requestors: markus.lindner [...] geizhals.at
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: misleading error message: Unknown option: jira
Date: Thu, 7 Mar 2019 15:06:15 +0100
To: bug-App-TimeTracker [...] rt.cpan.org
From: Markus Lindner <markus.lindner [...] geizhals.at>
Download (untitled) / with headers
text/plain 1.1k
Hi there, I use tracker @work. I can stop tracker using tracker stop Worked 00:05:47 on IRA_ITEM_NUM outside the git repo. However, when I restart work outside the git-repo, I get this very misleading error-message tracker start --jira JIRA_ITEM_NUM Unknown option: jira usage: tracker [-?h] [long options...] --at STR Start at --project STR Project name -h -? --usage --help Prints this usage information. --description STR Description --tags STR... Tags [Multiple] Maybe also give a hint like ("Are you sure you are _inside_ your codebase?") thx alot and TIA ML -- Mit freundlichen Grüßen Markus Lindner Development Geizhals (R) - Preisvergleich Preisvergleich Internet Services AG Obere Donaustraße 63/2 A-1020 Wien Tel: +43 1 5811609/81 Fax: +43 1 5811609/55 https://geizhals.at | https://geizhals.de | https://geizhals.eu https://www.facebook.com/geizhals => Geizhals auf Facebook https://twitter.com/geizhals => Geizhals auf Twitter https://geizhalsblog.wordpress.com => Der Geizhals-Blog https://unternehmen.geizhals.at/about/de/apps => Die Geizhals Mobile-App Handelsgericht Wien | FN 197241K | Firmensitz Wien
Download pEpkey.asc
application/pgp-keys 2.4k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 1.5k
On Thu Mar 07 09:16:15 2019, markus.lindner@geizhals.at wrote: Show quoted text
> I can stop tracker using > .. > outside the git repo.
"stop" works outside the git repo, because "stop" loads the context of the to-be-stopped task and executes "stop" in this context. Show quoted text
> However, when I restart work outside the git-repo, I get this very > misleading error-message > tracker start --jira JIRA_ITEM_NUM > Unknown option: jira
Hm, I do not find this error very misleading: You try to "start" in a directory that does not contain a tracker-config (or at least does not contain one that loads the JIRA plugin). Therefor the option --jira is not available. Which is exactly what the error message tells you :-) You might have (and I do!) a lot of projects to track, using different configs (eg RT vs JIRA vs gitlab for issue-tracking). So you cannot just say "tracker start" in any directory. Well, actually you can, esp. if you're only working for one employer: You can load the JIRA-Plugin in your "root" tracker-config (usually in ~/.TimeTracker/tracker.json). All config defined here is valid for all your "tracker" calls, no matter where you do them. Show quoted text
> Maybe also give a hint like ("Are you sure you are _inside_ your codebase?")
That's a good idea. Actually, this sort of happens, only if you do not specify any opts: ~$ tracker start Could not find project Use --project or chdir into the project directory But: ~$ tracker start --rt 128740 Unknown option: rt .. I'll see if I can switch this around, so we FIRST check if we have a project, and only then handle the opts. Greetings (from Karmeliterplatz :-), domm
Download (untitled) / with headers
text/plain 287b
Hi! The new release 2.027 (currently on it's way to CPAN) should "fix" the problem by reporting that you try to start a task without specifying a project (i.e. if you start outside of any TimeTracker enabled file system tree AND do not specify --project) Thanks for the feedback! domm


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.