Lately I’ve been amusing myself by converting an old BASIC game to Python. Then I remembered about Yab and thought I could bring it over to there and, also, not have to rely on the terminal.
I tried to run yab-IDE (from HaikuDepot), but it just popped up the splash screen and then disappeared. I downloaded the source and ran it again and it stops at an error:
mkdir: cannot create directory '/boot/home/yab_work': File or Directory already exists
mkdir: cannot create directory '/boot/home/config/settings/yab': File or Directory already exists
cp: cannot stat './BuildFactory': No such file or directory
---Error in ./yab-IDE.yab, line 3874: invalid stream: 0 (can handle only streams from 1 to 124)
---Dump: sub set_up_BuildFactory() called in ./yab-IDE.yab,981
---Dump: sub OpenMainWindow() called in ./yab-IDE.yab,102
---Error: Program stopped due to an error
---Program done, press RETURN---
The line 3874 in question is: while(not eof(#handle)) and I’ve included the surrounding lines for context:
DataDir$=trim$(system$(“finddir B_USER_DIRECTORY”))
x=system(“mkdir “+DataDir$+”/yab_work”)
system(“mkdir ~/config/settings/yab”)
y=system(“ls “+DataDir$+”/yab_work/BuildFactory > /dev/null”)
y=y+system(“ls “+DataDir$+”/yab_work/Programs > /dev/null”)
system(“cp -ur “+ideDir$+“BuildFactory “+DataDir$+”/yab_work”)
handle=open(DataDir$+”/yab_work/BuildFactory/srcfiles”,“r”)
while(not eof(#handle)) // This is line 3874
input #handle a$
system("cp -u "+ideDir$+"src/"+a$+" "+DataDir$+"/yab_work/BuildFactory/"+a$)
end while
close handle
system("cp -ur "+ideDir$+"src/column "+DataDir$+"/yab_work/BuildFactory")
Is there an easy way to fix this? Is it something wrong with my setup that I can change?
Thanks in advance.