Spider 4 beta 2

Found an issue in SpiderBasic ? Please report it here !
Stefan
Posts: 265
Joined: Mon Feb 05, 2018 9:44 pm

Spider 4 beta 2

Post by Stefan »

It would be good to know what was changed in Beta 2. My program doesn't run in Beta 2, whereas it did in Beta 1. However, I don't get an error message because the debugger doesn't even launch. Unfortunately, I can't post the code here because it's too large.
At first glance, the program works without the debugger...



This is the cosole log:
debug.js?t=1786716137:59 /austausch/loungeproggen/spider/lounge_client2910.sb:1 error: Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules (http://127.0.0.1:19080/spiderbasic.js?t=1786716137, line: 71602)


function spider_InitFunctions() {
spider_InitMap()
This is line 71602 : await spider_InitFileSystem()
spider_InitImageDecoder()
spider_InitImage()
spider_Init2DDrawing()
spider_InitDesktop()
spider_InitList()
spider_InitGadget()
spider_Event_Init()
spider_InitWindow()
spider_InitFont()
spider_InitSystem()
spider_InitMenu()
spider_InitArray()
}
Fred
Site Admin
Posts: 1892
Joined: Mon Feb 24, 2014 10:51 am

Re: Spider 4 beta 2

Post by Fred »

It looks like the postprocessor doesn't tag the init function as async. Is it on Windows ? Did you install in a new dir ? If you can reduce the code while preserving the bug, it would be great. As it's a postprocessor stuff, you can just remove included file etc. until it starts to compile again
Stefan
Posts: 265
Joined: Mon Feb 05, 2018 9:44 pm

Re: Spider 4 beta 2

Post by Stefan »

I tried it on Windows 10 and Linux Mint. New folders for SpiderBasic were created.
I removed all XIncludeFile files. Now it seems to be working.
Post Reply