Windows PureBasic IDE with latest additions

Working on new editor enhancements?
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Windows PureBasic IDE with latest additions

Post by ChrisR »

If anyone is interested, I have rebuilt Windows PureBasic IDE (PureBasic.exe) with the latest additions, commits, for my needs, waiting for the next PB version! Any news ?

PureBasic_IDE_Win_x64_2022-10-23.zip

PureBasic_IDE_Win_x86_2022-10-23.zip

Latest Commits
[SpiderBasic] - added specific ConstantsData file
Keep order of project files
Ignore start constant when parsing enumerations
Improve interface parser to deal with module prefixes and line continuations
Clear constant list before reloading source settings. Properly reload temp settings in case of #SAVESETTINGS_DoNotSave
Fix file monitor in case multiple files change at once
Disable context-sensitive AutoComplete in case the prefix of the typed constant is not #PB
Allow Enter key to open selected Project File in list (all platforms)
Remember ProcedureBrowser scroll position
Update ScintillaHighlighting.pb
Fix source parser handling for UTF8 cases
Fix errors in data for context sensitive AutoComplete
Change license headers so the separator lines do not show up in the ProcedureBrowser (*.pbi files)
Automatically count the number of Default Color Schemes, instead of hardcoding a number
Edit: Added Fix PR 197
Last edited by ChrisR on Sun Oct 23, 2022 11:13 am, edited 1 time in total.
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Windows PureBasic IDE with latest additions

Post by Denis »

ChrisR wrote: Fri Oct 07, 2022 1:49 pm If anyone is interested, I have rebuilt Windows PureBasic IDE (PureBasic.exe) with the latest additions, commits, for my needs, waiting for the next PB version! Any news ?
Keep order of project files
Hey ChrisR
Merci!!!!!!!!!!
A+
Denis
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Windows PureBasic IDE with latest additions

Post by Caronte3D »

Can't download x86 (virus detected) same old nightmare with PB exes :(
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 340
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: Windows PureBasic IDE with latest additions

Post by ar-s »

X64 seems to work good. TY :)
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Windows PureBasic IDE with latest additions

Post by BarryG »

ChrisR wrote: Fri Oct 07, 2022 1:49 pmIgnore start constant when parsing enumerations
What's this about?
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Windows PureBasic IDE with latest additions

Post by mk-soft »

BarryG wrote: Sun Oct 09, 2022 2:07 am
ChrisR wrote: Fri Oct 07, 2022 1:49 pmIgnore start constant when parsing enumerations
What's this about?
Link: viewtopic.php?t=60691
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Windows PureBasic IDE with latest additions

Post by Denis »

Salut ChrisR,

Your ide versions now crash almost systematically at closing (x86 & x64).
This happens when I click on the close button from IDE.
(about official ide, i don't know, I don't use it anymore)

Windows 11 Professionnel
Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz 2.90 GHz
32,0 Go Ram
Système d’exploitation 64 bits, processeur x64
version 22H2
build 22621.674
A+
Denis
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Windows PureBasic IDE with latest additions

Post by ChrisR »

Salut Denis,
You know, this is the ~official version, not my version.
This is just the PB IDE open-source version as it is currently, with the latest commits that have been integrated since v6.0
No credit at all from me, it is just downloading, compiling and sharing, nothing more than 5-10mn spent.

No idea for the cratch with the Close button, I do not reproduce here on my windows 10 x64.
On my side, I only use the x64 IDE version and PB x86 version is installed only for the compiler (with its libraries...).
Do you have any further indication on how to reproduce the cratch ?

Just out of curiosity, what do you use if you don't use the official IDE ?
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Windows PureBasic IDE with latest additions

Post by Denis »

Sorry ChrisR...

I only use PB ide (and now the version you've compiled).
I use Notepad++ to do search and change on big code.
There was an update of Win11 and since then the crashes happen 1 time out of 2, with the cross of the window or with the menu File/quit.

Image
A+
Denis
User avatar
HeX0R
Addict
Addict
Posts: 979
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Windows PureBasic IDE with latest additions

Post by HeX0R »

Since it's crashing on exit, did you try to disable all IDE tools and the session history?
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Windows PureBasic IDE with latest additions

Post by Denis »

Hi HeX0R,

I will try your recommendation.
Tks.
A+
Denis
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Windows PureBasic IDE with latest additions

Post by Denis »

@HeX0R :
I've disablel all IDE tools and the session history, removed all template, removed all personal asm libs.
The problem is still there (x86/x64).

I've reinstalled PB x64 in a clean folder, disabled session history, and try with offical ide and the crash disappeared.
I try almost 20 times with offical IDE.

When i put ide version compiled by ChrisR in the new folder, the crash is back.

@ChrisR:
It's really a plus the ide that you compiled.
It is when closing that the crash occurs, with all the tests I have done, it seems to me that there is a link with the projects (I only work with an open project and several open files from the project) because when I leave only the main file of the project open (xxx.pbp), the crash disappears.
A+
Denis
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Windows PureBasic IDE with latest additions

Post by ChrisR »

I didn't expect to run into a bug while sharing the updated IDE with the latest commits!
But it's good to know that there is probably something wrong in the latest additions. Thanks for your indications Denis.
I'm not sure how I can help. My knowledge is limited here.

The compilation was done with my batch but it is like the standard procedure.
Looking at your image, unfortunately ErrorHandler.pb doesn't help, ErrorFile() and ErrorLine() are not set.

If it can help, I have 2 backup: purebasic-devel_2022-07-25.zip (Should be like PB 6.0 official version) and purebasic-devel_2022-10-06.zip (The same as the current one on Github, the shared purebasic.exe IDE here)
By comparing (Beyond Compare for me), there is no direct change in the ShutdownIDE() procedure.

It would be nice if you could debug the IDE to better know where the error is and thus help the team.
If you have a little free time, it is quite easy :
- To make it easier, download this package purebasic-devel_2022-10-06_build.zip, the x64 build (MakeWindows.cmd) has already been done so everything is there to debug it and Windows-x64 is set as the default Target.
- From a clean PB 6.0 x64 session, opens the project "PureBasicIDE\PureBasicIDE.pbp"
- Optional, in PureBasic.pb line 118, comment ;XIncludeFile "ErrorHandler.pb" (better if in debug mode)
- Then Compile/Run (F5) to open a new purebasic IDE session in debug mode now.
- From this new Purebasic IDE session, open your project and try to reproduce the bug.
- If you win and reproduce it, it should stop with a red debug mark at the faulty line.

I didn't succeed in reproducing it by following your indications.
User avatar
HeX0R
Addict
Addict
Posts: 979
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Windows PureBasic IDE with latest additions

Post by HeX0R »

Does that happen with all your projects, or just with a special one?
It sounds (hope not) as if that bug is hidden in my addition (keep sort of project files), because to my knowledge there were no other additions to the project handling?

Maybe we can do it the other way round.
Can you send me one of your projects, where that crash occurs by PM maybe?
Then I can debug it for you.
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Windows PureBasic IDE with latest additions

Post by Denis »

@ChrisR
I will wait on HeX0R before going further.

@HeX0R
Several projects crash.

I send you up a link on a zip file with the main projet file (only 1 file for the project),1 example file, and the pbp file.
The main project has only 712 lines with a lot of french comment.
A+
Denis
Post Reply