Reload changed libraries on compile

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Reload changed libraries on compile

Post by Mistrel »

I'm working on a PureBasic library that I'm compiling with TailBite. I find it tedious that every time I make a change to the library I have to restart the IDE to reload the libraries into memory.

It would be convenient if the IDE would do a simple date-stamp comparison to see if the file has changed and to reload those that have.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Have you tried the "restart compiler" menu item?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

I just noticed that the little window that pops up when making the library with Tailbite outputs "Restarting Compiler" at the end. Maybe this was intended but broke at some point.

Thanks, Trond. I didn't know that. But I would still like a solution either on-compile or better yet, Tailbite's suggested functionality.
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

Mistrel wrote:I just noticed that the little window that pops up when making the library with Tailbite outputs "Restarting Compiler" at the end. Maybe this was intended but broke at some point.

Thanks, Trond. I didn't know that. But I would still like a solution either on-compile or better yet, Tailbite's suggested functionality.
the purebasic team decided to remove the function in PB4.10+

Code: Select all

#PB_MSG_Restart_Compiler = 10174
  ;
  ; gnozal : not needed if started from jaPBe (the Tailbite tool restarts the compiler)
  ;          and it won't work with PB4.10+ anyway
  PostMessage_(#HWND_BROADCAST, RegisterWindowMessage_("PB_MSG_ID"), #PB_MSG_Restart_Compiler, 0)
Post Reply