Found an issue in SpiderBasic ? Please report it here !
William Van Hoecke
 
Posts: 4
Joined: Tue Oct 22, 2019 12:09 pm

SPIDER BASIC 2.22 COMPILATION ERROR

by William Van Hoecke Wed Nov 06, 2019 9:38 am

Hello,
SPIDER BASIC 2.22 COMPILATION ERROR
I compile to a webapp.
Suddenly I get this weared error https://photos.app.goo.gl/ysp6rFo8i472avU98 by adding following line


If CreateFile(0, "AAAAAA.txt", @Callback()) ; we create a new text file
For a=1 To 10
WriteStringN(0, "Line "+Str(a)) ; we write 10 lines (each with 'end of line' character)
Next
For a=1 To 10
WriteString(0, "String"+Str(a)) ; and now we add 10 more strings on the same line (because there is no 'end of line' character)
Next
ExportFile(0, "text/plain",#PB_LocalFile)
CloseFile(0)
EndIf


Creating a file like this works fine in other apps
The error happens only when I use this in my current code, not when I use it in another app.

Link to code
https://drive.google.com/open?id=1WCrXL9TQkWkArW5ovLO1uaLmQQtWtGBP
Last edited by William Van Hoecke on Wed Nov 06, 2019 9:56 am, edited 1 time in total.
User avatar
Peter
 
Posts: 641
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

Re: SPIDER BASIC 2.22 COMPILATION ERROR

by Peter Wed Nov 06, 2019 9:55 am

Just a guess: Did you activate "Optimize javascript output"?

Image
William Van Hoecke
 
Posts: 4
Joined: Tue Oct 22, 2019 12:09 pm

Re: SPIDER BASIC 2.22 COMPILATION ERROR

by William Van Hoecke Wed Nov 06, 2019 10:05 am

@Peter,
Thanks very much...

Yes I had the 'optimize code' flag on. Unchecking it resolved the problem !!!
Still I wonder ? the 'optimize code' flag was always on before ??
Fred
Site Admin
 
Posts: 1182
Joined: Mon Feb 24, 2014 10:51 am

Re: SPIDER BASIC 2.22 COMPILATION ERROR

by Fred Wed Nov 06, 2019 10:43 am

There seems to have strange issues with the optimizer, I will disable it for now.
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 0 guests