Yeah. it's a mistake in the sdk constraint.(edited)
floitsch07/28/2023 07:42 PM
Let me fix it. Hopefully won't take too long. In the meantime you can run jag pkg install [email protected] (iirc)
floitsch07/28/2023 07:46 PM
Should be working again.
floitsch07/28/2023 07:46 PM
Thanks for letting us know.
kaxori07/28/2023 07:47 PM
what means (iirc)
floitsch07/28/2023 07:47 PM
iirc=if I remember correctly
kaxori07/28/2023 07:47 PM
kaxori07/28/2023 07:49 PM
Why do i get this: Unhandled error: worktree contains unstaged changes
floitsch07/28/2023 07:49 PM
bah.
floitsch07/28/2023 07:49 PM
I haven't really figured out when and why this happens, but it means that the registry checkout in your cache is broken.
floitsch07/28/2023 07:49 PM
You can just delete it.
floitsch07/28/2023 07:50 PM
It's in your home in .cache/toit/tpkg-registries/github.com/toitware/registry
kaxori07/28/2023 08:20 PM
I guess, if VSC is running and there are updates in package file are locked and not changed. Only a guess !
floitsch07/28/2023 08:21 PM
You think it's visual studio code?
floitsch07/28/2023 08:21 PM
Normally vsc doesn't even see the registry checkout.
kaxori07/28/2023 08:22 PM
I wonder why i have sometimes problems with the registry, ONLY a supposition
floitsch07/28/2023 08:24 PM
I'm open for all ideas. (especially the ones that are easy to fix We are using a Go library to do the checkout. If things get worse I might just switch to calling out to git instead of using the library. I would feel more comfortable with that.
kaxori07/28/2023 08:24 PM
deleting the reg folder - followed by jag pkg clean - recovers it
1
floitsch07/28/2023 08:24 PM
Would also make it easier to eventually rewrite the package manager in Toit. Unfortunately not a high priority, but would be so much nicer.
kaxori07/28/2023 08:26 PM
Nevertheless, thank you and have a nice evening (edited)
floitsch07/28/2023 08:36 PM
You too. And again thanks for reporting the issue. It's one of the most used packages, so that would have hurt.