Compiler problem

Everything else that doesn't fall into one of the other PB categories.
User avatar
silvercover
User
User
Posts: 86
Joined: Sat Aug 04, 2007 6:57 pm

Compiler problem

Post by silvercover »

Hi,

When i try to run something PureBasic says "compiler isn't loaded yet...please try again". What's wrong?

I already reinstalled PureBasic but it did not help. :(
Last edited by silvercover on Sat Oct 18, 2008 10:48 pm, edited 2 times in total.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Compiler problem

Post by PB »

I get this when running from a USB stick sometimes. Don't know why it happens.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

I also get this running from my USB stick.

Either going to the menu option for Compiler->Restart Compiler or just restarting the IDE allows it to work.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Restarting the compiler doesn't work for me. I usually have quit and restart
the IDE a lot of times to get it working. I'm talking like 20 times or so. Wish
I knew what it was, but it's not something Freak can fix apparently. :(
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

Guess I'm lucky. Thankfully, that would drive me nuts.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
User avatar
silvercover
User
User
Posts: 86
Joined: Sat Aug 04, 2007 6:57 pm

Post by silvercover »

I restarted the compiler several times, but nothing happened. from now on when i start PureBasic it shows this error message:
Error: Constant already declared in another resident: #AW_ACTIVATE
I use PureBasic 4 on WinXP SP2.

Thank you guys for your replies.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Uninstall PureBasic, delete the PureBasic directory and then install again.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Like tinman, this happens to me too with a USB stick but only after I just plugged it in. I have to wait for 20 seconds or so (maybe Windows hasn't finished initialiasing the driver correctly yet) and then I restart the compiler and all is fine.

After the initial delay, the compiler will load correctly everytime I start the IDE.
User avatar
silvercover
User
User
Posts: 86
Joined: Sat Aug 04, 2007 6:57 pm

Post by silvercover »

Thank you guys. I did what Trond said and it turned to be OK :) .
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> this happens to me too with a USB stick but only after I just plugged it in

I've plugged mine in (two different ones, actually) and left them for over half
an hour and the compiler still doesn't start. If I ever work out why, I'll definitely
let Freak know. :) It's like the "start compiler" routine gets stuck in an endless
loop or something.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

PB:
Could you test if you can start "pbcompiler.exe /STANDBY" from the cmd.exe on your USB stick ?
That would help find out if it is a compiler or IDE problem.

If it works, the compiler should display something as:
STARTING 4.10 PureBasic 4.10 Beta 4 (Windows - x86)
READY

If so, typing "END<enter>" (case is important) should end the compiler again.
If it just hangs, you'll have to kill it by closing the cmd.exe

thanks.
quidquid Latine dictum sit altum videtur
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

@Freak: It's Friday night at 11:55pm here so I can't test until I get back to
work on Monday. That's where the problem always occurs. Here it home it
sometimes does it, but not as often, so home isn't a good enough test. At
work it's more reproducable.

Maybe work's virus checker could be doing something to it?
derRaab
New User
New User
Posts: 3
Joined: Wed Feb 01, 2006 10:04 am
Location: Berlin

Post by derRaab »

Hi, I have the same problem with PureBasic 4.10 Beta 2 for Mac OS X. ?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

@Freak: Tried what you said today at work, and for the first few times the
cmdbox just said "STARTING 4.10 PureBasic 4.10 Beta 4 (Windows - x86)"
without going to "READY" -- I had to forcibly kill those attempts.

Then, as expected with the editor, it started going to "READY" by itself.
I really don't know why. No idea. But, at least it's reproducible every time,
so testing any changes you might do will be easy enough.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

@Freak: I did more testing, and it seems I can always start the compiler
with the /standby switch, and it behaves as above (going to "ready"), but
doing /portable on PureBasic.exe never goes anywhere. So it seems that
when the IDE starts the compiler, it never sees the "ready" state for some
reason, and keeps waiting... and waiting... and waiting. I have two batch
files for my test, and they are:

Below is in the "Compilers" folder. Running it from my USB stick takes a
short time for "READY" to appear, but it does appear, and always.

Code: Select all

pbcompiler.exe /STANDBY
Below is in the "PureBasic" folder (parent of "Compilers" folder). Running it,
when I haven't run the above batch file, doesn't do anything. The compiler
never seems to be "READY", or the IDE doesn't realise it. BUT, if I run the
above batch file first, and let it become "READY", then kill that batch process
and run the below batch file, then it works normally, as if the IDE suddenly
knows about the compiler. Very, very weird.

Code: Select all

PureBasic.exe /portable
Post Reply