🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Core2 / VSCode : "Cannot read property 'sendCommand' of Undefined"

    Scheduled Pinned Locked Moved Core 2
    2 Posts 2 Posters 3.9k Views 1 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.
    • H Offline
      HaltHammerzeit
      last edited by

      Hey!

      I'm having problems with running code from VSCode on Core2, since my VSCode auto updated recently. When I click the "Run in M5Stack" button in VSCode...

      "Cannot read property 'sendCommand' of Undefined"
      0_1647014595074_f3d69a5e-c864-40a7-a5bb-078c272cec36-image.png

      Has anyone else experienced this? Is there a fix?

      H.

      1 Reply Last reply Reply Quote 4
      • T Offline
        tomward
        last edited by

        Just replying to an old topic as it might help someone in the future - I was just struggling with the same error. Turns out you need to be editing a python file on the device itself to be able to run it. Under the 'main.py' tab at the top right of your screen shot, you can see that this file is located in folder 'm5stack ...'. This should show 'COM8 > flash > main.py' or similar if you are editing the version on the device (just click on the 'main.py' under your highlit 'COM8' on the bottom left to select the file on the device before trying to run rather than the file on your local PC).

        1 Reply Last reply Reply Quote 2

        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
        • First post
          Last post