<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Code Folding is catching too many lines in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370876#M62072</link>
    <description>&lt;P&gt;I've tried to reproduce this behavior and I've not be able to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version of JMP are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide an example of JSL that causes a problem?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 01:12:55 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2021-03-24T01:12:55Z</dc:date>
    <item>
      <title>Code Folding is catching too many lines</title>
      <link>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370841#M62069</link>
      <description>&lt;P&gt;I have set "if" blocks to be foldable,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I have been using them like this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If (1==1, // comment abc
&amp;nbsp; &amp;nbsp;&amp;lt;foldable code block 1 &amp;gt; );
If (1==1, // comment xyz
&amp;nbsp; &amp;nbsp;&amp;lt;foldable code block 2 &amp;gt; );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But often, the first block will catch later blocks and fold them all together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code work without a problem, but is is sometimes hard to find the code, it is lost in the folds.&lt;/P&gt;
&lt;P&gt;Is there a solution to this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:09:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370841#M62069</guid>
      <dc:creator>mann</dc:creator>
      <dc:date>2023-06-09T22:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Code Folding is catching too many lines</title>
      <link>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370876#M62072</link>
      <description>&lt;P&gt;I've tried to reproduce this behavior and I've not be able to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version of JMP are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide an example of JSL that causes a problem?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 01:12:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370876#M62072</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2021-03-24T01:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code Folding is catching too many lines</title>
      <link>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370915#M62076</link>
      <description>&lt;P&gt;I have had same issue (with JMP15.2.1).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to repeat it but I'm not sure how reliable this is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Start with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Expr(
	if(
		//example inside here IF
		//example inside here IF
		//example inside here IF		
	);
	//example inside here EXPR
	//example inside here EXPR
	//example inside here EXPR
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. Remove ); from row 6:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Expr(
	if(
		//example inside here IF
		//example inside here IF
		//example inside here IF		
	//example inside here EXPR
	//example inside here EXPR
	//example inside here EXPR
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3. Press enter on row 5 and add new if statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Expr(
	if(
		//example inside here IF
		//example inside here IF
		//example inside here IF
	if(
		
	);
	//example inside here EXPR
	//example inside here EXPR
	//example inside here EXPR
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;4. Remove new If( but leave );&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Expr(
	if(
		//example inside here IF
		//example inside here IF
		//example inside here IF		
	);
	//example inside here EXPR
	//example inside here EXPR
	//example inside here EXPR
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Images starting from part 3:&lt;/P&gt;&lt;P&gt;new if:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1616563525669.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31493iCD6F4D8415F82C63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1616563525669.png" alt="jthi_0-1616563525669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;new if removed (something weird going on with code folding square):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1616563535366.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31494iA43F903109376532/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1616563535366.png" alt="jthi_1-1616563535366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;afte re-opening script:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1616563612382.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31495i10FB031877F5D595/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1616563612382.png" alt="jthi_2-1616563612382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At least in this case seems like the code folding doesn't get properly updated if something is removed from the middle of code. For me it resolves usually by either rebooting JMP or just be closing and re-opening the script.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 05:28:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370915#M62076</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-03-24T05:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Code Folding is catching too many lines</title>
      <link>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370920#M62077</link>
      <description>&lt;P&gt;I've also seen examples of "not so clear" code folding (JMP Pro 15.1, Win10)&lt;BR /&gt;But I pretty much like autoformatting, to also see if my syntax is correct, and to hopefully avoid these problems.&lt;/P&gt;&lt;P&gt;When doing so (pressing Crtl-m) I never experienced code folding problems. So may be this is a "workaround"?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 05:40:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/370920#M62077</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-03-24T05:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code Folding is catching too many lines</title>
      <link>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/371086#M62096</link>
      <description>&lt;P&gt;Thanks for all the help, I have found that restarting JMP will "refresh" the folding tags, and scripts will open properly.&lt;/P&gt;&lt;P&gt;But continued use will confuse JMP again, and the folds will begin folding multiple sections at once.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 15:00:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/371086#M62096</guid>
      <dc:creator>mann</dc:creator>
      <dc:date>2021-03-24T15:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Code Folding is catching too many lines</title>
      <link>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/373944#M62363</link>
      <description>&lt;P&gt;The JMP editor definitely has some quirks -- with this one in particular, the quickest fix (and it doesn't require restarting JMP) is to use the "Reformat Script" button just right of the "Run Script" button -- reformat the script (I then immediately undo, as I usually prefer my own format) and the code folding will get reset properly.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 15:36:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Code-Folding-is-catching-too-many-lines/m-p/373944#M62363</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2021-04-02T15:36:01Z</dc:date>
    </item>
  </channel>
</rss>

