Compiler doesn't work - no error output. Possibly due to permissions .

Previous topic - Next topic

FutureCow

I've put the demo of GLBasic on my work (SHH!!!  =D ) pc  to do some coding in my lunch breaks. I needed to install it as local administrator as my account doesn't have administration rights.

So I've installed as the local admin then logged in as my standard user account. I may have created the project while still logged in as admin or maybe I created it after I logged in on my account with standard access, I'm not sure. Anyway,  I have logged in with my standard account, opened the project, then hit f5 to compile. The compiler would return straight away with  :-
*** Finished ***
Elapsed: 0.0 sec. Time: 14:24
Build: 0 succeeded.

This would happen regardless of whether there was 1 line or 100 lines of code, and whether the code was all correct or full of errors.

I ran a trace on the exe and what I eventually found was the problem was the trying to update the gbap file and couldn't for some reason (file ownership perhaps?). It wouldn't return an error about problems accessing the file, it would return to the IDE straight away with the error as mentioned.

When I deleted the gbap file and recreated the project I could then compile the program. I also deleted the directory the project was in and recreated it, so there's a possibility it was permissions or corruption of the folder rather than the project itself.

I can now recreate the problem as follows (which suggests a corrupt gbap file)
1) I restore the gbap file from my trash to somewhere on my system (eg. desktop) - I've attached the gbap file to this post
2) Double click it to open the editor
3) Press the New File icon
4) Type in some code that doesn't work (eg. eruiogheruipheuihweruiogh)
5) Press compile
6) I get the following output

*** Finished ***
Elapsed: 0.0 sec. Time: 14:24
Build: 0 succeeded.

Hopefully if you load the attached gbap file you will be able to reproduce the error

[attachment deleted by admin]

Kitty Hello

is there a gbas source file attached with the project? (look in the "Files" Tab on the right hand side pane).

FutureCow

I don't think so for this project. When I replicated the error earlier today I double-clicked the project and it opened the editor with no source file open. I then created a source file, wrote rubbish in it (ie. htgueriogheiurghuier) and tried to compile it.

Kitty Hello

you definitely need a source file in the project. Use the project wizard at the start to create a new project.

FutureCow

Yup, it originally had one, this was just how I was reproducing the problem to try and help track down the bug.

My problem is fixed now (after deleting the original file that the compiler couldn't access everything works) - I just listed this bug in case there is checking that might need to be done at the compiler stage to make sure that when you hit f5 that the files are actually getting compiled. In my original case, something after you hit f5 wasn't returning an error code when it should have.
Do all the steps after you hit f5 check for correct return codes?

Kitty Hello