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 while scanning for the next tokenfound character ` that cannot start any token on lin... #45

Open
Devopsdad opened this issue May 3, 2016 · 0 comments

Comments

@Devopsdad
Copy link

[Enter steps to reproduce below:]

  1. ... Open MD file
  2. ... Open MD preview (ctrl+shift+m)
  3. ... Modify MD file add characters and then delete the same characters
  4. ... Save the MD file

Atom Version: 1.7.3
System: Mac OS X 10.10.5
Thrown From: tidy-markdown package, v3.0.0

Stack Trace

Uncaught while scanning for the next token
found character ` that cannot start any token
on line 4, column 1

At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:1002

while scanning for the next token
found character ` that cannot start any token
  on line 4, column 1
    at ScannerError.YAMLError [as constructor] (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
    at ScannerError.MarkedYAMLError [as constructor] (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:90:45)
    at new ScannerError (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:23:49)
    at Constructor.global.Scanner.Scanner.fetch_more_tokens (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:240:13)
    at Constructor.global.Scanner.Scanner.check_token (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:115:14)
    at Constructor.global.Parser.Parser.parse_block_mapping_key (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:421:16)
    at Constructor.global.Parser.Parser.check_event (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:61:48)
    at Constructor.global.Composer.Composer.compose_mapping_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:143:20)
    at Constructor.global.Composer.Composer.compose_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:91:21)
    at Constructor.global.Composer.Composer.compose_mapping_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:145:27)
    at Constructor.global.Composer.Composer.compose_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:91:21)
    at Constructor.global.Composer.Composer.compose_document (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:64:19)
    at Constructor.global.Composer.Composer.get_single_node (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:51:25)
    at Constructor.global.BaseConstructor.BaseConstructor.get_single_data (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:76:19)
    at Object.global.load (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
    at parse (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
    at extractor (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
    at module.exports (/Users/dhill/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:235:13)
    at TidyMarkdown.run (/Users/dhill/.atom/packages/tidy-markdown/lib/index.coffee:40:17)
    at /Users/dhill/.atom/packages/tidy-markdown/lib/index.coffee:21:12
    at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:828:18)
    at /Users/dhill/.atom/packages/tidy-markdown/lib/index.coffee:19:14
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1091:20)
    at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1083:19)
    at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:660:26)
    at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:718:18)
    at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:701:19)
    at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:684:35)
    at atom-workspace.commandRegistry.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:214:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

  7x -0:02.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:00.6.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
language-ansible, v0.1.3
language-cloudslang, v0.2.1
language-hcl, v0.2.0
language-puppet, v0.19.1
tidy-markdown, v3.0.0

# Dev
No dev packages
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

1 participant