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

Linux - IDE crash with many lines

by Stefan Fri Jan 04, 2019 11:43 am

Linux:
Spiderbasic doesn't compile codelines more than 10000 lines.
Tested with Ubuntu 18.10,Linux Mint 18.3 and 19.1, Mageia 6.1, Debian 9 and Suse.
Fred
Site Admin
 
Posts: 1298
Joined: Mon Feb 24, 2014 10:51 am

Re: Linux - Spiderbasic doesn't compile

by Fred Wed May 13, 2020 8:19 am

Any chance to get a source sample to test ? Someone else experienced the same ?
User avatar
Peter
 
Posts: 749
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

Re: Linux - Spiderbasic doesn't compile

by Peter Wed May 13, 2020 8:32 am

Fred wrote:Someone else experienced the same ?

In the german forum Stefan mentioned that he keeps all his code (several thousand lines) in one file.

Most people cannot confirm the IDE problems he mentioned because they split their code into several includes (which I think is recommendable anyway).

Greetings ... Peter
munfraid
 
Posts: 51
Joined: Sat Mar 24, 2018 1:33 pm

Re: Linux - Spiderbasic doesn't compile

by munfraid Wed May 13, 2020 10:00 am

If there's a problem, I don't think it has to do with the number of lines. Try this little snippet. Put the debug output in a new file and compile. Here it makes no problems, even with 100k lines. (SB 2.30 x64 on Ubuntu 18.04. LTS )
Code: Select all
codelines = 10002
output.s = ""

For i = 1 To codelines/3

  output.s + "Procedure p" + Str(i) + "()" + #LFCR$
  output.s + "ProcedureReturn Random(10000)" + #LFCR$
  output.s + "EndProcedure" + #LFCR$

Next

output.s + "Debug p" + Str(Random(codelines/3,1)) + "()"

Debug output
Fred
Site Admin
 
Posts: 1298
Joined: Mon Feb 24, 2014 10:51 am

Re: Linux - Spiderbasic doesn't compile

by Fred Wed May 13, 2020 1:54 pm

Peter wrote:
Fred wrote:Someone else experienced the same ?

In the german forum Stefan mentioned that he keeps all his code (several thousand lines) in one file.

Most people cannot confirm the IDE problems he mentioned because they split their code into several includes (which I think is recommendable anyway).

Greetings ... Peter


Is it an IDE problem or a compiler problem ?
Stefan
 
Posts: 71
Joined: Mon Feb 05, 2018 9:44 pm

Re: Linux - Spiderbasic doesn't compile

by Stefan Thu May 14, 2020 5:15 am

The Problem is the IDE!
Click on the list of procedures and select a procedure.
Go to the editor and write something.
Press an arrow key or the Enter key and the IDE crashes without a message.
Tested on various PCs and various Linux distributions.
I have written this several times and also sent you a long code so that you can test it, Fred.
Unfortunately, I never got an answer or even a solution to the problem.
Some users have confirmed this bug. I'm really not alone there.
In Spider and Purebasic.
Fred
Site Admin
 
Posts: 1298
Joined: Mon Feb 24, 2014 10:51 am

Re: Linux - IDE crash with many lines

by Fred Thu May 14, 2020 9:34 am

Changed the title to reflect it
Stefan
 
Posts: 71
Joined: Mon Feb 05, 2018 9:44 pm

Re: Linux - IDE crash with many lines

by Stefan Sat Jun 13, 2020 5:38 am

mk-soft fixed the procedure bug in Purebasic, which apparently was never discovered.
https://www.purebasic.fr/english/viewto ... 23&t=75365

This bug is also - as already described several times - also in Spiderbasic.
Is this bug fixed in Spiderbasic?
That would be very nice, because at the moment I can only work with Wine with Spiderbasic under linux.
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests