oughtinc / ice

Interactive Composition Explorer: a debugger for compositional language model programs
https://ice.ought.org
MIT License
529 stars 66 forks source link

ICE UI stops working #302

Open joshpoll opened 1 year ago

joshpoll commented 1 year ago

Hi! I'm really excited about the project and the UI was working for a while but it seems like some state got corrupted somewhere, because all of a sudden I get this error message instead of the UI:

ui/index.html not found. Run `npm run build` in the ui directory to create it, or run `npm run dev` to run the dev server and access localhost:5173 instead.

I'm not building ICE from source so I'm pretty confused as to how this could have happened.

I see that this error has happened to someone else, but it wasn't resolved there. https://github.com/oughtinc/ice/issues/154#issuecomment-1356228273

Any help would be really appreciated, thanks!

alexmojaki commented 1 year ago

Are you using a git clone of this repo, or did you just pip install from PyPI?

joshpoll commented 1 year ago

I pip installed. I'm following the Primer: https://primer.ought.org/

joshpoll commented 1 year ago

Aha! I was finally able to resolve this by restarting the server using python -m ice.server stop. I missed that command as the logs flew by. Would it be possible to add this command in a more prominent place in the docs?

uhgall commented 1 year ago

3 months later I had the same problem, so, definitely second @joshpoll 's suggestion to add this to the README. :-)