pomogoro icon indicating copy to clipboard operation
pomogoro copied to clipboard

Stray goroutine when ctrl-c is used to quit

Open tomsrobots opened this issue 5 years ago • 3 comments
trafficstars

I gave pomogoro a shot for the first time and in general I really like it. However, when I issued ctrl-c to quit as per the instruction and tried to boot pomogoro back up, I got the following:


goroutine 1 [running]:
github.com/phux/pomogoro/config.Load(0x7ffc62f5cbdc, 0x18, 0x2, 0x2, 0x0)
	/home/username/Development/Go/src/github.com/phux/pomogoro/config/config.go:41 +0x2af
main.main()
	/home/username/Development/Go/src/github.com/phux/pomogoro/main.go:30 +0xf0

tomsrobots avatar Apr 15 '20 16:04 tomsrobots

Glad you like it :)

Regarding the issue: The error indicates that there is a problem with decoding the config file. Could you paste the contents here?

phux avatar Apr 16 '20 13:04 phux

Sure! I should say I have never used Go before and installed it just for your project. It's possible I set something up wrong. Here's my config file:

# config.toml
TodoFile = "/home/username/todo.txt" # containing the tasks you want to track
LogFile = "/home/username/.config/pomogoro/pomogoro.log" # tracking log file
BreakDuration = 5 # in minutes
PomodoroEnabled = true # whether to use pomodoro timer or not
PomodoroDuration = 25 # in minutes
LogIdleTime = true # also log idle times
LogBreakTime = true # also log breaks

tomsrobots avatar Apr 17 '20 15:04 tomsrobots

Weird, your config looks okay, I can also start pomogoro with your config via

pomogoro --config /tmp/toms_config.toml

Maybe try downloading the latest release for your OS instead of using the go installation (then you can also remove go from your OS)?

phux avatar Apr 18 '20 18:04 phux