Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micropython REPL not working with Raspberry Pi Pico W in 2023.3.5 #283

Open
britesc opened this issue Mar 29, 2024 · 11 comments
Open

Micropython REPL not working with Raspberry Pi Pico W in 2023.3.5 #283

britesc opened this issue Mar 29, 2024 · 11 comments

Comments

@britesc
Copy link

britesc commented Mar 29, 2024

See
https://github.com/JetBrains/intellij-micropython/issues/275
I cannot understand why the Micropython REPL issue is still unaddressed.
Now that I have it working flawlessly in both VSCode and Thonny I don't know if I need to bother with PyCharm anymore. Shame was just beginning to like it.

@elmot
Copy link
Member

elmot commented Apr 1, 2024

Works on my computer(c)
Please provide your OS and it's version, PyCharm version, the plugin version, and your MCU/board type

@britesc
Copy link
Author

britesc commented Apr 1, 2024

@elmot
As requested my configuration.

1.    Linux Leopard 6.5.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar 12 10:22:43 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
2.    MicroPython v1.22.2 on 2024-02-22; Raspberry Pi Pico W with RP2040
3.    PyCharm 2023.3.5 (Community Edition) Build #PC-233.15026.15, built on March 21, 2024 Runtime version: 17.0.10+1-b1087.23 amd64
4.    Current Desktop: ubuntu:GNOME

The forum is flooded with people commenting that MicroPython no longer works with PyCharm. I am not an isolated case. So if you have am installation that works, then please post a HOWTO: here for the rest of us unfortunates.

Kind regards,

jB

@elmot
Copy link
Member

elmot commented Apr 2, 2024

Micropython plugin version is not provided in your list. Any diagnostics is not possible until we don't know that.
It's here:
image

@britesc
Copy link
Author

britesc commented Apr 2, 2024

@elmot
Sorry thought you wanted the REPL details at 2. above. Didn't know there was a diference.
Thanks and kind regards,
jB

image

@lancelote
Copy link
Member

@britesc

not working

Could you please provide the details? Is there an error of some kind? What do you see in the REPL tool window?

The forum is flooded with people commenting that MicroPython no longer works with PyCharm. I am not an isolated case

The original problem was fixed in the latest versions

@lancelote lancelote changed the title Micropython REPL not working still!! Micropython REPL not working with Raspberry Pi Pico W in 2023.3.5 Apr 2, 2024
@kyledross
Copy link

kyledross commented Apr 14, 2024

I, too, am experiencing this. What we see in the REPL tool window is just a blinking cursor... nothing else. Keypresses yield nothing.

Rigging up /home/[user]/.local/share/JetBrains/PyCharm2024.1/intellij-micropython/scripts/microrepl.py to run in a terminal pane works, so the script itself seems okay (albeit clunky). It's as if the plugin isn't running the script in the REPL tool window at all.

Screenshot from 2024-04-13 20-54-53

@momer
Copy link

momer commented Apr 25, 2024

I'm in the same boat as @kyledross !

Details

  • PyCharm Professional
    • Version: 2024.1
    • Build: PY-241.14494.241, March 28, 2024
    • Runtime version: 17.0.10+8-b1207.12 amd64
    • VM: OpenJDK 64-bit server vm by JetBrains s.r.o
  • MicroPython plugin @ 1.4.0

Tried uninstalling/reinstalling the plugin to no avail!

@ikostan
Copy link

ikostan commented May 8, 2024

Hi all.
Same here. Thonny is working fine though. My env config:

PyCharm 2024.1.1 (Community Edition)
Build #PC-241.15989.155, built on April 29, 2024
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
intellij-micropython (1.4.0)

Screenshots:
plugins
repl
run_config
terminal

@jamescrace
Copy link

2020 M1 Air running Sonoma 14.4.1
PyCharm 2024.1 (Professional Edition)
Build #PY-241.15989.155, built on April 29, 2024
MicroPython 1.4.0

same as @kyledross, presented with a blinking cursor.

@nicolascerna
Copy link

Same here:

macOS 14.4.1 - Apple M1 Pro (Apple Silicon)
PyCharm 2024.1.1 (Professional Edition) - Build #PY-241.15989.155
MicroPython Plugin v1.4.0

Everything else working fine in Arduino for MicroPython and VSCode.

@philliphodges
Copy link

Same issue here..!

Dell Precision 7670
Windows 11 Pro - 23H2 - 22631.3593

PyCharm 2024.1.1 (Professional Edition)
Build #PY-241.15989.155, built on April 29, 2024
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

This is the error thrown when trying to push to device...

2024-05-21 12:05:32,959 [ 598552] SEVERE - #c.i.o.a.i.FlushQueue - 'com.pty4j.PtyProcess com.jetbrains.micropython.repl.MicroPythonReplManager$startREPL$terminalRunner$1.createProcess(org.jetbrains.plugins.terminal.TerminalProcessOptions, com.intellij.terminal.JBTerminalWidget)'
java.lang.NoSuchMethodError: 'com.pty4j.PtyProcess com.jetbrains.micropython.repl.MicroPythonReplManager$startREPL$terminalRunner$1.createProcess(org.jetbrains.plugins.terminal.TerminalProcessOptions, com.intellij.terminal.JBTerminalWidget)'
	at com.jetbrains.micropython.repl.MicroPythonReplManager.startREPL(MicroPythonReplManager.kt:64)
	at com.jetbrains.micropython.run.MicroPythonRunConfiguration$getState$1.invoke$lambda-0(MicroPythonRunConfiguration.kt:90)
	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
	at com.intellij.openapi.application.impl.RwLockHolder.runIntendedWriteActionOnCurrentThread(RwLockHolder.kt:204)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:830)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:419)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:138)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:129)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWithImplicitRead(ApplicationImpl.java:1152)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:81)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:123)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:43)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:699)
	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$12(IdeEventQueue.kt:593)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithoutImplicitRead(RwLockHolder.kt:105)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:593)
	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:77)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:362)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:361)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:843)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:361)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:356)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1022)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1022)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:356)
	at com.intellij.openapi.application.impl.RwLockHolder.runIntendedWriteActionOnCurrentThread(RwLockHolder.kt:209)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:830)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:398)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
2024-05-21 12:05:32,960 [ 598553] SEVERE - #c.i.o.a.i.FlushQueue - PyCharm 2024.1.1  Build #PY-241.15989.155
2024-05-21 12:05:32,960 [ 598553] SEVERE - #c.i.o.a.i.FlushQueue - JDK: 17.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-05-21 12:05:32,960 [ 598553] SEVERE - #c.i.o.a.i.FlushQueue - OS: Windows 11
2024-05-21 12:05:32,960 [ 598553] SEVERE - #c.i.o.a.i.FlushQueue - Plugin to blame: MicroPython version: 1.4.0
2024-05-21 12:05:32,960 [ 598553] SEVERE - #c.i.o.a.i.FlushQueue - Last Action: Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants