Login
Community
DARK THEME

Offline problem

Translate this text with the help of a google translator - errors are possible.

I am testing the offline versions of "MicroStudio" for windows. I run on Windows 8.1 Pro 64 bits.

When I run the program in the console, I see this message:

-- d:\Loginus\Coder\microstudio-22.04.19-windows>microstudio.exe

d:\Loginus\Coder\microstudio-22.04.19-windows> (node:6708) UnhandledPromiseRejectionWarning: Error: Cannot find module 'compres sion' Require stack:

  • d:\Loginus\Coder\microstudio-22.04.19-windows\resources\app\microstudio\server \server.js
  • d:\Loginus\Coder\microstudio-22.04.19-windows\resources\app\main.js
  • at Module._resolveFilename (node:internal/modules/cjs/loader:934:15) at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128) at Module._load (node:internal/modules/cjs/loader:779:27) at Function.c._load (node:electron/js2c/asar_bundle:5:13331) at Module.require (node:internal/modules/cjs/loader:1006:19) at require (node:internal/modules/cjs/helpers:93:18) at Object. (d:\Loginus\Coder\microstudio-22.04.19-windows\resourc es\app\microstudio\server\server.js:4:15) at Module._compile (node:internal/modules/cjs/loader:1110:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1140:10) at Module.load (node:internal/modules/cjs/loader:982:32) (Use microstudio --trace-warnings ... to show where the warning was created) (node:6708) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termina te the node process on unhandled promise rejection, use the CLI flag --unhandle d-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejectio ns_mode). (rejection id: 1)
  • - What am I doing wrong ???

I am also testing the offline version for Linux - linux 32 bits, node npm, very old computer as a server. I view websites on several other computers.

Other bugs I found include:

  • the website / application does not test if javascript support is enabled. I've disabled javascript (and forgot about it -

I changed a lot of settings including how much memory javascript should use) - after a few days I download a new version from github.

I start the server and the website is down. I thought this version was broken. I'm waiting for the next version. I download it - and the same. Now I admit that something in the browser is changed and prevents correct operation. I change the configuration in about: config for javascript to default - the page works.

  • the website / application does not support older web browsers. I know that javascript has changed and very old browsers may not be supported anymore - but let the website / application say that it will not work properly. "MicroScript 2.0" does not work properly. And there is no message about it. Only in the programmer's console ("ctrl + shift + i" - you can see messages from the javascript parser) - browser: Firefox 52.9.0, system: Vista 32 bits.

Firefox 52.9.0 logs - defaults to run empty code in a new page.

SyntaxError: invalid identity escape in regular expression Ślad stosu: Tokenizer@http://192.168.200.183:8080/js/languages/microscript/v2/tokenizer.js:35:25 Parser@http://192.168.200.183:8080/js/languages/microscript/v2/parser.js:5:22 Runner.prototype.run@http://192.168.200.183:8080/js/languages/microscript/v2/runner.js:98:14 MicroVM.prototype.run@http://192.168.200.183:8080/js/runtime/microvm.js:236:13 Runtime.prototype.updateSource@http://192.168.200.183:8080/js/runtime/runtime.js:50:7 Runtime.prototype.startReady@http://192.168.200.183:8080/js/runtime/runtime.js:241:7 Runtime.prototype.checkStartReady@http://192.168.200.183:8080/js/runtime/runtime.js:166:14 Runtime.prototype.start/s</<@http://192.168.200.183:8080/js/runtime/runtime.js:95:18 this.LoadSprite/img.onload</<@http://192.168.200.183:8080/js/runtime/sprite.js:62:16

microvm.js:261:7

Log z Chrome 49.0 system Vista 32 bity - pusty kod w nowej stronie .


microvm.js:261 SyntaxError: Invalid flags supplied to RegExp constructor 'u'(…)MicroVM.MicroVM.run @

microvm.js:261Runtime.Runtime.updateSource @ runtime.js:50Runtime.Runtime.startReady @

runtime.js:241Runtime.Runtime.checkStartReady @ runtime.js:166(anonymous function) @ runtime.js:95(anonymous function) @

sprite.js:62 playerclient.js:33 received: {"name":"pong"}


  • the last few versions of MicroStudio have such a bug that the page is loading endlessly on old browsers. At the top

the page shows the message "Loading ..." and the code editing field is darker. But this state does not end there. I can see this error on: Firefox 52.9.0 Vista 32 bits and XP 32 bits, Chrome for Vista and XP, Palemoon for linux version Puppy Linux 64 bits (latest fossapup64 9.5 version)

I am opening a new blank project

Firefox logs 52.9.0 Vista 32 bits.

192.168.200.183 - it's a computer with a linux system - MicroStudio server

editor.js:659:14

SyntaxError: invalid identity escape in regular expression Ślad stosu: Tokenizer@http://192.168.200.183:8080/js/languages/microscript/v2/tokenizer.js:35:25 Parser@http://192.168.200.183:8080/js/languages/microscript/v2/parser.js:5:22 Editor.prototype.analyzeLine@http://192.168.200.183:8080/js/editor/editor.js:671:14 Editor.prototype.drawHelper@http://192.168.200.183:8080/js/editor/editor.js:589:13 Editor/</<@http://192.168.200.183:8080/js/editor/editor.js:82:11 r._dispatchEvent@http://192.168.200.183:8080/lib/ace/ace.js:1:50166 u/<@http://192.168.200.183:8080/lib/ace/ace.js:1:73779 r._signal@http://192.168.200.183:8080/lib/ace/ace.js:1:50364 this.setPosition@http://192.168.200.183:8080/lib/ace/ace.js:1:111157 this.onChange@http://192.168.200.183:8080/lib/ace/ace.js:1:110899 r._signal@http://192.168.200.183:8080/lib/ace/ace.js:1:50364 this.applyDelta@http://192.168.200.183:8080/lib/ace/ace.js:1:117255 this.remove@http://192.168.200.183:8080/lib/ace/ace.js:1:115765 this.setValue@http://192.168.200.183:8080/lib/ace/ace.js:1:112227 this.setValue@http://192.168.200.183:8080/lib/ace/ace.js:1:207707 Editor.prototype.setCode@http://192.168.200.183:8080/js/editor/editor.js:346:5 App.prototype.openProject@http://192.168.200.183:8080/js/app.js:299:5 AppUI.prototype.createProjectBox/</<@http://192.168.200.183:8080/js/appui/appui.js:947:16

tokenizer.js:35:24 SyntaxError: invalid identity escape in regular expression tokenizer.js:35:24 Tokenizer http://192.168.200.183:8080/js/languages/microscript/v2/tokenizer.js:35:25 Editor.prototype.tokenizeLine http://192.168.200.183:8080/js/editor/editor.js:414:17 Editor.prototype.checkValueToolButtons http://192.168.200.183:8080/js/editor/editor.js:442:12 Editor/</< http://192.168.200.183:8080/js/editor/editor.js:84:16 r._dispatchEvent http://192.168.200.183:8080/lib/ace/ace.js:1:50166 u/< http://192.168.200.183:8080/lib/ace/ace.js:1:73779 r._signal http://192.168.200.183:8080/lib/ace/ace.js:1:50364 this.setPosition http://192.168.200.183:8080/lib/ace/ace.js:1:111157 this.onChange http://192.168.200.183:8080/lib/ace/ace.js:1:110899 bound self-hosted:918:17 r._signal http://192.168.200.183:8080/lib/ace/ace.js:1:50364 this.applyDelta http://192.168.200.183:8080/lib/ace/ace.js:1:117255 this.remove http://192.168.200.183:8080/lib/ace/ace.js:1:115765 this.setValue http://192.168.200.183:8080/lib/ace/ace.js:1:112227 this.setValue http://192.168.200.183:8080/lib/ace/ace.js:1:207707 Editor.prototype.setCode http://192.168.200.183:8080/js/editor/editor.js:346:5 App.prototype.openProject http://192.168.200.183:8080/js/app.js:299:5 AppUI.prototype.createProjectBox/</< http://192.168.200.183:8080/js/appui/appui.js:947:16


Chrome 49 logs, Vista 32 bits


editor.js:659 SyntaxError: Invalid flags supplied to RegExp constructor 'u'(…)editor.js:659 Editor.Editor.drawHelper @ editor.js:659 (anonymous function) @ editor.js:82 r._emit.r._dispatchEvent @ ace.js:1(anonymous function) @ ace.js:1 r._signal @ ace.js:1 setPosition @ ace.js:1 onChange @ ace.js:1 r._signal @ ace.js:1 applyDelta @ ace.js:1 remove @ ace.js:1 setValue @ ace.js:1 setValue @ ace.js:1 Editor.Editor.setCode @ editor.js:346 App.openProject @ app.js:299 (anonymous function) @ appui.js:947

tokenizer.js:35 Uncaught SyntaxError: Invalid flags supplied to RegExp constructor 'u'Tokenizer @ tokenizer.js:35 Editor.Editor.tokenizeLine @ editor.js:414 Editor.Editor.checkValueToolButtons @ editor.js:442 (anonymous function) @ editor.js:84 r._emit.r._dispatchEvent @ ace.js:1 (anonymous function) @ ace.js:1 r._signal @ ace.js:1 setPosition @ ace.js:1 onChange @ ace.js:1 r._signal @ ace.js:1 applyDelta @ ace.js:1 remove @ ace.js:1 setValue @ ace.js:1 setValue @ ace.js:1 Editor.Editor.setCode @ editor.js:346 App.openProject @ app.js:299 (anonymous function) @ appui.js:947


I see you are working on MicroStudio, there are a lot of changes. Don't give priority to this bug report - it's possible that I'm the only one stuck in 32 bits.

Thanks for the feedback, that was quite interesting to read.

I have added a tag with a message for people who may land on the site without JavaScript enabled.

It seems one of the errors you had is because one of my RegExps is using an ECMAScript 2018 feature, which doesn't work on older browsers.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community