pretext-cli icon indicating copy to clipboard operation
pretext-cli copied to clipboard

Fix codespace `pretext view` again

Open oscarlevin opened this issue 1 year ago • 4 comments

Apparently another change made by github has broken pretext view in codespaces. Seems to be a problem with an address already being in use.

oscarlevin avatar May 08 '24 15:05 oscarlevin

Actually, it seems to work again. Not sure what happened during the presentation today. @StevenClontz, were you just guessing that was what happened today, or have you seen other issues lately?

oscarlevin avatar May 08 '24 16:05 oscarlevin

I think we need to get rid of the auto-open window, at least in Codespaces. It seems that clicking the link in the Codespace is triggering something necessary to make the codespace alias for localhost functional.

StevenClontz avatar May 09 '24 17:05 StevenClontz

Further testing makes me believe this is an issue with using both CodeChat and pretext view in the same codespace. If I restart the codespace and do a pretext view, it works fine. If I preview with CodeChat, that works, but then I run into errors when I try to pretext view. Perhaps codechat is using the same forwarded port as the python webserver we are using for viewing?

oscarlevin avatar May 16 '24 02:05 oscarlevin

N.B. CodeChat has switched to a different webserver besides the default Python module; dunno if that is related.

StevenClontz avatar May 16 '24 02:05 StevenClontz

This should now be fixed now. Will reopen if needed.

oscarlevin avatar May 18 '24 21:05 oscarlevin

Further testing makes me believe this is an issue with using both CodeChat and pretext view in the same codespace. If I restart the codespace and do a pretext view, it works fine. If I preview with CodeChat, that works, but then I run into errors when I try to pretext view. Perhaps codechat is using the same forwarded port as the python webserver we are using for viewing?

I haven't changed the ports that CodeChat uses, just the server (CherryPy).

bjones1 avatar May 18 '24 21:05 bjones1