Page 83 of 104

Have downloaded JaPBe

Posted: Sun Aug 16, 2009 11:19 pm
by Hot Pockets
Can't find it after I instaled it. Nothing has changed in mypurebasic program either. How do youset this thing up?

Re: Have downloaded JaPBe

Posted: Mon Aug 17, 2009 1:01 am
by LCD
Hot Pockets wrote:Can't find it after I instaled it. Nothing has changed in mypurebasic program either. How do youset this thing up?
It asks where to decompress, just select a directory, otherwise it is in the temporary dir. You can then find it in the directory you have selected. It does not need installation and you can move it to a different directory.

Posted: Mon Aug 17, 2009 7:46 am
by gnozal
LCD wrote:Example: "Line 314 in 'scanner_wrapper.pb': folding keyword /stored line mismatch ; folding canceled"
And this in all files!
It's a sanity check.
This means that the stored line to be fold in the jaPBe footer (; FoldLines=007E0081008 etc...) doesn't have a folding marker after syntax coloring (file : Load_Save_Switch.pbi, function : LoadSourceCodeReal_Sub(File$), line 2088).

Without the source that caused the error message, I can't investigate more.

Posted: Mon Aug 17, 2009 9:56 am
by LCD
gnozal wrote:
LCD wrote:Example: "Line 314 in 'scanner_wrapper.pb': folding keyword /stored line mismatch ; folding canceled"
And this in all files!
It's a sanity check.
This means that the stored line to be fold in the jaPBe footer (; FoldLines=007E0081008 etc...) doesn't have a folding marker after syntax coloring (file : Load_Save_Switch.pbi, function : LoadSourceCodeReal_Sub(File$), line 2088).

Without the source that caused the error message, I can't investigate more.
I even deleted all the folding informations in the footer (after null byte marker) with notepad, and folded anything again. But even this did not help. The folding information at the footer was rebuilt, but same problems again... The source was not folded. I will prepare some of the sources for you later today.

Thanks for the information. I will download the latest source code of JaPBE and try to build the editor.

Posted: Mon Aug 17, 2009 10:28 am
by gnozal
LCD wrote:I even deleted all the folding informations in the footer (after null byte marker) with notepad, and folded anything again. But even this did not help. The folding information at the footer was rebuilt, but same problems again... The source was not folded. I will prepare some of the sources for you later today.
Thanks for the information. I will download the latest source code of JaPBE and try to build the editor.
The easy way to 'fix it' is to comment line 2088 out in Load_Save_Switch.pbi : '; If SCI_MarkerGet(StartLine) & #FoldMask_OpenClose'.
But a line to be fold should have a folding marker after syntax coloring.

Posted: Mon Aug 17, 2009 1:05 pm
by LCD
Hi Gnozal. I sent you a PM with a link to the file.

Posted: Mon Aug 17, 2009 2:32 pm
by gnozal
LCD wrote:Hi Gnozal. I sent you a PM with a link to the file.
Thanks.
I could load both files without any warning ... I could Fold/Unfold all without any error too !
I must be something with your settings : could you try erasing all files in %jaPBe%\Syntax ? jaPBe will recreate them if needed.

I have also updated jaPBe. With the new build, you can add 'NoLoadSanityCheck = 1' in '[General] ' section of jaPBe.Pref to disable the sanity check.

Posted: Mon Aug 17, 2009 4:49 pm
by LCD
gnozal wrote:
LCD wrote:Hi Gnozal. I sent you a PM with a link to the file.
Thanks.
I could load both files without any warning ... I could Fold/Unfold all without any error too !
I must be something with your settings : could you try erasing all files in %jaPBe%\Syntax ? jaPBe will recreate them if needed.
Manual folding causes no problems here too, only automatic folding after loading of the files. I deleted the file in Syntax directory but it has not changed anyting. The source is still completly unfolded after loading and there are still warnings.
I'm aware that it can be one of the settings, but I reinstalled Windows and now I also deleted the complete JaPBE folder and reinstalled JaPBE back with standard settings, but this has not changed anything, it still does not want to fold my sources after loading. :cry:
I'm running out of ideas what can cause it. Maybe a outdated Scintilla.dll (the latest version is 2.0.0).

Maybe it will be a good idea to make the line 2088 optional from preferences "Disable fold checking after loading".

Other idea is to add multiple profiles to quickly switch which compiler to use. I'm probably not the only one who uses PB 4.31, and PB 4.40b1. And there is still the possibility to switch back to 3.9x for work a little bit on JaPBE or some of my older programs.

Posted: Mon Aug 17, 2009 4:53 pm
by gnozal
LCD wrote:Maybe it will be a good idea to make the line 2088 optional from preferences "Disable fold checking after loading".
I have updated jaPBe. With the new build, you can add 'NoLoadSanityCheck = 1' in '[General] ' section of jaPBe.Pref to disable the sanity check.

Posted: Mon Aug 17, 2009 7:00 pm
by LCD
gnozal wrote:
LCD wrote:Maybe it will be a good idea to make the line 2088 optional from preferences "Disable fold checking after loading".
I have updated jaPBe. With the new build, you can add 'NoLoadSanityCheck = 1' in '[General] ' section of jaPBe.Pref to disable the sanity check.
Great! Thank you, now it works perfectly!

Can't find editor

Posted: Tue Aug 18, 2009 2:41 am
by Hot Pockets
Thanks I'll look for it in the Temp

Posted: Wed Aug 19, 2009 1:02 pm
by nicolaus
@gnozal

first thanks for the fast work so that we can use jaPBe also for the 4.40 betas.

Now i have a wish for the next version of jaPBe.
Can you at a options part where we can select more than one PB version and also a function ( in the menu or so ) where we can switch shortly between the pb version what we have setup befor to compile code?

I think it is a good idea so that we don't must install more then one version of jaPBe to work with different versions of PB.

I hope you know waht i mean.

Thanks,
Nico

Posted: Wed Aug 19, 2009 1:33 pm
by gnozal
nicolaus wrote:I think it is a good idea so that we don't must install more then one version of jaPBe to work with different versions of PB.
I don't think it's such a good idea ; I think it's better to have separate installs, one for each PB version (the PB versions are in separate directories anyway). You may want to use different jaPBe settings / plugins / plugin versions for each PB version.
And you have to restart the compiler anyway to use a different PB version, so it doesn't take much longer to start a 2nd jaPBe session from another directory. You may even use links.

Posted: Wed Aug 19, 2009 5:55 pm
by Demivec
gnozal wrote:
nicolaus wrote:I think it is a good idea so that we don't must install more then one version of jaPBe to work with different versions of PB.
I don't think it's such a good idea ; I think it's better to have separate installs, one for each PB version (the PB versions are in separate directories anyway). You may want to use different jaPBe settings / plugins / plugin versions for each PB version.
And you have to restart the compiler anyway to use a different PB version, so it doesn't take much longer to start a 2nd jaPBe session from another directory. You may even use links.
I frequently switch between versions simply by modifying the PureBasic path. I've never had a problem doing this without restarting, in fact I often leave the code running and rarely close it down or restart it. I do this often while testing new beta versions as well.

Why would the restart be necessary, is it just to be safe or for working with something like the plugins?

Posted: Wed Aug 19, 2009 8:55 pm
by nicolaus
gnozal wrote:
nicolaus wrote:I think it is a good idea so that we don't must install more then one version of jaPBe to work with different versions of PB.
I don't think it's such a good idea ; I think it's better to have separate installs, one for each PB version (the PB versions are in separate directories anyway). You may want to use different jaPBe settings / plugins / plugin versions for each PB version.
And you have to restart the compiler anyway to use a different PB version, so it doesn't take much longer to start a 2nd jaPBe session from another directory. You may even use links.
But if you at also Menu-Items for each version of PB wath is setup in the options and the user click one of this items you can start the compiler automatically new. You can also at a section in the options for the plugins for each PB version.