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

Uncaught TypeError: editor.createFold is not a function #36

Open
jbaayen opened this issue Apr 12, 2017 · 1 comment
Open

Uncaught TypeError: editor.createFold is not a function #36

jbaayen opened this issue Apr 12, 2017 · 1 comment

Comments

@jbaayen
Copy link

jbaayen commented Apr 12, 2017

[Enter steps to reproduce:]

  1. Load a Modelica file
  2. Select "Toggle annotations"

Atom: 1.15.0 x64
Electron: 1.3.13
OS: Mac OS X 10.11.6
Thrown From: language-modelica package 0.5.1

Stack Trace

Uncaught TypeError: editor.createFold is not a function

At /Users/jorn.baayen/.atom/packages/language-modelica/lib/modelica.coffee:64

TypeError: editor.createFold is not a function
    at Object.toggleallannotations (/packages/language-modelica/lib/modelica.coffee:64:12)
    at /packages/language-modelica/lib/modelica.coffee:15:106)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:3:59)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/app.asar/src/command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/app.asar/src/atom-environment.js:1162:28)
    at EventEmitter.outerCallback (/app.asar/src/application-delegate.js:312:25)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -2:49.7.0 tree-view:remove-project-folder (span.name.icon.icon-file-directory)
  3x -2:47.7.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:50.4.0 window:toggle-full-screen (input.hidden-input)
  2x -1:13.8.0 core:backspace (input.hidden-input)
     -0:32 window:toggle-full-screen (input.hidden-input)
     -0:12.2.0 language-modelica:toggleallannotations (input.hidden-input)

Non-Core Packages

language-antlr4 0.1.0 
language-cmake 0.3.0 
language-csv 1.1.2 
language-cython 0.3.0 
language-latex 1.0.0 
language-modelica 0.5.1 
language-restructuredtext 1.1.0 
@thorade
Copy link
Collaborator

thorade commented Apr 18, 2017

Thanks for the report. I can reproduce the error, but I do not understand where it comes from.
The annotation view was implemented by @tshort, maybe he understands the error message?

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

2 participants