jaPBe 3.13.4 [IDE for PB 4 and PB 5]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by Demivec »

gnozal wrote:
Demivec wrote:Each time the last step is performed there will be a new entry under the 'Book' tab for procedure test() and there won't be any way to remove them without closing the file and reopening it.
Yes, it's the same if you write manually 'Procedure Test()' twice. The 'Procedure' keyword adds a bookmark. jaPBe does not check for duplicate bookmark names (it does for procedure names : there are not duplicates in the 'Proc' list).

If you delete the 2nd 'Procedure Test()', jaPBe will remove the duplicated bookmark. This doesn't happen with CTRL+Z as it simply calls Scintilla's undo function SCI_Undo(), and I don't get a SCN_MODIFIED notification in the callback after the undo despite #SC_MOD_PERFORMED_UNDO flag being set with SCI_SetModEventMask().
Would it be possible to be able to refresh the bookmarks without reloading the file? If this were possible it would allow the use of undo/redo for editing.

Even though this effect does not affect the 'Proc' tab the way it does the 'Book' tab it has an additional side effect that does involve them somewhat. If the menu item 'Insert Declarations' is selected from the 'Project' menu it will insert procedure declarations for each of the phantom bookmarked procedures also instead of basing it on the actual ones listed on the 'Proc' tab.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by gnozal »

Update

Changes :
- jaPBe now does a bookmark sanity check after do/undo.
  (it checks if the procedure bookmark points to a 'procedure' keyword).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
ALAN-MHz
User
User
Posts: 68
Joined: Fri Jul 29, 2005 11:47 am

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by ALAN-MHz »

I don't know if it is really a bug do jaPBe, if i use "OpenNetworkConnection" command in code and run in Debug mode (F6) or in Normal mode (F5) the command return a numeric value in every case, so it's impossible to know the correct status of the connection, until we create the final exe, can anyone check it ? Thanks
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by gnozal »

ALAN-MHz wrote:I don't know if it is really a bug do jaPBe...
Try the same code in the PB IDE to find out.
ALAN-MHz wrote:If i use "OpenNetworkConnection" command in code and run in Debug mode (F6) or in Normal mode (F5) the command return a numeric value in every case, so it's impossible to know the correct status of the connection, until we create the final exe
OpenNetworkConnection() does return a numeric value in any case ; it's null if the connection failed : http://www.purebasic.com/documentation/ ... ction.html
ALAN-MHz wrote:..can anyone check it ?
Tested with latest jaPBe (build 809) using debugger [F6] and PB4.40 beta 5 : no problem

Code: Select all

If InitNetwork()
  NC = OpenNetworkConnection("Will fail ...", 80)
  If NC = #Null
    Debug "1.FAILED"
  Else
    Debug "1.SUCCESS !?"
    CloseNetworkConnection(NC)
  EndIf
  NC = OpenNetworkConnection("http://www.purebasic.com/", 80)
  If NC = #Null
    Debug "2.FAILED"
  Else
    Debug "2.SUCCESS"
    CloseNetworkConnection(NC)
  EndIf
EndIf
Debug output (as expected) :

Code: Select all

1.FAILED
2.SUCCESS
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
ALAN-MHz
User
User
Posts: 68
Joined: Fri Jul 29, 2005 11:47 am

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by ALAN-MHz »

i know that is absurd situation, but if i activate "Create TEMP EXE in source dir" in jaPBe project option all work good, without any problem, seems that the temporary directory have a problem on my PC, but if i work on PureBasic IDE all work good in every case :?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by gnozal »

ALAN-MHz wrote:... seems that the temporary directory have a problem on my PC...
jaPBe uses GetTempPath_() to get the tmp directory.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by nicolaus »

Hi gnozal

i have a bug in jaPBe.
I have set the options in jaPBe so that if i open a code file it will bee also open all includes.
Now if i close the code file jaPBe will also close all loaded includes but than i will get all the times the error what you can see on the screenshot.
Image

after i click ok i will get the next error that jaPBe cant save the scourcecode.

best regards,
Nico
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by gnozal »

nicolaus wrote: i have a bug in jaPBe.
I have set the options in jaPBe so that if i open a code file it will bee also open all includes.
Now if i close the code file jaPBe will also close all loaded includes but than i will get all the times the error what you can see on the screenshot.
I can't reproduce this error with my include test files; maybe it's source dependent.
Could you please try with the latest build (3.9.10.809) and post the error message if there is still a problem ?
I might also need your sources.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by nicolaus »

@gnozal

i have installed the latest build and now it works very well!
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Limit to number of backups

Post by RichardL »

Hi Gnozal,
A while back I reported that jaPBe did not limit the number of backup files to the limit on the Preferences/General panel. Your response was that you would fix this on the next release.

PLEASE DON'T DO THIS!

jaPBe is currently saving backups of several of my projects, reaching 1057 in one case and in the 500-700 range in two others. My Backup directory now has 7,623 files and is 2.04 Gb in size.

Hard disks are cheap and I can spend an hour or so making a DVD backup of the recent stuff if I want to... but the delight of being able to recover a key file from last July... which has saved me a lot of work rewriting a very complex file analyser... is hard to measure. So please leave the backup file count running wild and let me delete really old stuff!

Best regards,
RichardL
Last edited by RichardL on Fri Oct 23, 2009 7:30 am, edited 1 time in total.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Limit to number of backups

Post by Fred »

You really need to use SVN.. :)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Limit to number of backups

Post by gnozal »

RichardL wrote:Hi Gnozal,
A while back I reported that jaPBe did not limit the number of backup files to the limit on the Preferences/General panel. Your response was that you would fix this on the next release.
PLEASE DON'T DO THIS!
Iirc, it's fixed for some time now. No ?
Just increase the limit in preferences, like 5000 (max).

[EDIT]Just tested latest build : it seems fixed.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by gnozal »

Update (builds >= 810)

Changes :
- added a toolbar 'Select source' button at the left of the 'Exit' button.
  Image
  This may be handy when there are a lot of opened sources.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by nicolaus »

Hi gnozal,

I think i have found one more small bug in jaPBe.
In the options of jaPBe i have enabled the custom folding and i have add the keyword If and EndIf for folding. ( see the screenshots.
Image
Image

But since i have do this i have a problem with variables after the keyword If. It means that if i type "If" and after that i start to typ the variable jaPBe dosn't show the autocomplet window and jaPBe allso jaPBe dosn't know the variable but the variable is declared.
See the screenshot and you will see that also the color of the variable afert the "If" is in the right one.
Image

Hope you know what i mean.

Best regards,
Nico
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: jaPBe 3.9.10 [IDE for PB 4.xx]

Post by gnozal »

nicolaus wrote:I think i have found one more small bug in jaPBe.
In the options of jaPBe i have enabled the custom folding and i have add the keyword If and EndIf for folding. ( see the screenshots.
You used 'NextType = 5', which means the next word is a procedure ...
Please use the default settings for the 'If' keyword :

Code: Select all

Falten = 1
NextType = 0
Markit = 0
Struc = ""
ProcDecl = 0
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply