Forced Nix migration breaks everything

Bug description:
Syntax errors and suggestions (red and orange squigglies) don’t work. Console Error output isn’t red like usual. Debugger doesn’t run giving this error message:

 could not read stderr: Traceback (most recent call last):
File “/nix/store/ann2w0blx5vrc8mw1hwnvb37gry6ci9a-replit-python-dap-wrapper-1.0.0/bin/dap-python”, line 16, in
import debugpy
ModuleNotFoundError: No module named ‘debugpy’
failed to run adapter: could not parse port from adapter: strconv.Atoi: parsing “”: invalid syntax: EOF

Expected vs Current Behavior:
Also wasn’t asked if I wanted more features (I don’t)

Steps to reproduce:

Bug appears at this link: https://replit.com/@gigaclon/Advent-of-Code-2022-Day-16#main.py

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Replit Profile: https://replit.com/@gigaclon

Try moving your code from this Repl to a fresh Python Repl. Does that help?

yeah it does but I have a couple of hundred Repls so I don’t want to do it for all of them. Something in the migration process breaks all this.

So the LSP is missing. I did make a fix for that, but it’s a lot of effort to use.

Not sure about this one.

pip install debugpy?

1 Like

The only fix we know of at the moment is to regenerate your Repl’s virtual environment by running curl https://pythonify.util.repl.co/recreate_python3_venv.sh | bash in the shell.

3 Likes

Also your so-called “fix” returns the error + ./venv/bin/poetry install bash: line 48: ./venv/bin/poetry: No such file or directory so thanks for nothing.

1 Like

It has also broken everything for me and no fixes work