APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

EJSs Plotting Issue

Return to the EJS Modeling forum
Login to post to this thread

Plotting Issue
Nick Gross
17 Posts

Hi Everyone,
Attached is the simplest possible plotting program that fails on my Mac OS 10.9.2
I just verified that I have the latest version of Java (V7.55)

I get the following errors in the Output window when I run it.  It is either a bug or I have missed something blindingly obvious.
Any thoughts?

====
Lint error: Expected '(' and instead saw '-'.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected ')' to match '-' from line 57 and instead saw '('.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected '{' and instead saw '_topFrame'.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Missing semicolon.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected an identifier and instead saw ')'.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Missing semicolon.
function Test-Plot_View (_topFrame,_viewNumber,_libraryPath,_codebasePath) {
Lint error: Expected '(' and instead saw '-'.
function Test-Plot_View_0 (_topFrame) {
Lint error: Expected ')' to match '-' from line 70 and instead saw '('.
function Test-Plot_View_0 (_topFrame) {
Lint error: Expected '{' and instead saw '_topFrame'.
function Test-Plot_View_0 (_topFrame) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot_View_0 (_topFrame) {
Lint error: Missing semicolon.
function Test-Plot_View_0 (_topFrame) {
Lint error: Expected an identifier and instead saw ')'.
function Test-Plot_View_0 (_topFrame) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot_View_0 (_topFrame) {
Lint error: Missing semicolon.
function Test-Plot_View_0 (_topFrame) {
Lint error: Expected '(' and instead saw '-'.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Expected ')' to match '-' from line 86 and instead saw '('.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Expected '{' and instead saw '_topFrame'.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Missing semicolon.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Expected an identifier and instead saw ')'.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Expected an assignment or function call and instead saw an expression.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Missing semicolon.
function Test-Plot(_topFrame,_libraryPath,_codebasePath) {
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _play() { _model.play(); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _pause() { _model.pause(); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _step() { _model.pause(); _model.step(); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _reset() { _model.reset(); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _update() { _model.update(); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _initialize() { _model.initialize(); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _setFPS(_fps) { _model.setFPS(_fps); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _setDelay(_delay) { _model.setDelay(_delay); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _setStepsPerDisplay(_spd) { _model.setStepsPerDisplay(_spd); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _setUpdateView(_updateView) { _model.setUpdateView(_updateView); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _setAutoplay(_auto) { _model.setAutoplay(_auto); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _println(_message) { console.log(_message); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _breakAfterThisPage() { _model.setShouldBreak(true); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _resetSolvers() { _model.resetSolvers(); }
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  function _initializeSolvers() {
Lint error: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.


Current Replies - View all
Re: Plotting Issue   (Francisco Esquembre - )
Re: Re: Plotting Issue   (Nick Gross - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book