Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Lost PyMakr in VSCode

    Scheduled Pinned Locked Moved Issues & Bugs
    vscode pymakr
    40 Posts 10 Posters 6.4k Views 10 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kgunnar
      last edited by

      I'm also having this issue. I was just using pymakr yesterday but today when I opened up VS Code today, it was nowhere to be found. Ctrl+Shift+C responds with "command 'pymakr.connect' not found". I don't recall my VS Code updating between then and now but I just checked my VS Code version:

      Version: 1.31.0
      Commit: 7c66f58312b48ed8ca4e387ebd9ffe9605332caa
      Date: 2019-02-06T08:51:24.856Z
      Electron: 3.1.2
      Chrome: 66.0.3359.181
      Node.js: 10.2.0
      V8: 6.6.346.32
      OS: Linux x64 4.15.0-45-generic

      So it did update. I switched updating to manual but I can't use pymakr at the moment... is a fix imminent or do I need to take other steps to try and get back to work again? Is this strictly an issue with the serialport library? I also use PlatformIO with VS Code rather extensively and have never had issues connecting to serial or otherwise when VS Code has updated.

      P 1 Reply Last reply Reply Quote 0
      • C Offline
        ChangedDaily @Ralph
        last edited by

        @ralph Looks like you've got a job on your hands keeping up there! I hope you can update the plugin because despite me setting VS Code not to update (I was pretty sure I had) it did, so when I came to start on this tonight of course no Pymakr extension. Had to rollback VS Code again.

        1 Reply Last reply Reply Quote 0
        • P Offline
          Paul Thornton @kgunnar
          last edited by

          @kgunnar Ralph is busy working on the fix now. Hopefully, it won't be much longer. I believe others have confirmed manually rolling back and installing VSCode 1.30 is a temp fix. but VScode seems to ignore its option telling it to not auto update at times so you may lose it again.

          C 1 Reply Last reply Reply Quote 1
          • C Offline
            combaindeft @Paul Thornton
            last edited by combaindeft

            @paul-thornton said in Lost PyMakr in VSCode:

            @kgunnar Ralph is busy working on the fix now. Hopefully, it won't be much longer. I believe others have confirmed manually rolling back and installing VSCode 1.30 is a temp fix. but VScode seems to ignore its option telling it to not auto update at times so you may lose it again.

            Jupp.

            • A) 1st make sure to disable auto-update ... or it'll sneak it in again :-)

            In setting, search for: update.channel ... and Choose None or Manual

            0_1549637687378_Screenshot 2019-02-08 at 15.53.19.png

            • B) You can download (rollback) here: https://code.visualstudio.com/updates/v1_30
            C 1 Reply Last reply Reply Quote 0
            • C Offline
              curtis.hendrix @combaindeft
              last edited by

              @combaindeft Just a side note: make sure to change the update.channel setting before uninstalling 1.31. I got burned after installing 3.10, since the updater runs before the settings get saved. So 3.10 saw the old update.channel setting, so it updated to 1.31.

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                combaindeft @curtis.hendrix
                last edited by combaindeft

                @curtis-hendrix Yeah πŸ€“ *fixed-post*

                1 Reply Last reply Reply Quote 0
                • R Offline
                  Ralph
                  last edited by

                  v1.0.6 has just been released to fix these issues. Let me know if any of you are still facing any after updating.

                  M 1 Reply Last reply Reply Quote 1
                  • M Offline
                    Martinnn @Ralph
                    last edited by

                    @ralph 1.0.6 just installed, is broken (no command bar, no connection) in VSCode 1.30

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      Ralph @Martinnn
                      last edited by

                      @martinnn Make sure you run vscode 1.31. The precompiled serialport lib's are now rebuild for that version specifically.

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        Martinnn @Ralph
                        last edited by

                        @ralph OK, updated VSCode the second time today. Works with pymakr 1.0.6.

                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          Ralph @Martinnn
                          last edited by

                          @martinnn Good to hear!

                          Also, sorry for the delay on this new version guys. We'll have to work on our rebuild process a bit to keep pymakr compatible with vscode.

                          J 1 Reply Last reply Reply Quote 0
                          • J Offline
                            jand @Ralph
                            last edited by

                            @ralph: Today I suddenly couldn't connect anymore to the extension board (3.1) with a lopy4 through the COM13 port I always use. Next I even lost Pymakr completely in VSCode.

                            Reading the posts in this topic, I realized I needed to upgrade VSCode to the latest version, which I did. I now have:
                            Version: 1.31.1 (system setup)
                            Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
                            Date: 2019-02-12T02:20:54.427Z
                            Electron: 3.1.2
                            Chrome: 66.0.3359.181
                            Node.js: 10.2.0
                            V8: 6.6.346.32
                            OS: Windows_NT x64 6.1.7601

                            And I have Pymakr 1.0.6.

                            But I cannot connect to the lopy4 anymore: > Failed to connect (Error: Port is not open). Click here to try again.

                            The VSCode command 'List serial ports' yields the following:
                            Found 2 serialports
                            COM5 (Dell) (copied to clipboard)
                            COM3 (Dell)

                            But I cannot connect to the lopy4. It doesn't work with COM5, not with COM3, and not with COM13.
                            When I connect through COM5, the console starts producing a continuous stream like this:
                            $GPGGA,,,,,,0,00,0.5,,M,,,,*00
                            $GPGSV,1,1,00,,,,,,,,,,,,,,,,79
                            $GPGLL,,,,,235944.000,V,N
                            77
                            $GPGGA,,,,,,0,0,,,M,,,,*1B
                            $GPGSA,A,1,,,,,,,,,,,,,,,*1E
                            $GPGST,235944.000,,,,0,,,74
                            $GPRMC,235944.000,V,,,,,,,,,,N
                            40
                            $GPGSV,1,1,00,,,,,,,,,,,,,,,,79
                            $GPGLL,,,,,235946.000,V,N
                            75
                            etc.....

                            What to do?

                            R robert-hhR 2 Replies Last reply Reply Quote 0
                            • R Offline
                              Ralph @jand
                              last edited by

                              Hi @jand, looks like your device is not detected by the driver anymore. If it would be, it would definitely show up in the 'list serial ports' list. Did you restart your computer and try again? Happens on my mac sometimes if you unplug the device when it's connected, it doesn't show up again until you reboot.

                              I don't know what COM5 has attached, but that doesn't look like something any Pycom device would output :) Perhaps @iwahdan can confirm that.

                              C P J 3 Replies Last reply Reply Quote 0
                              • robert-hhR Offline
                                robert-hh @jand
                                last edited by

                                @jand said in Lost PyMakr in VSCode:

                                $GPGGA,,,,,,0,00,0.5,,M,,,,*00
                                $GPGSV,1,1,00,,,,,,,,,,,,,,,,79
                                $GPGLL,,,,,235944.000,V,N77
                                $GPGGA,,,,,,0,0,,,M,,,,*1B
                                $GPGSA,A,1,,,,,,,,,,,,,,,*1E
                                $GPGST,235944.000,,,,0,,,74
                                $GPRMC,235944.000,V,,,,,,,,,,N40
                                $GPGSV,1,1,00,,,,,,,,,,,,,,,,79
                                $GPGLL,,,,,235946.000,V,N75

                                These look like sequences from a GPS module. Do you by change have one attached?

                                J 1 Reply Last reply Reply Quote 0
                                • C Offline
                                  crumble @Ralph
                                  last edited by

                                  @ralph said in Lost PyMakr in VSCode:

                                  I don't know what COM5 has attached, but that doesn't look like something any Pycom device would output :) Perhaps @iwahdan can confirm that.

                                  This is the output of NMEA GPS sentences. Can be a pytrack ;)

                                  @jand If VSCode works like Atom, click in the window of the output and hit ctrl-c a couple of times. This shall bring you into the REPL.

                                  There may be a setting which hits the break key as soon the pytrack is connected.

                                  PS: Your sentences show a lot of garbage. Check the way you read them. It seems that you drop a lot of chars and mix up multiple sentences.

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    Paul Thornton @Ralph
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      jand @robert-hh
                                      last edited by

                                      @robert-hh No, I do not have a GPS module attached. Just an expansion board 3.1 with a Lopy4.

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        jand @Ralph
                                        last edited by

                                        @ralph I did restart the computer, but that does not change anything. Connecting to the Lopy from VS Code through the wifi still works. But through USB doesn't.

                                        Desperate to understand the problem, I now installed VS code with the pymakr extension (1.0.6) on a brand new laptop. VS code then shows the following configuration:
                                        Version: 1.31.1 (system setup)
                                        Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
                                        Date: 2019-02-12T02:20:54.427Z
                                        Electron: 3.1.2
                                        Chrome: 66.0.3359.181
                                        Node.js: 10.2.0
                                        V8: 6.6.346.32
                                        OS: Windows_NT x64 10.0.17134

                                        But here again I cannot connect through usb. The symptoms are now different. Pymakr lists the following serial devices:
                                        Found 1 serialport
                                        COM3 (Microsoft) (copied to clipboard)

                                        But when setting the address to COM3 in the global settings, and then connecting does not give any response: no command prompt signalling a connection, and even no error message. No response at all!.

                                        I should give up and try atom instead? It is not the first time that pymakr stopped working after a VS code update.

                                        P 1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          Paul Thornton @jand
                                          last edited by

                                          @jand do you have autoconnect set to true in the global config? Try turning it to false if so. Had a similar issue to this resolved by that.

                                          J 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jand @Paul Thornton
                                            last edited by

                                            @paul-thornton and @Ralph I realized that my problems started when I started using a newly bought expansion board V3.1. So I now tested both the old expansion board V2.1A, and the new expansion board V3.1. And yes, this confirms that there is a different performance between both. But I also get unexpected results for the old expansion board V2.1A.

                                            I am doing these tests with two laptops: laptop β€˜A’ that runs Windows7, and a brand new laptop β€˜B’ that runs Windows 10. Both have VS Code 1.31.1 and Pymakr 1.0.6 installed. And I use the same lopy4 for all tests. See my previous posts for the details on the software configurations (as obtained with the β€˜about’ button in VS code). These are the results of the tests:

                                            New laptop β€˜B’ with expansion board V2.1A:

                                            List serial ports yields:
                                            Found 1 serialport
                                            COM4 (FTDI) (copied to clipboard)

                                            The Autoconnect works (on COM4).
                                            When I disconnect and next do a manual connect (after setting the COM4 port in the address field in pymakr.conf), I still get the reply β€œ>>> Autoconnect: Connecting on COM4...”. And what is even more strange: it does no matter whether I set the address to COM4 or COM3 or COM13 in pymakr.conf! It gets autoconnected. Now and then I get β€œ> Failed to connect (Error: Port is not open). Click here to try again.” Trying again usually gives a successful autoconnect.

                                            New laptop β€˜B’ with expansion board V3.1:

                                            List serial ports yields:
                                            Found 1 serialport
                                            COM3 (Microsoft) (copied to clipboard)

                                            The Autoconnect does not work.
                                            When doing a manual connect (after setting the COM port in the address field in pymakr.conf to COM3), nothing happens: no >>> prompt but also no error message. I cannot connect to the board.

                                            Old laptop β€˜A’ with expansion board V2.1A:

                                            List serial ports yields:
                                            Found 3 serialports
                                            COM13 (FTDI) (copied to clipboard)
                                            COM5 (Dell)
                                            COM3 (Dell)

                                            The Autoconnect does not work (nothing happens when I connect the board with the pymakr console open).

                                            When I disconnect and next do a manual connect (after setting the COM port in the address field in pymakr.conf to COM13), I still get the reply Connecting on COM13....”. But I don’t get a β€˜>>>’ prompt, no connection is established. When I now press the reset button on the lopy4, it gets connected:
                                            ets Jun 8 2016 00:22:57

                                            rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
                                            configsip: 0, SPIWP:0xee
                                            clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                                            mode:DIO, clock div:1
                                            load:0x3fff8028,len:8
                                            load:0x3fff8030,len:1728
                                            load:0x4009fa00,len:0
                                            load:0x4009fa00,len:14612
                                            entry 0x400a059c
                                            Pycom MicroPython 1.18.2.r1 [v1.8.6-849-e0fb68e] on 2018-11-26; LoPy4 with ESP32
                                            Type "help()" for more information.

                                            So I get a β€˜>>>’ prompt. But when I enter a command β€˜or just an β€˜enter’ at the command prompt, nothing happens: the connection seems to be lost immediately

                                            When I do a manual connect (after setting the COM port in the address field in pymakr.conf to COM3), I get the following result:
                                            Connecting on COM3...

                                            Failed to connect (Error: Port is not open). Click here to try again.

                                            When setting the address to COM5, I get a continuous stream of garbage:
                                            Connecting on COM5...
                                            $GPGGA,,,,,,0,00,0.5,,M,,,,*00
                                            $GPGSV,1,1,00,,,,,,,,,,,,,,,,79
                                            $GPGLL,,,,,235944.000,V,N
                                            77
                                            $GPGGA,,,,,,0,0,,,M,,,,*1B
                                            $GPGSA,A,1,,,,,,,,,,,,,,,*1E
                                            $GPGST,235944.000,,,,0,,,74
                                            $GPRMC,235944.000,V,,,,,,,,,,N
                                            40
                                            (and this keeps on producing a continuous stream of garbage)

                                            Old laptop β€˜A’ with expansion board V3.1:

                                            List serial ports yields:
                                            Found 2 serialports
                                            COM5 (Dell) (copied to clipboard)
                                            COM3 (Dell)

                                            The Autoconnect does not work.

                                            When do a manual connect (after setting the COM port in the address field in pymakr.conf to COM3), I get the following result:
                                            Connecting on COM3...

                                            Failed to connect (Error: Port is not open). Click here to try again.

                                            When setting the address to COM5, I get a continuous stream of garbage:
                                            Connecting on COM5...
                                            $GPGGA,,,,,,0,00,0.5,,M,,,,*00
                                            $GPGSV,1,1,00,,,,,,,,,,,,,,,,79
                                            $GPGLL,,,,,235944.000,V,N
                                            77
                                            $GPGGA,,,,,,0,0,,,M,,,,*1B
                                            $GPGSA,A,1,,,,,,,,,,,,,,,*1E
                                            $GPGST,235944.000,,,,0,,,74
                                            $GPRMC,235944.000,V,,,,,,,,,,N
                                            40
                                            (and this keeps on producing a continuous stream of garbage)

                                            When setting the address to COM13 (which I know is wrong), I get:
                                            Connecting on COM13...

                                            Failed to connect (Error: Port is not open). Click here to try again.

                                            Since I bought two expansion boards V3.1 at the same time, I also did the tests with the second one. It produces exactly the same results as the first one.

                                            In summary: with the new V3.1 board, I can never establish a connection through USB. With the old V2.1A board I can connect on laptop B: I can connect because the autoconnect works. But with the old V2.1A board I cannot connect on laptop A. And results are quite inconsistent to say the least.

                                            Finally, I also tried the suggestion of Paul Thornton (to set the autoconnect to false in the global config). That does not improve anything. The only effect is that in case of the old V2.1A board on laptop B, it no longer autoconnects, but still allows a manual connect when the address is correctly set to COM4.

                                            P 1 Reply Last reply Reply Quote 1

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better πŸ’—

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom