Giter Club home page Giter Club logo

pomotui's Introduction

๐Ÿ‘‹ Charlie Roth

Building and researching software for the purpose of storing and sharing data for all intelligences, for all of time

CV & Resume

pomotui's People

Contributors

ailac22 avatar charlieroth avatar cptpie avatar mjholub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pomotui's Issues

[bug] Segfault during long break

Reproducing:
0. Install with go install @latest

  1. start pomotui, set short break to 5', long break to 20', 4 25-minute session cycle
  2. When a long break is entered, stop, then continue
    See the error:
Caught panic:

runtime error: invalid memory address or nil pointer dereference

Restoring terminal...

goroutine 1 [running]:
runtime/debug.Stack()
        /usr/lib/go/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
        /usr/lib/go/src/runtime/debug/stack.go:16 +0x19
github.com/charmbracelet/bubbletea.(*Program).StartReturningModel.func3()
        /home/me/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:371 +0x95
panic({0x59a880, 0x6fda40})
        /usr/lib/go/src/runtime/panic.go:890 +0x262
github.com/charmbracelet/bubbletea.(*Program).StartReturningModel(0xc0001280b0)
        /home/me/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:540 +0x1276
github.com/charmbracelet/bubbletea.(*Program).Start(...)
        /home/me/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:547
main.main()
        /home/me/go/pkg/mod/github.com/charlieroth/[email protected]/main.go:13 +0x8a

Judging from where the error occurs, this might be an upstream issue with bubbletea, but unlikely.

On a side note, I'd love to see the support for skipping breaks or work sessions implemented, as well as restarting the counter (can contribute my time for that in near future as well).

Go env:

GO111MODULE=""
GOARCH="amd64"
GOBIN="/home/me/go/bin"
GOCACHE="/home/me/.cache/go-build"
GOENV="/home/me/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/me/go/pkg/mod"
GONOPROXY="github.com/italistdev"
GONOSUMDB="github.com/italistdev"
GOOS="linux"
GOPATH="/home/me/go"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.6"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build300346513=/tmp/go-build -gno-record-gcc-switches"

other relevant env vars:

$TERM: screen-256color (Alacritty with tmux on Wayland)
$SHELL: zsh
$OSTYPE: linux-musl
kernel version: 5.15.95-0-lts

I also think that the issue might be related to cgo having compatibility issues with musl, though given that go and alpine go kinda hand in hand in docker containers I also doubt it. I faced this issue way more often with rust crates that utilize the libc crate, this was also the reason I chose this program over rusty krab manager.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.