jekyll-atom icon indicating copy to clipboard operation
jekyll-atom copied to clipboard

Uncaught YAMLException: duplicated mapping key at line 60, column 1: plugins: [] ^

Open drake-mer opened this issue 6 years ago • 0 comments

  1. put many different entries for the same key in the _config.yml file
  2. select « create a new post » from the jekyll plugin. You are done

On the other side, the yaml is actually malformed, so that's pretty normal.

Atom: 1.25.0 x64 Electron: 1.8.4 OS: linux 4.14.23-1-lts Thrown From: jekyll package 2.1.0

Stack Trace

Uncaught YAMLException: duplicated mapping key at line 60, column 1: plugins: [] ^

At /home/david/.atom/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:171

YAMLException: duplicated mapping key at line 60, column 1:
    plugins:   []
    ^
    at generateError (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:165:10)
    at throwError (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:171:9)
    at storeMappingPair (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:308:7)
    at readBlockMapping (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:1071:9)
    at composeNode (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:1332:12)
    at readDocument (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:1492:3)
    at loadDocuments (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:1548:5)
    at load (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:1569:19)
    at Object.safeLoad (/packages/jekyll/node_modules/js-yaml/lib/js-yaml/loader.js:1591:10)
    at Object.handleConfigFileOpen (/packages/jekyll/lib/jekyll/utils.coffee:27:40)
    at /packages/jekyll/lib/jekyll/utils.coffee:22:21
    at FSReqWrap.oncomplete (fs.js:135:15)

Commands

     -2:58.9.0 core:confirm (input.hidden-input)
     -1:15.5.0 application:open-folder (ul.list-inline.tab-bar.inset-panel)
     -0:44.4.0 jekyll:new-post (div.tool-panel.tree-view)

Non-Core Packages

Hydrogen 2.3.0 
jekyll 2.1.0 

drake-mer avatar Mar 24 '18 13:03 drake-mer