vscode-circuitpython
vscode-circuitpython copied to clipboard
How can I use the REPL?
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
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!
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?
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.
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?)