Collapses Region Inconsistent in Primal Pad

Use this forum to ask product-specific questions about our free tools. We do not offer full support for our free tools but will do our best to answer any questions you may have. No scripting questions, please.
Forum rules
Do not post any licensing information in this forum.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 1 year and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
Woody_033
Posts: 118
Last visit: Sun Jul 14, 2024 4:44 pm
Been upvoted: 1 time

Collapses Region Inconsistent in Primal Pad

Post by Woody_033 »

PrimalPad 2022 Version 2.4.73

It starts off Øk, then it stops working... then it starts a later on and on
Cordially,
Wøødy
Attachments
Untitled.png
Untitled.png (62.04 KiB) Viewed 9928 times
Face piles of trials with smiles and coffee :D
User avatar
Alexander Riedel
Posts: 8575
Last visit: Sat Nov 02, 2024 12:15 pm
Answers: 23
Been upvoted: 42 times

Re: Collapses Region Inconsistent in Primal Pad

Post by Alexander Riedel »

Your code has something in it that confuses it obviously. From this screenshot it is impossible to tell what.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Woody_033
Posts: 118
Last visit: Sun Jul 14, 2024 4:44 pm
Been upvoted: 1 time

Re: Collapses Region Inconsistent in Primal Pad

Post by Woody_033 »

Your code has something in it that confuses it obviously.
Yeah, that is usually my first reaction too... LØL

I thought this might have something to do with it <#Comments#> it helps, but not completely
If I take the same file and convert it to a .txt, everything collapse and formats properly
I don't remember it being like this before, but I was not using it as much for looking at files
In NotePad++ same, everything collapses properly
I looked in Version Recall and its the same as Primal Pad but everything looks fine in PowerShell Studio, ISE and even VS
So I don't know
Face piles of trials with smiles and coffee :D
User avatar
Alexander Riedel
Posts: 8575
Last visit: Sat Nov 02, 2024 12:15 pm
Answers: 23
Been upvoted: 42 times

Re: Collapses Region Inconsistent in Primal Pad

Post by Alexander Riedel »

PowerShell Studio uses a third party editor engine. PrimalScript uses our own. PrimalPad and thereby VersionRecall use yet another third party control.
So yes, there are differences. :D
I can look into it but I will need an actual file that illustrates the problem. And, if you can, shrink it down to the minimum amount necessary to produce the problem.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Woody_033
Posts: 118
Last visit: Sun Jul 14, 2024 4:44 pm
Been upvoted: 1 time

Re: Collapses Region Inconsistent in Primal Pad

Post by Woody_033 »

So I think I figured out what the issue is...
I think there are two issues that compound
1a) Is the number of lines after 5~600 lines it happens sometime
1b) After 1200 lines it becomes very apparent

2 ) Code formatting is a factor
I use this as a default...

Code: Select all

#semi-concise  
If ($value) { Out-Default 'True'}
Else { Out-Default 'False'}
But if you look at when you export a project it re-formats to something like this

Code: Select all

# Expanded 
If ($value)
{
	Out-Default 'True'
}
Else
{
	Out-Default 'False'
}
If you export a project with 20k in lines it looks fine


So I can upload some code, or you can reproduce it yourself with proper code
You can't just copy a function over and over. It has to be different
And the formatting has to be semi-concise and not expanded
If not, I will upload something that I know buggers up
Cordially,
Wøødy
Face piles of trials with smiles and coffee :D
User avatar
Alexander Riedel
Posts: 8575
Last visit: Sat Nov 02, 2024 12:15 pm
Answers: 23
Been upvoted: 42 times

Re: Collapses Region Inconsistent in Primal Pad

Post by Alexander Riedel »

If you have a file, that would be splendid.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Woody_033
Posts: 118
Last visit: Sun Jul 14, 2024 4:44 pm
Been upvoted: 1 time

Re: Collapses Region Inconsistent in Primal Pad

Post by Woody_033 »

Test layout file.ps1
(47.96 KiB) Downloaded 184 times
Here is a collection of different files. Each individually, they show properly in Primal Pad
You can see the difference here
Untitled.png
Untitled.png (184.18 KiB) Viewed 9896 times
Hope this helps
Wøødy
Face piles of trials with smiles and coffee :D
This topic is 1 year and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.