Home AMX User Forum Scripting Languages

VS Code Extension not attempting to upload

I'm having an odd problem with the MUSE VSCode extension. When I attempt to "Upload to MUSE Controller" on my code base, after selecting the controller and the program to upload, the little "Upload to : zipping" window comes up, but the progress bar never moves, the window disappears, and never attempts to actually upload anything.

What I've tried so far:
1. Re installed the extension itself
2. Re installed VSCode
3. tried a blank empty profile with only the MUSE extension loaded

I cant locate any log messages that show whats causing the issue, but i've not delved deep into VSCode extension debugging. I do have a Macbook Pro that does zip and upload the same codebase fine, so its something specific to my windows machine.

Anyone run into this before or have any suggestions on what else to try?

Comments

  • never heard of that.... do VSC Extension and Muse firmware match?
    Can you take a screenshot?

  • RombusRombus Posts: 13

    Screenshot is below, The "Upload to 10.184.42.25: Zipping" is the message box that appears, stays visible for a bit, and then disappears with no other error. The bar does not move. Muse Firmware and VS Code extension should be compatible (Firmware ver 1.3.34 and Extension Ver 1.5.12). This setup was working before without any issues up until Friday but as far as I can tell nothing updated.

  • hmmmm... no idea, sorry. If the same code to the same MU is working fine on another PC/mac, it really may have something to do with your PC. I also don't know if there is a logging within VSC...

  • RombusRombus Posts: 13

    @Marc Scheibein Do you happen to know in the background if there's a caching step somewhere in the MUSE extension? Or atleast where it writes the .zip file to that it creates? I'm wondering if maybe some background folder got corrupt.

  • Marc ScheibeinMarc Scheibein Posts: 928

    sorry @Rombus, I'm not that deep in the structures how VSC and the extensions work.

  • RombusRombus Posts: 13

    So it took me a bit, but I finally figured this out!

    First, when you trigger "Upload to Muse Controller" after the end of the action a json file called .local is created. It looks to be a json file that tracks the deployments you have done and the files that it uploaded. I realized that in my development program, that file had gotten to over 25mb.

    Looking though that file also made me realize that the entire .git folder was getting uploaded as well. On my windows machine where I've done the bulk of my muse development, the .git folder was over 104Mb. So on a whim (and since realistically Muse does not need it as part of the program upload) I added the .git line to the .uploadignore file that's in the project directory. Doing that restored the ability to zip and upload on my windows machine and made it quite fast again.

    I did notice that the first line of the .uploadignore file does have the .* wildcard, but I assume (without further testing) that's its not working because looking over my .local file i can see where even .uploadignore gets added as part of the upload zip.

    So if someone else is running into this problem and using git for version control, add .git to your .uploadignore file and it should help!

Sign In or Register to comment.