coddingtonbear / taskwarrior-pomodoro

Simple OSX tray application allowing you to use Pomodoro techniques with Taskwarrior

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App not responding + sbbod when clicking menu bar icon

amitkot opened this issue · comments

I installed using brew.
Could not get it to run on this macbook - when I click the menu bar after running the app, I get the spinning beachball and the app is not responding and has to be stopped from the Activity Monitor.

My macbook "13 runs El capitan.

What additional information can I provide?

It might be that you don't have taskwarrior installed, but it's a little hard to say, honestly! If you run which task in the console, does it return a path like /usr/local/bin/task?

Hey there @amitkot, feel free to reach out to me on Freenode (i'm coddingtonbear there) if you need further help troubleshooting. For the moment, I'm closing this ticket due to inactivity.

Hi @coddingtonbear ,
Sorry for my lack of responsiveness. Super busy times.
I do have taskwarrior installed, in the same location you indicated.
I also have taskwarrior-pomodoro working on a different MacBook, but for
some reason I could never get it to work on this one.
What kind of information can I provide that will help you?
I can sample the app from the Activity Monitor. Will it help?

On Thu, Nov 10, 2016 at 6:18 AM Adam Coddington notifications@github.com
wrote:

Closed #28
#28.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#28 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAn62TqrHUaz--CAoNwc2ou3zOxV9cupks5q8pshgaJpZM4KbE2Z
.

Let's try running the binary from the command-line directly:

cd /Applications/Taskwarrior\ Pomodoro.app/Contents/MacOS
./Taskwarrior\ Pomodoro

When you run the program binary directly like that, it'll print a bunch of useful information to the console; could you run the above and try to interact with the app from the menu bar to cause it to show the beachball, then copy/paste the output here?

@amitkot -- have you had a chance to run the above command? Let me know if you bumped into any problems; I'd be glad to help out.

@coddingtonbear
When I run it from the terminal I get:

$ ./Taskwarrior\ Pomodoro
Configuration override rc.json.array:off

When I click the menu bar icon it stays selected, it is no longer clickable, and the mouse changes to the spinning beachball.
On Activity Monitor it is listed as Taskwarrior Pomodoro (Not Responding).

Is there a way to set the verbosity level so that the terminal will show more data?

@coddingtonbear Just noticed I'm using version 1.5 (which is the latest version on Brew Cask).
Updating to the 1.7 that is listed on this repo's README.md file and trying again.

@coddingtonbear Now running 1.7 from the terminal doesn't show previous message:

$ ./Taskwarrior\ Pomodoro

And I get the spinning beachball immediately after running it, when hovering over the app's icon.

I'm afraid that if you are running it that way, the messages you see there are all of the messages that I'm printing.

Let's try another thing -- can you check to see what version of taskwarrior you're running by running--

task --version

And, if that returns successfully with a version above 2.4, try running the following command; let me know what it outputs if it isn't just a JSON version of your task list:

task rc.json.array=off export
$ task --version
2.5.1


$ task rc.json.array=off export
{"id":1,"description":"<REDACTED>","entry":"20160908T140515Z","modified":"20160908T140515Z","status":"pending","uuid":"e2dd7668-3285-4ffa-b86b-a5fdb984591d","urgency":0.378082}

... <MANY ITEMS> ...

... <MANY COMPLETED ITEMS WITH ID 0 - is that a problem?> ...

{"id":0,"description":"<REDACTED>","end":"20160914T053007Z","entry":"20160913T142212Z","modified":"20160914T053007Z","status":"completed","uuid":"39672782-5574-482f-b78a-d0a8b36953d6","urgency":0.350685}
{"id":0,"description":"<REDACTED>","end":"20160911T123121Z","entry":"20160908T140536Z","modified":"20160911T123121Z","status":"completed","uuid":"94f2f5a1-e115-4861-bb4d-ed2ba0249774","urgency":0.378082}
Configuration override rc.json.array:off

Nope; items with an ID of zero are just completed -- don't worry about those; we filter those out anyway when running the command in the app. I'm a little bit at a loss at this point, honestly. Let me think of some other troubleshooting ideas this weekend.

Perhaps I'll try backing up my tasks and trying to use the app with an
empty list.

On Fri, Nov 18, 2016, 09:14 Adam Coddington notifications@github.com
wrote:

Nope; items with an ID of zero are just completed -- don't worry about
those; we filter those out anyway when running the command in the app. I'm
a little bit at a loss at this point, honestly. Let me think of some other
troubleshooting ideas this weekend.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#28 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAn62QnSJ-Ol775uijwXYbo4LxkuqA7vks5q_VBTgaJpZM4KbE2Z
.

Give it a shot! Otherwise -- do you happen to have access to XCode? We could try troubleshooting it a little over a screenshare or something like that.

After moving my ./task directory elsewhere it works fine.
So there must be something in my tasks that makes it go crazy.

I tried exporting my tasks and importing them into a new configuration
after removing the ~/.task folder.
That didn't help.

I'll try attaching to the process using XCode.

On Sun, Nov 20, 2016 at 6:38 AM Adam Coddington notifications@github.com
wrote:

Give it a shot! Otherwise -- do you happen to have access to XCode? We
could try troubleshooting it a little over a screenshare or something like
that.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#28 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAn62Y1YeZK_MRm7it2wB2X_dFN6gMktks5q_86qgaJpZM4KbE2Z
.

@coddingtonbear I checked out the sources and opened them on XCode.
It held a firm opinion that the project uses an old version of Swift, and that it should be upgraded.

I think I noticed the toolbar icon looking slightly different as well.

Is the version of the code that is currently on the master branch, the most updated one?

Yeah -- I haven't found time to update the project to the latest Swift version yet, so that message is not surprising. Swift is a very fast-moving target these days.

The toolbar icon, though, does intentionally look different when running a development copy. This is mostly because I needed a way of identifying which version of Taskwarrior Pomodoro was the one I was testing while tracking a pomodoro of time working on this project.

Closing for no activity.