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: Cannot read property 'expand' of undefined #27

Open
nadeemja opened this issue May 27, 2016 · 2 comments
Open

Uncaught TypeError: Cannot read property 'expand' of undefined #27

nadeemja opened this issue May 27, 2016 · 2 comments

Comments

@nadeemja
Copy link

nadeemja commented May 27, 2016

[Enter steps to reproduce below:]

  1. Enable: CTRL-ALT-O
  2. Click a collection file in Configs -> lib -> collections

Atom Version: 1.7.4
System: Mac OS X 10.11.5
Thrown From: mantrajs package, v0.4.4

Stack Trace

Uncaught TypeError: Cannot read property 'expand' of undefined

At /Users/Nadeem/.atom/packages/mantrajs/lib/directoryHandler.coffee:87

TypeError: Cannot read property 'expand' of undefined
    at Function.module.exports.DirectoryHandler.revealActiveFile (/Users/Nadeem/.atom/packages/mantrajs/lib/directoryHandler.coffee:87:15)
    at HTMLLIElement.<anonymous> (/Users/Nadeem/.atom/packages/mantrajs/lib/mantra-pane-view.coffee:65:24)
    at HTMLLIElement.jQuery.event.dispatch (/Users/Nadeem/.atom/packages/mantrajs/node_modules/space-pen/vendor/jquery.js:4681:9)
    at HTMLLIElement.elemData.handle (/Users/Nadeem/.atom/packages/mantrajs/node_modules/space-pen/vendor/jquery.js:4359:28)

Commands

     -1:06.2.0 application:add-project-folder (atom-text-editor.editor.is-focused)
     -0:59.9.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:56.3.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:56.3.0 core:cancel (atom-text-editor.editor.mini.is-focused)
  3x -0:50.2.0 mantrajs:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "spell-check"
    ],
    "packagesWithKeymapsDisabled": [
      "atom-lupa",
      "tool-bar",
      "sync-settings",
      "atom-ternjs"
    ]
  }
}

Installed Packages

# User
Quick-JavaScript, v0.16.0
atom-bracket-highlight, v0.3.1
atom-ternjs, v0.14.1
autocomplete-modules, v1.4.1
docblockr, v0.7.3
emmet, v2.4.3
emmet-snippets-compatibility, v1.0.6
formatter, v2.12.3
formatter-jsbeautify, v1.0.2
highlight-column, v0.5.1
highlight-line, v0.11.1
language-babel, v2.24.1
lebab-convert, v0.9.0
linter, v1.11.4
linter-codeclimate, v0.1.2
linter-eslint, v7.2.2
linter-jscs, v4.0.2
mantrajs, v0.4.4
meteor-api, v2.20.0
opened-files, v0.3.6
react, v0.15.0
sync-settings, v0.7.2
tool-bar, v0.4.0
tool-bar-almighty, v0.6.1
underscorejs-snippets, v0.2.2

# Dev
No dev packages
@macrozone
Copy link
Contributor

It seems this happens if you toggle the project directory:

No exception if you click on a file:

bildschirmfoto 2016-06-08 um 14 29 39

Throws exception when you click on a file:

bildschirmfoto 2016-06-08 um 14 29 50

@Mokto
Copy link
Contributor

Mokto commented Jun 12, 2016

Having this issue as well. But when I select a file in a module.

It prevents me from using this great plugin :(

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

3 participants