<?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: JSL scripts - comments and blank space disappear after running/pasting in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49339#M28047</link>
    <description>&lt;P&gt;I have some updates on what I have observed;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The script only is reformatted and losses its comments/blank space when an error occurs, and only if it was run without the editor open. The script won't be reformatted while the editor is open.&lt;/P&gt;&lt;P&gt;2. If no errors occur the script will run as expected with no reformatting, regardless of how it was run or if the editor is open&lt;/P&gt;&lt;P&gt;3. The reformatted script basically looks like the version that appears in the debugger window, with a few symbols different&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this will help but the more information the better in my opinion!&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jan 2018 02:38:55 GMT</pubDate>
    <dc:creator>Cwalla</dc:creator>
    <dc:date>2018-01-06T02:38:55Z</dc:date>
    <item>
      <title>JSL scripts - comments and blank space disappear after running/pasting</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49338#M28046</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a fairly long JSL script (~500 lines). It collects user input and then creates graphs from the table of data the script is in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been encountering a bizarre problem however. Sometimes after running the script using the green arrow in the script window (not the "run" button with the editor open), when I open the script back up all the comments and blank spaces I had in the script are gone. This does not occur when I run the script with the "run" button from the editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand if this is because the script is too long and JMP is trying to condense it/reformat it, but I want to keep the comments. The script still works in this reformatted form but it is extremely confusing to look at.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script has only recently started doing this, and it seems to be strongly linked to the length in my opinion, but I may be missing something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My only other lead/info is that when a command in the script fails, that almost always will then cause the script to lose its comments/whitespace. I.E. if I create a graph with the variable (:Batch #) but there is no column named "Batch #" that will cause the script to lose its comments/whitespace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone experienced this,or know what might be causing it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This same behavior happens when I try to directly copy the script from one data table to another; as it is I have to manually copy the text and paste that.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 00:59:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49338#M28046</guid>
      <dc:creator>Cwalla</dc:creator>
      <dc:date>2018-01-06T00:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripts - comments and blank space disappear after running/pasting</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49339#M28047</link>
      <description>&lt;P&gt;I have some updates on what I have observed;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The script only is reformatted and losses its comments/blank space when an error occurs, and only if it was run without the editor open. The script won't be reformatted while the editor is open.&lt;/P&gt;&lt;P&gt;2. If no errors occur the script will run as expected with no reformatting, regardless of how it was run or if the editor is open&lt;/P&gt;&lt;P&gt;3. The reformatted script basically looks like the version that appears in the debugger window, with a few symbols different&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this will help but the more information the better in my opinion!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 02:38:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49339#M28047</guid>
      <dc:creator>Cwalla</dc:creator>
      <dc:date>2018-01-06T02:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripts - comments and blank space disappear after running/pasting</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49372#M28072</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured out the issue. When you change the name of a column, or JMP tries to access a column that doesn't exist via script, all the scripts in the data table will be evaluated and reformatted. I.E., if I have a command that says plot(:name("time")), that would be evaluated to plot(:time).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Annoyingly in my opinion, this will change if i rename the column "time". If&amp;nbsp;I change the name of "time" to "Times" it will update the script as well. The plot command will now be plot(:times) so that it is still referencing the original column even when it has been renamed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can definitely be a good thing at times for the specific application I have it stops progress.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to share so if anyone sees this they know what the issue was.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:32:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49372#M28072</guid>
      <dc:creator>Cwalla</dc:creator>
      <dc:date>2018-01-08T15:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: JSL scripts - comments and blank space disappear after running/pasting</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49380#M28079</link>
      <description>&lt;P&gt;Thanks for tracking that down! I'll enter a report for it.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:59:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-scripts-comments-and-blank-space-disappear-after-running/m-p/49380#M28079</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-01-08T15:59:16Z</dc:date>
    </item>
  </channel>
</rss>

