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 'invisibles' of undefined #179

Closed
furins opened this issue Dec 11, 2014 · 2 comments
Closed

Uncaught TypeError: Cannot read property 'invisibles' of undefined #179

furins opened this issue Dec 11, 2014 · 2 comments

Comments

@furins
Copy link

furins commented Dec 11, 2014

Uncaught TypeError: Cannot read property 'invisibles' of undefined

Atom Version: 0.156.0
System: Mac OS X 10.10.1
Thrown From: minimap package, v3.4.7

Steps To Reproduce

It appears visualizing .less files. It may happen both when opening them or when switching from a tab to another (but always when entering a .less file).

  • Sometimes an error rise in the console log, showing a stack trace like the one below.
  • Sometimes the minimap is empty until I scroll down the file. No errors in the console log in this case.
  • Sometimes it just works fine.

I can not exclude that this issue may arise also for other file types, if I'll observe the same behavior I'll add some comments, but at the moment this seems limited to .less files only.

Here are some of the plug-ins I've installed and that may be related to .less files:

  • autocomplete-plus 0.22.3
  • color picker 1.2.6
  • Language Less 0.21.0
  • Less autocompile 0.3.3
  • Linter less 0.3.1

Stack Trace

At /Users/stefano/.atom/packages/minimap/lib/minimap-render-view.coffee:441

TypeError: Cannot read property 'invisibles' of undefined
  at MinimapRenderView.module.exports.MinimapRenderView.drawLines (/Users/stefano/.atom/packages/minimap/lib/minimap-render-view.coffee:441:8)
  at MinimapRenderView.module.exports.MinimapRenderView.update (/Users/stefano/.atom/packages/minimap/lib/minimap-render-view.coffee:157:8)
  at MinimapRenderView.update (/Users/stefano/.atom/packages/minimap/lib/minimap-render-view.coffee:1:1)
  at MinimapRenderView.module.exports.MinimapRenderView.scrollTop (/Users/stefano/.atom/packages/minimap/lib/minimap-render-view.coffee:217:6)
  at MinimapView.module.exports.MinimapView.updatePositions (/Users/stefano/.atom/packages/minimap/lib/minimap-view.coffee:408:17)
  at MinimapView.module.exports.MinimapView.updateScrollY (/Users/stefano/.atom/packages/minimap/lib/minimap-view.coffee:390:6)
  at MinimapView.updateScrollY (/Users/stefano/.atom/packages/minimap/lib/minimap-view.coffee:1:1)
  at MinimapView.module.exports.MinimapView.updateScroll (/Users/stefano/.atom/packages/minimap/lib/minimap-view.coffee:401:6)
  at MinimapView.updateScroll (/Users/stefano/.atom/packages/minimap/lib/minimap-view.coffee:1:1)
  at /Users/stefano/.atom/packages/minimap/lib/minimap-view.coffee:299:8

thanks in advance :)

/cc @atom/core

@abe33
Copy link
Contributor

abe33 commented Dec 11, 2014

Thanks for the report, I'll take a look at that asap.

@furins
Copy link
Author

furins commented Dec 11, 2014

Thank you!
there is no rush at all since the error it is not so frequent and not critical (if I scroll down the code, the minimap appears).

I try to add some additional info:

  • it just occurred to me also with a plain javascript file. This means that the problem is more generic than for .less files only.
  • I haven't a precise idea of when the error appeared for the first time to me. I would exclude that it was present more than 10 days ago, possibly even a couple of days ago (but I didn't used atom daily this week). Thus if the issue is related to your plug-in, it should have appeared approximately with the latest 3.3.x releases or more probably after 3.4.0 release.
  • At the moment I do not have any noticeable issue with other plugins

I wonder if others have the same issue.

@abe33 abe33 closed this as completed in c0c30ee Dec 17, 2014
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