Hi,
compiling any program (even a simple 'Print "Hello world"') that worked in the previous versions now gives this error.
Anyone else having the same issue?
Compiling c:/Users/Alain/Documents/AOZ Studio Applications/applications/TestApp_AOZ, emulation: PC, speed: fast.
First pass...
Second pass...
Compiling images...
Compiling sounds...
Cannot read property 'length' of null
TypeError: Cannot read property 'length' of null
at Object.compileBanks (C:\snapshot\aoz\compiler\banks.js)
at compile (C:\snapshot\aoz\compiler\aoz.js)
at aoz (C:\snapshot\aoz\compiler\aoz.js)
at Object.<anonymous> (C:\snapshot\aoz\compiler\aoz.js)
at Module._compile (pkg/prelude/bootstrap.js:1261:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:993:10)
at Module.load (internal/modules/cjs/loader.js:813:32)
at Function.Module._load (internal/modules/cjs/loader.js:725:14)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1316:12)
at internal/main/run_main_module.js:17:11
Arghhh this is a bug that happens often. The only solution for me is to have the folder of the application you are trying to compile. Can you ZIP the whole folder (c:/Users/Alain/Documents/AOZ Studio Applications/applications/TestApp_AOZ) and send it to me? fl@aoz.studio Thanks! :)
Hi François. I had to send the files by WeTransfer because the zipfile was considered "potentially dangerous" by your mail system...
Same result exactly trying that demo here. Though I also notes I have issues with some simple code which might also highlight something;
Dim NAME$(10)
Def Fn NAME$(A$)=Lower$(A$)
Print Fn NAME$("GASSMAN")
Im coming to AMOS almost anew again after all this time, so pardon any dumb mistakes. The same works as expected in Amos Pro, but fails to compile in AOZ.
I downloaded the installer AOZ Studio Beta 0.9.2.1 Setup, later IDE informed me of update available : VSCode-win32-x64-1.41.1 , which was downloaded and moved into the app folder replacing old stuff.
Francois said in a video you shouldnt update by hand. I dont know if it helps, but try reinstalling without the update. Then F2 to compile and F1 to launch.
The problem was fixed by creating a new AOZ application in vscode...
I compared the content of the new AOZ application folder (+subfolders) and the folders of the program that raised the "Cannot read property 'length' of null"-error, and found out that several files were missing.
So... problem solved.
Thanks both.
I have reinstalled now, didnt help with this one though. Also creating a new application and pasting the same code in there yielded a different result now so Alain probably you are right something is missing in the files when that occurs.
This is corrected, and should not happen any more.
It was not happening on my machines, so I was puzzled. In fact, the transpiler crashed when there was no 'resource' folder. And as I realized that the installer does not create empty folders, it was crashing.
Corrected for 0.9.2.2.