vscode-circuitpython icon indicating copy to clipboard operation
vscode-circuitpython copied to clipboard

How can I use the REPL?

Open jonx opened this issue 5 years ago • 4 comments

Great work! I'm using your extension on Win10x64. Everything seems to be working so far.

Just, how am I supposed to access the REPL? Maybe the feature is not yet there or maybe I just overlooked it.

Thanks a bunch, John

jonx avatar Mar 20 '20 18:03 jonx

Thanks for the feedback John. The REPL didn't work because of the read-only nature of the output channel; however it was pretty straight forward to convert it to a "Terminal" that can take in input. I just published v0.0.4 which has REPL support. Try it out!

joedevivo avatar Mar 21 '20 16:03 joedevivo

Great to hear Joe but I was unable to get it to work. That said I'm new to all this so maybe I just missed it: In the terminal pane I have 2 choices, python and circuit python serial. When I select the latest, all I get is a square: □ Something must be wrong. I also don't see the output prints e.g. print("Finished") by my program anywhere. Also some commands, those that print something out I guess, don't do anything i.e. CircuitPython: Show Available Libraries. I can also still not write in that terminal. I'm updated to 0.5. Anything I can try?

jonx avatar Mar 26 '20 19:03 jonx

I just released 0.1.0. I've seen the terminal act up on windows, but launching vscode as an administrator once fixed it, after that, non-adminstrator could do it also. Something about windows allowing only one thing access to a serial port.

Show available libraries should show a quickpick menu, and picking a library will download it to your workspace's lib directory.

joedevivo avatar Apr 07 '20 21:04 joedevivo

This isn't going to be the most helpful comment. But I've also seen where you connect, nothing streams, CTL-C doesn't do anything but then you restart vscode and it works fine. And then its awesome! ;-)

Oh it just happened again and then at the same time, I got notification that I should reload VSCode when I switch languages. I think the Python language extension and the CP one are in conflict somehow.. (maybe?)

askpatrickw avatar May 13 '20 01:05 askpatrickw