Page 47 of 104

Posted: Mon Feb 05, 2007 1:16 pm
by RichardL
64bit ?
No, good old vanilla 32 bit stuff at present.


(I have looked into moving the preferences onto our server, which has a clever history feature... that would allow me to scroll back through the last several versions; but sadly it is not as easy as I thought; and does not solve the real problem.)

Posted: Thu Feb 15, 2007 8:09 pm
by remi_meier
Hi Gnozal
I'm using jaPBe 3.7.1.612 and just had the problem again, that all preferences
were lost.

What I can tell:
- There is sometimes a problem with options messing up and getting lost,
for example two days ago I just had to reenable "Automatisches Einrücken"
without doing anything, it just got lost.
- The log-window at the bottom simply doesn't save its size in about 60%
of all jaPBe starts. Don't know why. It will simply be set to a size of 0.

Now the preferences-lost:
- I think I had jaPBe opened when Windows just thought, that it needs to
restart (this countdown after automatic updates..), I wasn't at the PC
that time so it just rebooted :?
- So after the reboot I just started jaPBe and everything is set to default.
The preferences file looks like this:
jaPBe.pref wrote:[Test]
[TimeOut]
Compiler = 10000
StructureViewer = 500
[General]
Version = 3.7.1.612
ExtractConstantsFromResidents = 1
UseSDK = 1
UseSDK-MSDN = 0
CompleteBookmark = 0
AlphabeticBookmark = 0
PureBasicPath = C:\Dokumente und Einstellungen\Remi\Desktop\Programmieren\PureBasic\PureBasic\
DefaultDirectory = C:\Dokumente und Einstellungen\Remi\Desktop\Programmieren\PureBasic\Projects\
Language = Deutsch
ExecuteURLifCTRLClick = 1
ActivateProcedureToolTips = 1
FindDefinitionHotspotsActivate = 0
HelpHotspotsActivate = 0
HelpHotspotsActivate_Constant = 1
HelpHotspotsActivate_Variable = 1
HelpHotspotsActivate_Structure = 1
HelpHotspotsActivate_PBProcedure = 1
HelpHotspotsActivate_KeyCommand = 1
URLHotspotTextActivate = 1
URLHotspotCommentActivate = 1
URLHotspotAlwaysVisible = 1
UseCustomSyntaxAndFolding = 0
BackupDirectory = C:\Dokumente und Einstellungen\Remi\Desktop\Programmieren\PureBasic\Projects\Backups\
AutoLoad = *
RunOne = 1
RedrawCompleteWindow = 0
InfoPanelDelay = 200
IncludeShowAll = 0
AutoReloadLast = 1
AutoCreateEnd = 1
LoadOnlyOne = 1
DoSynchList = 1
StructureViewerIncludeTypes = 0
FindNextBack = 1
DoPlayExecuteCreated = 1
PlayExecuteCreated = ExecuteCreated.wav
AutoSave = 0
AutoSaveCount = 30
SourceAddNullByte = 1
[Position]
I think that's all I can tell you about it. Hope you'll find the problem.

Edit: Just saw that the Backup-Dir and Default-Dir were preserved :?: :!:

Posted: Thu Feb 15, 2007 8:13 pm
by ts-soft
same problem here, i have unchecked many defines, but always 1 in the
preferences, jaPBe load all defines, this slow the IDE down.

Posted: Thu Feb 15, 2007 8:25 pm
by remi_meier
Yeah, the defines also only are saved in about 30% of times.

And an addition:
I just copied an older jaPBe.pref while jaPBe was running. Restarted it
and again all default options! But the jaPBe.pref was untouched this time.
The next restart did it.

Could it be that jaPBe sometimes chooses the wrong directory for searching
the jaPBe.pref and because it doesn't find it, just creates a default one,
but this time in the right directory?
Could this be a hidden bug in the preferences lib? I thought I heard about
similar problems with just the lib...

Posted: Fri Feb 16, 2007 8:07 am
by Hurga
Another - "a little bit annoying - "feature" of jaPBe is:
It deletes my saved Aliases-file, if I install a new version of jaPBe.

Posted: Fri Feb 16, 2007 8:49 am
by gnozal
Hurga wrote:Another - "a little bit annoying - "feature" of jaPBe is:
It deletes my saved Aliases-file, if I install a new version of jaPBe.
Strange, because the jaPBeForPB400.zip archive doesn't contain any jaPBe.pref nor jaPBe_Aliases.pref file, so it cannot be overwritten ?!
remi_meier wrote:Yeah, the defines also only are saved in about 30% of times.
Ok, I will try to find what's wrong.
remi_meier wrote:Could it be that jaPBe sometimes chooses the wrong directory for searching the jaPBe.pref and because it doesn't find it, just creates a default one, but this time in the right directory?
I didn't touch any code here, it's still GPI's code (except the new options). jaPBe sets the default directory when it starts (SetCurrentDirectory_()), and all the file names it uses are relative (i.e. without path), so if some other program changes the current directory, it could generate some problems ...
Did you search for 'jaPBe.pref' files in other directories of your drive(s) ?
Maybe if I set the default directory before each preferences save/load or use an absolute path the problem will be fixed ?
remi_meier wrote:Could this be a hidden bug in the preferences lib? I thought I heard about similar problems with just the lib...
Could be, jaPBe uses this library.

Posted: Fri Feb 16, 2007 11:00 am
by gnozal
Update

Changes :
- fixed Definitions preferences not saved
- paths for Preferences are now absolute (and not relative to current directory)

Posted: Sat Feb 17, 2007 10:23 am
by remi_meier
Thx, definitions seem to work now.

About the preferences lib, I just thought that there were problems with
erased files without a reason. But nobody could reproduce it.

Posted: Mon Feb 19, 2007 3:18 pm
by Hurga
It doesnst overwrite it, it just deleted it.

Posted: Mon Apr 30, 2007 10:32 am
by gnozal
Update

Changes :
- fixed a random crash in 'About' dialog
- updated 'Chinese.txt'

Posted: Sat May 05, 2007 8:16 am
by In_Go
Hi Gnozal!

Thank you for your Editor!

I have problems with Project Options:
As soon I switch ON 'Enable inline ASM support'
Jabe crashs (hangs up) when quit requester with Ok!

Where do you store the Project Options?

What is the difference to preferences in file menu to project options?

It seems the purebasic editor stores the project options at the end of
project file (visible in Jabe)

Please give me a hint!
Ingo

Posted: Sat May 05, 2007 8:43 am
by gnozal
In_Go wrote:I have problems with Project Options:
As soon I switch ON 'Enable inline ASM support'
Jabe crashs (hangs up) when quit requester with Ok!
Sorry, can't reproduce the problem. What are the exact steps ?
Note that when you change the status of 'Enable inline ASM support', jaPBe will redo a syntax coloring for the entire file (this may take long, so it may look like jaPBe freezes).
I will try to reduce the coloring time...
In_Go wrote:What is the difference to preferences in file menu to project options?
Where do you store the Project Options?
The project options in the 'Preferences' dialog are default settings (when you create a new file).
The project options in 'Project options' [F8] are the actual project options (for the current file).
The project options are saved at the end of the source (in jaPBe and PB IDE).

Posted: Sat May 05, 2007 10:19 am
by In_Go
Hi Gnozal, thanks for fast respond!

It seems to work OK now!
I was impatiencly ..... should have wait longer for result.
My code is over 7000 lines long, that could be the problem,
Jabe normaly is very fast! (My excuse) this pause was abnorm.

Thank You, I like to work with Your editor
Ingo

Posted: Mon May 14, 2007 8:23 pm
by RichardL
Hi Gnozal,

In no way is this a complaint or criticism of the single most useful uitility available to Pure Basic users. I know that some users, including me, have experienced an occasional loss of the preferences data... so when I powered up this evening and noticed the window size was wrong, and the comments were the wrong colour I asked myself what might be useful to the author if he chooses to chase this bug... So...

1. I checked the date stamp on the jaPBe.pref file and it is exactly the time I shut down earlier.
2. The two projects I had loaded at shut down were loaded correctly.
3. The prefs file contents looks like this:

Code: Select all

[Test]
[TimeOut]
Compiler = 10000
StructureViewer = 500
[General]
Version = 3.7.5.632
FoldFlags = 16
EnableAliases = 0
ExtractConstantsFromResidents = 0
UseSDK = 0
UseSDK-MSDN = 0
CompleteBookmark = 0
AlphabeticBookmark = 0
PureBasicPath = C:\Program Files\PureBasicRev4\
DefaultDirectory = C:\Program Files\PureBasic\Examples\
Language = English
ExecuteURLifCTRLClick = 0
ActivateProcedureToolTips = 0
FindDefinitionHotspotsActivate = 0
HelpHotspotsActivate = 0
HelpHotspotsActivate_Constant = 1
HelpHotspotsActivate_Variable = 1
HelpHotspotsActivate_Structure = 1
HelpHotspotsActivate_PBProcedure = 1
HelpHotspotsActivate_KeyCommand = 1
URLHotspotTextActivate = 1
URLHotspotCommentActivate = 1
URLHotspotAlwaysVisible = 1
UseCustomSyntaxAndFolding = 0
AutoLoad = *
RunOne = 1
RedrawCompleteWindow = 0
InfoPanelDelay = 200
IncludeShowAll = 0
AutoReloadLast = 1
AutoCreateEnd = 0
LoadOnlyOne = 1
DoSynchList = 1
StructureViewerIncludeTypes = 0
FindNextBack = 1
DoPlayExecuteCreated = 0
PlayExecuteCreated = 
AutoSave = 0
AutoSaveCount = 30
SourceAddNullByte = 1
[Position]
The jaPBe 'About' panel shows rev 3.7.5.362.
I could not think what else might be useful to note.

Best regards and thanks for your continued work on this first class editor.

RichardL

Posted: Wed May 23, 2007 6:31 pm
by Flype
hi gnozal,

just a little imperfection :

you know that if i doubleclick on a 'IncludeFile' command it open the included file in jaPBe.

but it doesn't works when using pb constants such as #PB_Compiler_Home :

Code: Select all

IncludeFile #PB_Compiler_Home + "includes/win32.pbi"