EXERLOG / exer_log

exer_log - authored by @KalleHallden

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting a StateError (bad state) when creating a new workout

ramsy0dev opened this issue · comments

Whene creating a New Worckout after providing the name of it
i get an exception that says the following:


Screenshot from 2022-08-18 15-12-54

(the file that has the Exeption is this one)


Can you add a video and steps to reproduce? @0RaMsY0

For some reason my recording software is not working but i am gonna try and tell you steps
so when you are in the home page and click on "Start a new workout" then you get to an auther page that pops up a TextField
where you type an exercie name wich is this one

Screenshot_20220818-200838

when you create on add this exercise get added like i see it here

Screenshot_20220818-195436
and then i get the Exeption in vs code

i fixed this issue in #96

@0RaMsY0 how come you closed #96?

@KalleHallden I thaught i was already fixed by someone else,
i have reopened it

edit: @jorre127 and i are still discussion this issue and we are not sure if what i did will actually fix this issue

@0RaMsY0 I looked into it and fixed the problem, problem is then I got a lot of different errors haha. Seeing as the workout page is going to be reworked anyway in the transition to riverpods, I don't think it's useful to try and fix all the errors right now. It's better to just redo it I think. If you agree I'm going to close the PR for now.

@jorre127 alright you can close it thanks for your help

@jorre127 I've not been able to create workout for a while now. The calendar widget does not show a clickable day icon after creating the workout. Having trouble logging in as well (login button turns into spinner forever). I don't know if it's something wrong with my local or the code.

I'll create a separate issue for the login if no one has done so. Not sure if the problem I'm facing with cannot creating workout is similar to this issue.
My issue: #90 (comment)

@ckelwin does the workout that doesn't show up on the calendar have zero reps? Because maybe it has something to do with #130

@jorre127 Attached a screen recording.

create-workout.mp4

I was having the said problem with creating and/or viewing workouts when using an emulator. Switched to a physical device and it's working fine now. Much faster as well.

I was having the said problem with creating and/or viewing workouts when using an emulator. Switched to a physical device and it's working fine now. Much faster as well.

I have the same issue. Did you find out, why it doesn't work on the emulator?
I get the following error with the emulator:

image

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.