Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: ace is not defined #41

Open
alissa-huskey opened this issue May 2, 2023 · 1 comment
Open

ReferenceError: ace is not defined #41

alissa-huskey opened this issue May 2, 2023 · 1 comment

Comments

@alissa-huskey
Copy link

alissa-huskey commented May 2, 2023

Unexpected Behavior

Editor

  • No Syntax highlighting
  • No auto-indenting or other formatting nicities
  • Autocomplete and tooltips are inconsistent--they seem not to appear on any attributes or methods after the first value. (ie, both will appear for Sketchup but not Sketchup.active_model)
  • No entity inspection

Other

  • When you click the ?, the Documentation window is blank

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

  • Machine: MacBook Pro 2021 (arm64, Apple M1 Max)
  • OS: macOS Ventura 13.2.1
  • SketchUp: SketchUp Pro 2022 Version 22.0.353, SketchUp Pro 2023 Version 23.0.418
  • Ruby Console+: 3.14, 3.17
  • RUBY_VERSION: 2.7.7
alissa-huskey added a commit to alissa-huskey/sketchup-console-plus that referenced this issue May 16, 2023
@alissa-huskey
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant