uriyyo / pycharm-evaluate-async-code

Finally, you can use await in evaluate expression 💪
https://plugins.jetbrains.com/plugin/14476-evaluate-async-code
44 stars 2 forks source link

ValueError when run on WSL2 Ubuntu, Pycharm #9

Closed wasdee closed 3 years ago

wasdee commented 3 years ago
C:\Windows\system32\wsl.exe --distribution Ubuntu --exec /bin/sh -c "export ENV=dev" && cd /mnt/c/Users/n2/devs/codustry/gebwai/backend/app && /mnt/c/Users/n2/devs/codustry/gebwai/backend/.venv/bin/python '/mnt/c/Program Files/JetBrains/PyCharm 2020.3.3/plugins/python/helpers/pydev/pydevd.py' '/mnt/c/Program Files/JetBrains/PyCharm 2020.3.3/plugins/python/helpers/pydev/pydevd.py' --multiproc --qt-support=auto --client 172.24.64.1 --port 54991 --file /mnt/c/Users/n2/devs/codustry/gebwai/backend/app/main.py"
Traceback (most recent call last):
  File "/mnt/c/Program Files/JetBrains/PyCharm 2020.3.3/plugins/python/helpers/pydev/pydevd.py", line 1997, in main
    setup = process_command_line(sys.argv)
  File "/mnt/c/Program Files/JetBrains/PyCharm 2020.3.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_command_line_handling.py", line 146, in process_command_line
    raise ValueError("Unexpected option: " + argv[i])
ValueError: Unexpected option: /mnt/c/Program Files/JetBrains/PyCharm 2020.3.3/plugins/python/helpers/pydev/pydevd.py
Usage:
    pydevd.py --port N [(--client hostname) | --server] --file executable [file_options]
uriyyo commented 3 years ago

Hi @CircleOnCircles,

Sorry for the long response, I will take a look at this issue.

The only problem is, that I don't have a windows machine so it can take a lot of time for me to fix this issue.

Thanks for submitting issue)

Ohad31415 commented 3 years ago

@uriyyo I'm appending my issue here since it seems to originate from the same issue:

I'm getting a similar error when trying to debug using a remote ssh interpretor:

Traceback (most recent call last):
  File "/home/pi/.pycharm_helpers/pydev/pydevd.py", line 1997, in main
    setup = process_command_line(sys.argv)
  File "/home/pi/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_command_line_handling.py", line 146, in process_command_line
    raise ValueError("Unexpected option: " + argv[i])
ValueError: Unexpected option: C:\Program Files\JetBrains\PyCharm 2020.3.2\plugins\python\helpers\pydev\pydevd.py
Usage:
    pydevd.py --port N [(--client hostname) | --server] --file executable [file_options]

I'm running PyCharm on windows 10 and the remote interpreter is on raspberry pi. It seems to work fine if I run it not in debug mode, plus - disabling the extension makes things work as normal again.

Overall really useful extension I really hope this issue could be resolved soon 🙏 .

uriyyo commented 3 years ago

Hi @Ohad31415, I will try to fix this issue as soon as possible

uriyyo commented 3 years ago

Hi @CircleOnCircles and @Ohad31415,

I did several attempts to allow debugging for remote interpreters but failed every time.

The new version 1.12 has been released. As a fix for this moment plugin will be disabled for remote interpreters so you don't need to disable the plugin to start debugging.