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

    What's with Atom pymakr & library files?

    Scheduled Pinned Locked Moved Software Tools
    pymakrbug
    2 Posts 2 Posters 556 Views 2 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
      kjm
      last edited by

      Normally when I edit a .py in Atom I don't even have to upload it to the gpy, I just click run and the newly edited version runs. But when I edit a .py file in the lib folder not only do I have to upload it to the gpy flash, I have to reset the gpy to get the newly edited version. I'm not making this up I've double checked. The edit is saved on the PC, it's there in Atom, it's in the gpy flash yet the unedited version persists till I do a gpy reset. Why don't .py files in the lib folder edit the same as .py files elsewhere?

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

        when you click run just the single file your editing it sent to the board its literally as if you typed each line into the Repl. this is fine if its just your main.py script. but when libs need updating they dont get sent as you have discovered.

        The reason for the reset being required is to force micropython to reload its previously loaded and cached copies of libraries There are work arounds for hot reloading code, but its way easier to just reset the board during development

        1 Reply Last reply Reply Quote 0

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

        Pycom on Twitter

        Pycom