<?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: Arcade/JS testing in VS Code: How to run simple scripts? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150318#M52307</link>
    <description>&lt;P&gt;Not exactly what you mean but may be helpful if you've not come across it&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/playground/" target="_blank"&gt;Playground | ArcGIS Arcade | ArcGIS Developer&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 19:17:55 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2022-03-03T19:17:55Z</dc:date>
    <item>
      <title>Arcade/JS testing in VS Code: How to run simple scripts?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150284#M52302</link>
      <description>&lt;P&gt;When writing Arcade scripts, I think it would be helpful to do testing in an IDE beforehand, if the script doesn't use any Arcade-specific functions (or if it does, temporarily remove/fake out those parts).&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, define a polyline array manually...&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; paths = [[[&lt;SPAN class=""&gt;0&lt;/SPAN&gt;,&lt;SPAN class=""&gt;5&lt;/SPAN&gt;,&lt;SPAN class=""&gt;null&lt;/SPAN&gt;],[&lt;SPAN class=""&gt;10&lt;/SPAN&gt;,&lt;SPAN class=""&gt;10&lt;/SPAN&gt;, &lt;SPAN class=""&gt;null&lt;/SPAN&gt;],[&lt;SPAN class=""&gt;30&lt;/SPAN&gt;,&lt;SPAN class=""&gt;0&lt;/SPAN&gt;, &lt;SPAN class=""&gt;null&lt;/SPAN&gt;],[&lt;SPAN class=""&gt;50&lt;/SPAN&gt;,&lt;SPAN class=""&gt;10&lt;/SPAN&gt;, &lt;SPAN class=""&gt;null&lt;/SPAN&gt;],[&lt;SPAN class=""&gt;60&lt;/SPAN&gt;,&lt;SPAN class=""&gt;10&lt;/SPAN&gt;, &lt;SPAN class=""&gt;null&lt;/SPAN&gt;]]]&lt;/PRE&gt;&lt;P&gt;...loop through the vertices, do some stuff, and output results as text.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;So, I want to use VS code to do that testing...by running the Arcade expression as if it were JavaScript . I know Arcade isn't&amp;nbsp; the same thing as JS, but I think it's close enough for the testing I want to do.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Question:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anyone had any success &lt;U&gt;&lt;EM&gt;running&lt;/EM&gt;&lt;/U&gt; basic JS scripts in VS Code? That might be a dumb question, but I really have no idea where to start.&lt;BR /&gt;Unlike Python, it doesn't seem like you can just&amp;nbsp; type some JS like&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;console.log('Hello World');&lt;/FONT&gt;&amp;nbsp; and then &lt;U&gt;run the code&lt;/U&gt;&amp;nbsp;to output some text.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;I tried searching the web and I got a bunch of results about node.js -- which I have installed. Unfortunately, I still can't figure out how run a basic script, such as print "Hello World".&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Would someone be able to point me in the right direction?&lt;BR /&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Mar 2022 04:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150284#M52302</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-11T04:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade/JS testing in VS Code: How to run simple scripts?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150318#M52307</link>
      <description>&lt;P&gt;Not exactly what you mean but may be helpful if you've not come across it&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/playground/" target="_blank"&gt;Playground | ArcGIS Arcade | ArcGIS Developer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 19:17:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150318#M52307</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2022-03-03T19:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade/JS testing in VS Code: How to run simple scripts?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150508#M52348</link>
      <description>&lt;P&gt;With node.js installed, in VS Code either open&amp;nbsp;the folder containing your .js file (File -&amp;gt; Open Folder...) or open your .js file directly (File -&amp;gt; Open File...)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;with the folder open - click Run-&amp;gt;Add Configuration... pick node.js, close the launch.json file then select your .js script in the sidebar to&amp;nbsp;open it in the editor and Ctrl-F5 (or Run -&amp;gt; Run Without Debugging) to run.&lt;/LI&gt;&lt;LI&gt;with the file open,&amp;nbsp;Ctrl-F5 to run, pick node.js.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The advantage of opening the folder rather than the file is that you save your run config and don't have to set it up every time.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 01:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150508#M52348</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2022-03-04T01:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade/JS testing in VS Code: How to run simple scripts?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150534#M52353</link>
      <description>&lt;P&gt;Yes! That worked!&lt;/P&gt;&lt;P&gt;I used the folder option you mentioned.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1646362983495.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35564i5E7C04A589BCF2F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1646362983495.png" alt="Bud_0-1646362983495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Related: &lt;A href="https://community.esri.com/t5/developers-ideas/arcade-extension-for-visual-studio-code/idi-p/932261" target="_self"&gt;Idea: Arcade Extension for Visual Studio Code&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 05:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-js-testing-in-vs-code-how-to-run-simple/m-p/1150534#M52353</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-06T05:42:05Z</dc:date>
    </item>
  </channel>
</rss>

