Open wuhongyewhy opened 5 months ago
I can reproduce the bug only when this plugin is active. I'm running PyCharm Pro 2023.3.2 (Build #PY-233.13135.95, built on December 19, 2023) on Linux Mint 21.2 with openjdk 17.0.9
Thanks for the bug report, but I haven't been able to reproduce the problem yet. Could one of you please try running PyCharm Pro 2023.3.3? Here are the steps I tried:
When I do this, it works fine and creates the file without freezing. I tried it with these versions:
Please let me know if you used different steps to reproduce the problem. I'll see if I can try it with the same versions that you reported using.
Hi @donkirkby
I followed your instructions and it does not freeze.
Here's a different scenario that produces the freeze :
.py
extension or not), One of the PyCharm processes get stuck and can only be killed with the SIGKILL
signal.
Note that if we choose "Python stub", there is no freeze.
Great! I can reproduce it now. Merci pour l'aide, @thomasleveil.
Hi. Still have the problem with
2024-05-09 12:13:40,056 [ 240795] SEVERE - #c.i.o.progress - There is no ProgressIndicator or Job in this thread, the current job is not cancellable.
java.lang.IllegalStateException: There is no ProgressIndicator or Job in this thread, the current job is not cancellable.
at com.intellij.openapi.progress.CoroutinesKt.invoke(coroutines.kt:128)
at com.intellij.openapi.progress.CoroutinesKt.invoke(coroutines.kt:126)
at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:83)
at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:126)
at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:121)
at io.github.donkirkby.livepycharm.SplitFileEditorProvider.getBuilderFromEditorProvider(SplitFileEditorProvider.java:317)
at io.github.donkirkby.livepycharm.SplitFileEditorProvider.createEditorAsync(SplitFileEditorProvider.java:77)
at io.github.donkirkby.livepycharm.SplitFileEditorProvider.createEditor(SplitFileEditorProvider.java:53)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.createComposite(FileEditorManagerImpl.kt:1205)
...
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
2024-05-09 12:13:40,063 [ 240802] SEVERE - #c.i.o.progress - PyCharm 2024.1.1 Build #PC-241.15989.155
2024-05-09 12:13:40,063 [ 240802] SEVERE - #c.i.o.progress - JDK: 17.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-05-09 12:13:40,063 [ 240802] SEVERE - #c.i.o.progress - OS: Linux
2024-05-09 12:13:40,063 [ 240802] SEVERE - #c.i.o.progress - Plugin to blame: Live Coding in Python version: 4.11.4
2024-05-09 12:13:40,064 [ 240803] SEVERE - #c.i.o.progress - Last Action: NewDirectoryProject
Thanks for the report, @jolly-jump. Does the workaround work for you?
Hi @donkirkby , yes, the workaround: open "New File" instead of "New Python file" works. However, i could not see a connection to using "invalidate caches".
The workaround is not practicable for me, since I want to use the feature "create a main.py" when creating a new project since this automatically creates a run configuration. (instead of having to create a run configuration otherwise)
My workaround consists now in pre-disabling the plugin and then let the users activate it, when they have their project ready.
What I did
create a python file.
What happened
The IDE freeze.
What I wanted to happen
Work normally.
My environment
Describe the versions of everything you were using:
Other feedback
Verified by disable the plugin, than every thing goes normal.
Workaround
Choose New: File, instead of New: Python File.