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

The plugin is not being applied automatically #56

Closed mykolasolodukha closed 1 year ago

mykolasolodukha commented 2 years ago

The plugin does not work in debug console (issue: await outside function) automatically. To make it work one has to click "evaluate expression" and put some await ... as the expression. After that action, the await in the console works OK (i.e. there is no await outside function).


Plugin version: 1.2.0 PyCharm version: 2022.2.3 (Build #PY-222.4345.23, built on October 10, 2022)

roman-hrybinchuk commented 1 year ago

Have same issue +1

uriyyo commented 1 year ago

Hi @mykolasolodukha @roman-hrybinchuk,

Thanks for submitting this issue, I will take a look on it.

uriyyo commented 1 year ago

Hi @mykolasolodukha @roman-hrybinchuk,

New version 1.21 has been released. This issue should be fixed now.

AlecHaring commented 1 year ago

It seems like the issue still occurs with 1.21:

https://user-images.githubusercontent.com/19616756/210001679-e5b6f102-699d-47c2-9f60-be223f4bdc0f.mov

PyCharm 2022.3 (Professional Edition)
Build #PY-223.7571.203, built on November 30, 2022
Runtime version: 17.0.5+1-b653.14 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Registry:
    ide.intellij.laf.enable.animation=true
    debugger.watches.in.variables=false
    debugger.new.tool.window.layout=true
    ide.experimental.ui=true
    ide.balloon.shadow.size=0

Non-Bundled Plugins:
    dev.hashnode.bas.the.inspector (1.0.1)
    com.deadsilly.blackbird.theme (0.3.3)
    Batch Scripts Support (1.0.13)
    org.rust.lang (0.4.185.5086-223)
    com.thvardhan.gradianto (4.5)
    com.mallowigi.idea (20.0.0)
    com.jetbrains.darkPurpleTheme (1.3)
    com.github.copilot (1.1.38.2243-nightly)
    CMD Support (1.0.5)
    com.arcticicestudio.nord.jetbrains (0.13.0)
    com.uriyyo.evaluate_async_code (1.21)
    com.carbonblack.intellij.rpmspec (2.1.0)
    se.piksel.intellij.themes.prpl (0.6.0)
uriyyo commented 1 year ago

Hi @AlecHaring @mykolasolodukha @roman-hrybinchuk,

New version 1.22 has been released. This issue should be fixed now.

But JetBrains can change their API again with the next release of PyCharm, and this issue may appear again. 🤷‍♂️

Unfortunately, they don't have a stable API for python debugger and this plugin is based on their experimental API.

AlecHaring commented 1 year ago

Yep, all fixed @uriyyo! Appreciate the update :)