Git Product home page Git Product logo

Comments (7)

5chufti avatar 5chufti commented on August 20, 2024 1

Hi,
looks like you did put the finger on the right spot. I tried several runs with different configurations and all went well.
Thanks for your great work!

from tasmocompiler.

benzino77 avatar benzino77 commented on August 20, 2024

It means that there was a problem with WebSocket connection. You can have only one tab/window open with TasmoCompiler.
In other cases just refresh the page.

from tasmocompiler.

5chufti avatar 5chufti commented on August 20, 2024

Hi,
thanks for the reply. On several tries I did make sure I stopped the workspace, logged in to gitpod on a different machine, started the workspace, went through the config, hit "compile" and ... still the same. no more action after "Welcome stranger!" And I am sure there was no other tab/window with the TasmoCompiler. Refreshing the page just brought me back to the first config screen.
Did the same today, several times, different machines. Now, suddenly on the x-th try it finally brought

Retrieving maximum program size .pioenvs/custom/firmware.elf
Checking size .pioenvs/custom/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [====== ] 56.3% (used 46128 bytes from 81920 bytes)
Flash: [===== ] 53.2% (used 544804 bytes from 1023984 bytes)
Building .pioenvs/custom/firmware.bin
Creating BIN file ".pioenvs/custom/firmware.bin" using ".pioenvs/custom/firmware.elf"
========================= [SUCCESS] Took 50.95 seconds =========================
Finished. Exit code: 0.

and showed the download buttons.
but at the end again

Welcome stranger!

if this "welcome stranger" is wanted, why did the compile skip the elf/bin conversion earlier.
if it is not intended to bring "Welcome stranger, where is this coming from?

p.s.: now on another go I have the circle spinning w/o any output in the compiler window...

from tasmocompiler.

benzino77 avatar benzino77 commented on August 20, 2024

Sorry, I cannot reproduce your problem. I'm pretty sure that this is a network problem. WebSocket connection is interrupted.
Before click "compile" button You can hit "F12" key to open browser dev tools. Choose "console" and observe if there is some information.

from tasmocompiler.

5chufti avatar 5chufti commented on August 20, 2024

I dont get anything in console at the time of "welcome stranger!" and the messages in network window are the same in both cases (not ending and showing download buttons). At the moment it is a 50:50 chance for me. Is there a way to retrieve the files (asuming the compile comes to a regular end)?

from tasmocompiler.

benzino77 avatar benzino77 commented on August 20, 2024

This is really strange... I do believe that you should see some errors in the browser console tab. You can find the websocket connection (screen below) on the network tab and watch how messages are flowing from server side to your browser:
image

Yes, you can download binary by hand. It is located in /tmp/Tasmota/.pioenvs/custom. Just open new terminal, type cp /tmp/Tasmota/.pioenvs/custom/firmware.bin . and the firmware.bin file should be available to download from the gitpod IDE:
image

from tasmocompiler.

benzino77 avatar benzino77 commented on August 20, 2024

Hi @5chufti
I was able to reproduce your problem (well at least I think so). I do believe that the problem is with the amount of data send via WebSocket in very short time. This will occur when the compilation messages arrive very fast (fast compute unit on which the compilation is performed). I've prepared new branch pa/patch-socketio to address this problem (it groups messages to bunch of 20 lines and then send it to browser). Could you please check, if that solves your issue?

To test it on gitpod just go to https://gitpod.io/#https://github.com/benzino77/tasmocompiler/tree/pa/patch-socketio

from tasmocompiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.