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 'getGrammar' of undefined #78

Open
jessehersch opened this issue Apr 16, 2021 · 2 comments
Open

Comments

@jessehersch
Copy link

I am just trying out atom and ran into this. May be doing something wrong?

  1. open a markdown file
  2. view->developer->toggle developer tools (just to get the error details)
  3. packages->tidy markdown
  4. observe the fail

Atom: 1.55.0 x64
Electron: 6.1.12
OS: Ubuntu 18.04.5
Thrown From: tidy-markdown package 3.0.1

Stack Trace

Uncaught TypeError: Cannot read property 'getGrammar' of undefined

At /home/jhersch/.atom/packages/tidy-markdown/lib/index.coffee:37

TypeError: Cannot read property 'getGrammar' of undefined
    at TidyMarkdown.run (/packages/tidy-markdown/lib/index.coffee:37:15)
    at /packages/tidy-markdown/lib/index.coffee:11:32)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:350382)
    at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:348857)
    at AtomEnvironment.dispatchApplicationMenuCommand (/usr/share/atom/resources/app/static/<embedded>:1:727610)
    at EventEmitter.t (/usr/share/atom/resources/app/static/<embedded>:1:735578)
    at EventEmitter.emit (events.js:200:13)
    at Object.onMessage (/usr/share/atom/resources/electron.asar/renderer/init.js:42:16)

Commands

     -8:31.5.0 core:save (input.hidden-input)
     -8:23.2.0 tidy-markdown:run (input.hidden-input)
  4x -6:35.5.0 markdown-preview-plus:toggle (input.hidden-input)
     -5:38 command-palette:toggle (input.hidden-input)
     -5:33.1.0 tidy-markdown:run (input.hidden-input)
     -1:59.4.0 window:toggle-dev-tools (div.panels-item)
     -1:09.3.0 tidy-markdown:run (input.hidden-input)

Non-Core Packages

language-markdown 0.37.0 
markdown-preview-plus 4.9.2 
markdown-writer 2.11.11 
tidy-markdown 3.0.1 
@jessehersch
Copy link
Author

oops looks like this is a dup of a 1 year old bug:
#77

I guess this is not maintained anymore. will uninstall.

@notslang
Copy link
Owner

Yeah, sorry - I switched to using vim so I probably won't be maintaining this.

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