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

Cannot read property 'error' of undefined #2565

Open
harmtemolder opened this issue Apr 14, 2021 · 1 comment
Open

Cannot read property 'error' of undefined #2565

harmtemolder opened this issue Apr 14, 2021 · 1 comment

Comments

@harmtemolder
Copy link

Description

When I try to run atom-beautify on a Markdown file I get this:

TypeError: Cannot read property 'error' of undefined
    at /Users/harmtemolder/.atom/packages/atom-beautify/src/beautifiers/remark.coffee:42:10
    at Promise._execute (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/debuggability.js:384:9)
    at Promise._resolveFromExecutor (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:518:18)
    at new Promise (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:103:10)
    at Remark.module.exports.Remark.beautify (/Users/harmtemolder/.atom/packages/atom-beautify/src/beautifiers/remark.coffee:36:12)
    at /Users/harmtemolder/.atom/packages/atom-beautify/src/beautifiers/index.coffee:363:28
    at tryCatcher (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromiseCtx (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:641:10)
    at _drainQueueStep (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:102:5)
    at Async.drainQueues (/Users/harmtemolder/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:15:14)

Looks like what happend in 2016 when a newer version Remark was included (#1196).

Steps to Reproduce

  1. Open any .md file
  2. Run command Atom Beautify: Beautify Editor
  3. Receive an Cannot read property 'error' of undefined error
  4. Setting “Default Beautifier” to “Tidy Markdown” instead of “Remark” fixes this

Debug

Here is a link to the debug.md Gist: https://gist.github.com/harmtemolder/d626240c35be8f91fdaf9ea2a493603a

@SilentGlasses
Copy link

If you still need this and are looking for something to fill the spot that Atom left, I am using Pulsar the successor to Atom... This package is working except for one deprecated error listed in #2605

If you don't need this anymore, can you please close this out so it's not just sitting there? Thanks

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