Skip to content

Commit 2572024

Browse files
committed
Edge now equivalent to Chrome in error reporting
1 parent 259ed35 commit 2572024

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/GlowScriptDocs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<p class="Normal">GlowScript uses the ACE text editor. Here is a list of <a href="https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts" target="_blank"><strong>keyboard shortcuts</strong></a> for find, replace, etc. While editing, press <strong>Ctrl-1</strong> to run your program in the same window. Press <strong>Ctrl-2</strong> to run your program in a separate window, which can be convenient for comparing the program with its behavior. If you change your program, press <strong>Ctrl-2</strong> again in the editor display to re-run the program with the new changes. Because ACE doesn't work on mobile devices, a simpler editor is used there.</p>
150150
<p class="Normal"><strong>A simple program:</strong> In the editor, after the GlowScript header, enter the statement &quot;sphere()&quot; and choose &quot;Run this program&quot;. You should see a 3D sphere. Read the Help discussions on <a href="cylinder.html">cylinder</a> and <a href="box.html">box</a> objects to learn how to customize 3D objects (position, color, size, etc.).</p>
151151
<p class="Normal"><strong>Rotate and zoom:</strong> You can rotate and zoom the camera using the mouse; for instructions, see the Example program <a href="https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/AtomicSolid" target="_blank"><strong>AtomicSolid</strong></a>.</p>
152-
<p class="Normal"><strong>Errors and debugging:</strong> If you are using JavaScript, watch for little yellow triangles or red squares to the left of a program statement and move the mouse over the icon. You'll see a message describing an error with that line. (This capability is not yet active for VPython or RapydScript.) When you run the program you may see other error messages. <strong><span class="attribute1">Only with the Chrome browser is it usually possible for GlowScript to display the line number of the error, so when developing programs it is strongly advised to use Chrome.</span></strong> Some program errors are reported only to the &quot;console&quot;. To enable the console, in Chrome, press shift-ctrl-j on Windows or Ubuntu, or option-cmd-j on Mac. In Firefox, on Windows choose Firefox &gt; Web Developer &gt; Web Console, and on Ubuntu choose Tools &gt; Web Developer &gt; Web Console. The output will be found at the end of the console output </p>
152+
<p class="Normal"><strong>Errors and debugging:</strong> If you are using JavaScript, watch for little yellow triangles or red squares to the left of a program statement and move the mouse over the icon. You'll see a message describing an error with that line. (This capability is not yet active for VPython or RapydScript.) When you run the program you may see other error messages. <strong><span class="attribute1">Only with the Chrome or Edge browser is it usually possible for GlowScript to display the line number of the error, so when developing programs it is strongly advised to use Chrome or Edge.</span></strong> Some program errors are reported only to the &quot;console&quot;. To enable the console, in Chrome or Edge, press shift-ctrl-j on Windows or Ubuntu, or option-cmd-j on Mac. In Firefox, on Windows choose Firefox &gt; Web Developer &gt; Web Console, and on Ubuntu choose Tools &gt; Web Developer &gt; Web Console. The output will be found at the end of the console output </p>
153153
<p class="Normal">When developing a program it can be very useful to comment out a block of code temporarily. Here is how to do this in the three languages:</p>
154154
<p class="program"># VPython or RapydScript (can also use '''):<br />
155155
&quot;&quot;&quot;<br />
@@ -172,7 +172,7 @@
172172
<div> </div>
173173
</div>
174174
<p class="Normal">GlowScript uses the WebGL 3D graphics library that is included in current versions of major web browsers. <em><strong>You must have a modern graphics card with Graphics Processing Units (GPUs).</strong></em> Here are browser details:</p>
175-
<p class="Normal"><strong>Chrome, Firefox, Safari</strong>,and <strong>Edge</strong> all support WebGL and GlowScript.</p>
175+
<p class="Normal"><strong>Chrome, Edge, Firefox, Safari</strong>,and <strong>Edge</strong> all support WebGL and GlowScript.</p>
176176
<p class="Normal"><strong>Tablets and smart phones</strong>: Most tablets and smart phones support WebGL and GlowScript, both Android and iOS.</p>
177177
<p class="Normal"><strong>Testing:</strong> If things don't work, it may be useful to visit <a href="https://get.webgl.org" target="_blank">get.webgl.org</a> which checks whether WebGL is working properly on your computer. Also, here is a <a href="http://www.khronos.org/webgl/wiki/Demo_Repository" target="_blank">repository</a> of WebGL demo programs, where it may be useful to see whether these programs will run on your computer.</p>
178178
<p class="Normal"><strong><font color="#0000A0">RapydScript, a Python look-alike</font></strong></p>

docs/GlowScriptDocs/local.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h1 class="Heading-1"> <font color="#0000A0">Running locally</font></h1>
7474
<br />
7575
If you want to remake/update the existing version 2.9, or create a new version 3.0, see MakingNewVersion.txt in the docs folder of the GlowScript GitHub repository. Note that use of the build program requires that there be an appropriate version of node in the build-tools folder.<br />
7676
<br />
77-
It is very useful to insert console.log(....) at critical points in the JavaScript code, which will generate output to the web page that is viewable if you turn on the browser developer console. On Chrome just press Ctrl-Shift-j. </p>
77+
It is very useful to insert console.log(....) at critical points in the JavaScript code, which will generate output to the web page that is viewable if you turn on the browser developer console. On Chrome or Edge just press Ctrl-Shift-j. </p>
7878
<p class="Normal"><strong>(6) Save your test programs</strong><br />
7979
Updates to the Google software can have the effect that you lose the VPython programs you used for testing purposes. On Windows these programs are stored in C:\Users\YourName\AppData\Local\Temp\appengine.glowscript. On Mac, look for datastore.db in /private/var/folders/..... It is highly recommended that you keep a copy of the programs folder before updating the Google software.</p>
8080
<p class="Normal"><br>
@@ -94,7 +94,7 @@ <h1 class="Heading-1"> <font color="#0000A0">Running locally</font></h1>
9494
<br />
9595
In the Launcher, choose File &gt; Add Existing Application and specify the glowscript folder. Make a note of the Port number. Click Add. In ide/api.py and untrusted/run.js, search for &quot;localhost:&quot; and adjust the port number to the number assigned by the launcher.<br />
9696
<br />
97-
With the glowscript entry selected in the launcher, click the green Run button. When the Browse button lights up, click it, which will run your standard browser (which should be Chrome for best error reporting).<br />
97+
With the glowscript entry selected in the launcher, click the green Run button. When the Browse button lights up, click it, which will run your standard browser (which should be Chrome or Edge for best error reporting).<br />
9898
<br />
9999
Click Sign in, then click Login and use the name &quot;test&quot;. Write or import a program and check that it runs properly.</p>
100100
<p class="Normal"><strong>* On Ubuntu</strong>, in a terminal cd to the google_appengine folder and execute<br />

docs/VPythonDocs/canvas.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h1 class="Heading-1"> <font color="#0000A0">Controlling One or More VPython
8484
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;obj.color = color.red </p>
8585
<p class="attributes"> <span class="attribute">visible </span>Setting scene.visible = False means that no objects are displayed, until scene.visible is set True again.</p>
8686
<p class="attributes"><span class="attribute">delete() </span>Deletes all the objects in this canvas and then deletes the canvas itself</p>
87-
<p class="attributes"><span class="attribute">capture(filename) </span>Sends to your Download folder a png screen shot of the canvas. If filename is the string &quot;boxes&quot; or &quot;boxes.png&quot; the file will be named &quot;boxes.png&quot;. Because label objects are displayed in a separate 2D transparent canvas in front of the 3D canvas, labels are not displayed in a captured scene. If you need text to be part of the captured scene, use the 3D text() object. This currently works in Chrome but not in some other browsers.</p>
87+
<p class="attributes"><span class="attribute">capture(filename) </span>Sends to your Download folder a png screen shot of the canvas. If filename is the string &quot;boxes&quot; or &quot;boxes.png&quot; the file will be named &quot;boxes.png&quot;. Because label objects are displayed in a separate 2D transparent canvas in front of the 3D canvas, labels are not displayed in a captured scene. If you need text to be part of the captured scene, use the 3D text() object.</p>
8888
<p class="attributes"><span class="attribute"><font color="#000000">To obtain the current location of the camera, <a href="#camera"><strong>see </strong></a></font></span><strong><a href="#camera">below</a></strong> for details of <span class="attribute">scene.camera.pos</span><font color="#000000">.</font></p>
8989
<p class="attributes"><span class="attribute">camera.follow</span> If you say <span class="attribute">scene.camera.follow(ball)</span>, the center of the scene will continually be reset to the current position of the ball object. To stop following the object, execute <span class="attribute">scene.camera.follow(None)</span>.</p>
9090
<p class="attributes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Instead of specifying an object to follow, you can provide a function of your own:</p>

docs/VPythonDocs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<p class="Normal">There is a series of <a href="https://phys221.wordpress.com/vpython-tutorials/" target="_blank"><strong>GlowScript VPython tutorials</strong></a> by Rhett Allain in the context of predicting motion computationally, at the level of an introductory physics course. Using tools at <a href="https://trinket.io" target="_blank"><strong>trinket.io</strong></a> it is easy to add both editing and execution of GlowScript VPython to your own web pages, and Allain in his physics blog for Wired magazine has shown examples of this.</p>
9999
<p class="Normal">&nbsp;</p>
100100
<p class="Normal"><strong><font color="#0000A0">Getting started</font></strong></p>
101-
<p class="Normal">To write a VPython program, sign in at glowscript.org. It is recommended to use the Chrome browser, as it provides the most useful error messages, though programs can be written and run in all browsers, including on smartphones and tablets. In some cases program errors are visible only if you press Shift-Ctrl-J to display the Chrome console.</p>
101+
<p class="Normal">To write a VPython program, sign in at glowscript.org. It is recommended to use the Chrome or Edge browser, as they provide the most useful error messages, though programs can be written and run in all browsers, including on smartphones and tablets. In some cases program errors are visible only if you press Shift-Ctrl-J to display the browser console.</p>
102102
<blockquote>
103103
<p class="Normal">* You will see the sentence &quot;You are signed in as &lt;your user name&gt; and your programs are <strong>here</strong>.&quot; Click on <strong>here</strong>.</p>
104104
<p class="Normal">* Click<strong> Create New Program</strong>, which will create a new program in your <strong>MyPrograms</strong> folder. (Programs in your <strong>Private</strong> folder are not accessible to others.) Choose a name for the program, which should not include spaces or underscores.</p>

docs/VPythonDocs/text_output.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ <h1 class="Heading-1"><font color="#0000a0">Additional text output methods</font
198198
<strong>A scalar 15 and a vector &lt; 10, 20, 30 &gt; </strong><br />
199199
Successive console.log outputs
200200
appear as new lines.</p>
201-
<p class="Normal">Using console.log requires opening the browser's &quot;console&quot;. To enable the console, in Chrome press shift-ctrl-j on Windows or Ubuntu, or option-cmd-j on Mac. In Firefox on Windows choose Firefox &gt; Web Developer &gt; Web Console, and on Ubuntu choose Tools &gt; Web Developer &gt; Web Console. The output will be found at the end of the console output</p>
201+
<p class="Normal">Using console.log requires opening the browser's &quot;console&quot;. To enable the console, in Chrome or Edge press shift-ctrl-j on Windows or Ubuntu, or option-cmd-j on Mac. In Firefox on Windows choose Firefox &gt; Web Developer &gt; Web Console, and on Ubuntu choose Tools &gt; Web Developer &gt; Web Console. The output will be found at the end of the console output</p>
202202
<p class="Normal">In some of these output options, to display the value of a vector <strong>v</strong> you have to write <strong>v.toString()</strong>, but this is done automatically by the <strong>print</strong> statement.</p>
203203
<p class="Normal">&nbsp;</p>
204204
<!-- InstanceEndEditable -->

0 commit comments

Comments
 (0)