Avatar for sebi

sebi

Member since Sep 2019 • Last active Sep 2021
  • 5 conversations
  • 84 comments

France

Most recent activity

  • in Bangle.js
    Avatar for sebi

    edit: this also explains why a refresh worked for me - everything would already have been cached by the second reload, even if I could get it to break the very first time I tried it.

    It's not that important now that the emulator is working again, but still, I wonder why this trick didn't work for me too...

  • in Bangle.js
    Avatar for sebi

    Hurray!! You are a boss Gordon!! It is working again!

    Indeed for a year only, I moved to a place with a low speed connection, certainly when I noticed the problem...

    Thank you!

  • in Bangle.js
    Avatar for sebi

    As I explained in post #53 as soon as I click the 'Emulator' button, and as the Emulator pop-up opens, it's canvas is immediately populated with viewable content.

    You mean with viewable content coming from your code right? Not the default Bangle.js boot content?
    Indeed I am surprised of this... I thought the process was to connect first (to see the default Bangle.js boot content) and to save the code from the right hand side panel in a second step to see how it performs in the Emulator. According to what you say, I must be wrong. I thought such behaviour would occur only in presence of &upload&emulator at the end of the url...

    What I remember for sure is that I was able to experiment typing some operations in the WebIDE's REPL directly (left hand side panel) once connected to the emulator, which currently I can't.

  • in Bangle.js
    Avatar for sebi

    Please try cut-n-paste the following

    Still getting a white emulator window.
    Which makes sense again, as the problem occurs when trying to connect to the emulator, which takes place before uploading any code to it....

  • in Bangle.js
    Avatar for sebi

    That day I was experimenting with the 2x3 Pixel Clock accessible at https://banglejs.com/apps/#clock. Just click on the Try in Emulator icon and it will bring you there. Code line number 28 will match.

    But really, my issue occurs whatever the code in the right hand side panel is (the panel can be empty). It occurs when I want to connect the WebIDE to the Emulator (Connect / Disconnect plug icon > Emulator). At this stage, I am not uploading any code from the right hand side panel into the emulator yet.

    Do you see the above code block with a fresh start of the browser pointing to http://www.espruino.com/ide/ ?

    What I see is the latest code I played with: currently it is code of the 2x3 Pixel Clock. If I clear cookies and other site data from Chrome, I get this in the WebIDE right hand side panel:

    var  on = false;
    setInterval(function() {
      on = !on;
      LED1.write(on);
    }, 500);
    

    ...which is the panel default content I guess. But when trying to connect to the Emulator, the problem of getting a white emulator window still occurs.

  • in Bangle.js
    Avatar for sebi

    @sebi    I don't know how plainly we may request, please post the file that is being uploaded as in post #35   Let's rule out that code block, or upload the default code block and provide the default file error output.

    I would like to help but I still cannot figure out how to do what you ask for...
    You mean post 25 right? (post 35 is mine with some screenshots.)

    Steps:
    https://www.espruino.com/ide/
    Orange Connect Button :: Emulator

    Done!

    Carret inside Emulator Window
    Fn+F5

    Carret? Fn+F5 is to brighten the keyboard on my computer??
    What I understand is: select the Emulator Window and refresh it.

    Done!

    I am not familiar with the Developer console and I don't know how to generate the log files the way you did. Instead I took some screenshots and posted them in the forum. With further explanations I can try to post what you ask for.

    If by "the file that is being uploaded" you mean the file that is being sent from the WebIDE right panel to the emulator, this file can be empty. If you ask for the file that is being executed by Chrome, it is supposed to be the one obtained when navigating to http://www.espruino.com/ide/. I hope my computer does not interfere with that file and leaves it genuine (no addon modifies it). Maybe there is a way to save a copy of the exact code that is being executed by Chrome and this is what you ask for?

    Regarding the refresh process, I couldn't try it to verify it but, from what I understand, if the Emulator is working properly and you refresh that Emulator screen, you will lose the connection with the WebIDE resulting in a white screen for the Emulator. Is this correct?
    So one hypothesis would be that my Emulator window gets refreshed unintentionally at start leading to a connection loss, right?

    Thanks @TTBangler for trying to help too!

  • in Bangle.js
    Avatar for sebi

    I am able to see parts in post #35 and that appears to me not the default that is loaded when one launches the web IDE

    That is very strange to me... If I understand right, by looking at my Chrome's developer console you didn't recognized the sequence of code that should be executed normally. Is that it? Currently I am clueless, and don't know what could be interfering with running Espruino WebIDE code the normal way on my computer.

  • in Bangle.js
    Avatar for sebi

    Unfortunately not...
    While I got your email yesterday, I was connected using FortiClient VPN to my company's network, and I noticed the Emulator was working properly.
    Today as I restarted the emulator, it wasn't working anymore, so I tried following your steps but it didn't help. I also tried reconnecting to my company network but still, the Emulator didn't work. In between those tries I made sure to close properly Chrome and to clear cached images and files, cookies and other site data.

  • in Bangle.js
    Avatar for sebi

    Would you mind responding to post #38 so that I may run the same congruent test.

    You want to know my hardware, Win10 ver, WebIDE ver and Chrome ver, right?

    • MacBook Pro 15" Retina A1707 late 2016
    • Windows is running under Bootcamp (not in a virtual machine).
      Windows 10 Pro x64 is up to date: Version 21H1, OS build 19043.1165, Experience Windows Feature Experience Pack 120.2212.3530.0
    • Espruino Web IDE is up to date: Version 0.75.8
    • Google Chrome is up to date: Version 92.0.4515.159 (Official Build) (64-bit)

    Is this enough information?

  • in Bangle.js
    Avatar for sebi

    Should I be jumping in

    Please step in! I feel alone with this issue.
    If you post your configuration I'll know more what you want to compare exactly.

    What language is your system set to?

    Indeed I encountered an issue in the past on my computer that was due to Windows language settings. Windows is the french version, but I switched every aspects to english. Under the hood there must be some leftovers of french thought. The issue had to do with the Windows Sandbox not being able to launch due to those unusual language settings. The issue was registered by Microsoft at first and eventually fixed. Maybe this can help.

Actions