Aerilius / sketchup-console-plus

A better Ruby Console and IDE for integrated development in SketchUp.
MIT License
39 stars 15 forks source link

ReferenceError: ace is not defined #41

Open alissa-huskey opened 1 year ago

alissa-huskey commented 1 year ago

Unexpected Behavior

Editor

Other

Error Message

After opening the Ruby Console+ window, the following error message appears:

(JavaScript) ReferenceError: ace is not defined
    at ~/Library/Application%20Support/SketchUp%202022/SketchUp/Plugins/ae_console/external/ace/mode-ruby_sketchup.js:1:1
(JavaScript) Error: Script error for "ace/mode/ruby_sketchup"
http://requirejs.org/docs/errors.html#scripterror
http://requirejs.org/docs/errors.html#scripterror
    at makeError (~/Library/Application%20Support/SketchUp%202022/SketchUp/Plugins/ae_console/external/requirejs/require.js:5:1067)
    at HTMLScriptElement.onScriptError (~/Library/Application%20Support/SketchUp%202022/SketchUp/Plugins/ae_console/external/requirejs/require.js:5:13218)

Environment Information

alissa-huskey commented 1 year ago

Just to add a little more detail, it is intermittent though happens more often than not. I'm pretty sure it's a race condition of some sort having to do with the load order of the ace library when loading the file mode-ruby_sketchup.js.