tidy-markdown icon indicating copy to clipboard operation
tidy-markdown copied to clipboard

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

Open sebw opened this issue 10 years ago • 0 comments

[Enter steps to reproduce below:]

  1. edit a markdown text looking like this

Hébergement :

Motel 6 Chambre 248 3900 E Mulberry St, Fort Collins, CO 80524 67.30 USD

  1. save, it crashes
  2. if I remove the codeblock, it works.

Atom Version: 1.0.7 System: Mac OS X 10.10.4 Thrown From: tidy-markdown package, v1.0.0

Stack Trace

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

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

while scanning for the next token
found character ` that cannot start any token
  on line 3, column 1
  at ScannerError.YAMLError (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/errors.js:70:46)
  at ScannerError.MarkedYAMLError (/Users/sw/.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/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:23:49)
  at Constructor.Scanner.Scanner.fetch_more_tokens (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:241:13)
  at Constructor.Scanner.Scanner.check_token (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/scanner.js:116:14)
  at Constructor.Parser.Parser.parse_block_mapping_value (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:447:19)
  at Constructor.Parser.Parser.check_event (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/parser.js:62:48)
  at Constructor.Composer.Composer.compose_node (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:73:16)
  at Constructor.Composer.Composer.compose_mapping_node (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:146:27)
  at Constructor.Composer.Composer.compose_node (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:92:21)
  at Constructor.Composer.Composer.compose_document (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:65:19)
  at Constructor.Composer.Composer.get_single_node (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/composer.js:52:25)
  at Constructor.BaseConstructor.BaseConstructor.get_single_data (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/constructor.js:77:19)
  at Object.load (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/node_modules/yaml-js/lib/yaml.js:112:20)
  at parse (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:28:27)
  at extractor (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/node_modules/front-matter/index.js:21:34)
  at module.exports (/Users/sw/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:274:13)
  at Object.module.exports.run (/Users/sw/.atom/packages/tidy-markdown/lib/index.coffee:49:17)
  at /Users/sw/.atom/packages/tidy-markdown/lib/index.coffee:30:12
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:755:18)
  at /Users/sw/.atom/packages/tidy-markdown/lib/index.coffee:28:14
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1000:20)
  at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:992:19)
  at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:579:26)
  at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:539:18)
  at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:522:19)
  at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:609:35)
  at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:293:30)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241: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:524:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)

Commands

     -0:41.7.0 core:save (atom-text-editor.editor.is-focused)
  2x -0:24.7.0 markdown-writer:insert-new-line (atom-text-editor.editor.is-focused)
     -0:23.3.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -0:22.5.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:22.5.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:21.5.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -0:18.4.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:18.4.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:16.5.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:16.5.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
  3x -0:15.7.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
markdown-writer, v1.8.1
tidy-markdown, v1.0.0

# Dev
No dev packages

sebw avatar Aug 15 '15 10:08 sebw