Thanks Gilad for responding.
I tried a few things again, always placing on the top of the webserver:
- the GIT version of the 'webIDE', including the primordialsoup.js size 114508
- with the primordialsoup.wasm and the HopscotchWebIDE.vfuel (results of the build.sh) copied from the out directory to the lib directory
But I still cannot get the server to work, there is a browser console error related to 'wasm streaming compile': primordialsoup-setup.js:40 wasm streaming compile failed: LinkError: WebAssembly.instantiate(): Import #21 module="env" function="emscripten_memcpy_js": function import requires a callable. I pasted the full error in PS.
I hate to bother you with this; I would hope if I see the result of
'ls -lR' from the server that runs the webIDE in
https://newspeaklanguage.org/webIDE/ , I may understand more about the issue.
======
Feel free to ignore everything below if it does not make sense or is too long (hmm well, it is long for sure)
======
But - let me try from another direction: It seems to me there is something 'asymmetrical' (or potential file duplications) between the files in GIT and the result of build.sh. But I am looking at it as a black box, and may well be wrong. Anyway, let me describe what I mean:
1. The important files in running the PWA are (not specifying full paths here)
- index.html (defines the paths of all files: The js files, the vfuel file, the wasm file)
- sw.js
- primordialsoup-setup.js (defines the path of the vfuel file AGAIN, but the path matches the index.html, so that should be fine)
- primordialsoup.js
- primordialsoup.wasm
- HopscotchWebIDE.vfuel
2. index,html, pw.js and primordialsoup-setup.js: The only versions exist in GIT. So there is no danger of duplicates
3. primordialsoup.wasm and HopscotchWebIDE.vfuel: The only versions are a result of build.sh. So there is no danger of duplicates
4. Conflict/duplication: primordialsoup.js: there are versions BOTH in GIT (lib under webIDE), AND a version in the 'out' directory resulting from build.sh.
Because the GIT version of 'primordialsoup.js' and all built versions of 'primordialsoup.js' are different, I have a hard time making sense of what should be built and what should be present in GIT. If the built 'primordialsoup.js' is wrong (different from the GIT version), where did the GIT version originate from? Also, if the 'primordialsoup.js' is in GIT, should the 'primordialsoup.wasm' and HopscotchWebIDE.vfuel also be in GIT? (that would not answer my inability to build, but it would provide a basis for a working server)
Thanks
Milan
PS: The errors I am getting in the browser console :
primordialsoup-setup.js:40 wasm streaming compile failed: LinkError: WebAssembly.instantiate(): Import #21 module="env" function="emscripten_memcpy_js": function import requires a callableprintErr @ primordialsoup-setup.js:40
primordialsoup-setup.js:40 falling back to ArrayBuffer instantiation
printErr @ primordialsoup-setup.js:40
primordialsoup-setup.js:40 failed to asynchronously prepare wasm: LinkError: WebAssembly.instantiate(): Import #21 module="env" function="emscripten_memcpy_js": function import requires a callable
printErr @ primordialsoup-setup.js:40
primordialsoup-setup.js:40 Aborted(LinkError: WebAssembly.instantiate(): Import #21 module="env" function="emscripten_memcpy_js": function import requires a callable)
printErr @ primordialsoup-setup.js:40
primordialsoup.js:1361 Uncaught (in promise) RuntimeError: Aborted(LinkError: WebAssembly.instantiate(): Import #21 module="env" function="emscripten_memcpy_js": function import requires a callable)
at abort (primordialsoup.js:1361:11)
at primordialsoup.js:1538:7
webIDE/:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
sw.js:16 [Service Worker] Fetching resource:
http://localhost:8081/webIDE/sw.js:20 [Service Worker] Caching new resource:
http://localhost:8081/webIDE/