gnozal wrote:LCD wrote:But it does not look like there is something wrong with the file. JaPBE says there is a end folding mark without start folding at line 137, but does not say in which of the sources. I checked all of them, but I found only ENDPROCEDURE keyword at this position.
jaPBe displays this message when you use the 'Fold all' function and there is a mismatch between OpenFold and CloseFold markers in the current source.
Example : with this code you get 'Line 4 : fold marker open without close' when you use 'Fold All'.
It means that no 'Close' marker is matched with the 'Open' marker in line 4.
Code: Select all
Procedure Anyproc()
;{
;{
EndProcedure
Procedure Anyproc2()
;}
EndProcedure
This is sometimes hard to spot when there are many embedded folding markers.
LCD wrote:, but returning to previously installed Build 785 cured the problem...
That's interresting. I have uploaded a
new build (790). Could you test it ?
Tested: Build 790 suffers from exactly the same problem... So I was forced to switch back again to 785 (I don't have 786 and 787 so I cannot test them).
Btw. the autofolding stops on lines like this one:
Code: Select all
If evm=menu_copy ;{
CreateImage(#Image_Clipboard,garray(#Global_RedrawSizeX)<<3,garray(#Global_RedrawSizeY)<<3-garray(#Global_YPixReduction))
Quickredraw(0,#Image_Clipboard,*screenbuffer,scrmode,garray(#Global_PicresX),garray(#Global_PicresY),garray(#Global_Attr_offset))
SetClipboardImage(#Image_Clipboard)
MessageRequester(transl(#txt_info),transl(#txt_Picture_copied_clipboard),#MB_ICONINFORMATION)
ClearEvents1()
Goto Hauptschleife_painter
EndIf ;}
It does only underscore the first line, but not folding the other. This happens only at autofolding, and if I "unfold" the line again and fold it, it works again sometimes.
I know where it supposes to claim bad folder marks, but these lines are clean, and every time I reload JaPBE with the sources (which are agein unfolded) it claims a different line to have bad folder marks...
I even made a new folder for JaPBE, but the same problem.
Just tested again:
Code: Select all
Procedure FontAutoload(Filename$)
If Filename$<>""
Size=FileSize(Filename$)
file=ReadFile(#PB_Any,Filename$)
If LCase(GetExtensionPart(Filename$))="tap"
If Size=793
ReadTAPFile(file,0,*FontMemory+256)
EndIf
EndIf
If file And Size=2048
ReadData(file,*FontMemory,2048)
CloseFile(file)
ElseIf file And Size=768
ReadData(file,*FontMemory+256,768)
CloseFile(file)
ElseIf file And Size=168
ReadData(file,*FontMemory+1152,168)
CloseFile(file)
ElseIf file And Size=152
ReadData(file,*FontMemory+1152,152)
CloseFile(file)
Else
ReadData(file,*FontMemory,2048)
minrange=ReadByte(file):maxrange=ReadByte(file)
For a=0 To 255
fontdata(a)=ReadByte(file)&255
Next a
CloseFile(file)
EndIf
EndIf
EndProcedure
EndProcedure=Bad folder mark...
I will test it on my Notebook too...
Edit: Tested on my notebook: Exactly the same problem: 785 works, 790 ignores all folding informations successfull. So it is not a problem of my PC.