iissnan / hexo-theme-next

Elegant theme for Hexo.
http://notes.iissnan.com
MIT License
15.88k stars 3.62k forks source link

"hexo s" prompts YAMLException: bad indentation of a mapping entry #1999

Closed p18r closed 6 years ago

p18r commented 7 years ago

I agree and want to create new issue


Expected behavior

The 'Hexo s' would have no errors

Actual behavior

The 'Hexo s' have errors: YAMLException: bad indentation of a mapping entry at line 122, column 3: GitHub: https://github.com/you| ... ^ at generateError (/Users/name/Github/Hexo/xxx.github.io/node_modules/js-yaml/lib/js-yaml/loader.js:165:10) at throwError (/Users/name/Github/Hexo/xxx.github.io/node_modules/js-yaml/lib/js-yaml/loader.js:171:9) at readBlockMapping (/Users/name/Github/Hexo/xxx.github.io/node_modules/js-yaml/lib/js-yaml/loader.js:1080:7) at composeNode (/Users/name/Github/Hexo/xxx.github.io/node_modules/js-yaml/lib/js-yaml/loader.js:1332:12) at readDocument (/Users/name/Github/Hexo/xxx.github.io/node_modules/js-yaml/lib/js-yaml/loader.js:1492:3) at loadDocuments (/Users/name/Github/Hexo/xxx.github.io/node_modules/js-yaml/lib/js-yaml/loader.js:1548:5) at Object.load (/Users/name/Github/Hexo/xxx.github.io/node_modules/js-yaml/lib/js-yaml/loader.js:1569:19) at Hexo.yamlHelper (/Users/name/Github/Hexo/xxx.github.io/node_modules/hexo/lib/plugins/renderer/yaml.js:7:15) at Hexo.tryCatcher (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/util.js:16:23) at Hexo. (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/method.js:15:34) at /Users/name/Github/Hexo/xxx.github.io/node_modules/hexo/lib/hexo/render.js:61:21 at tryCatcher (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues (/Users/name/Github/Hexo/xxx.github.io/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5)

Steps to reproduce the behavior

  1. open ~/themes/next/_config.yml
  2. Remove the '#' from the line #GitHub: https://github.com/yourname || github
  3. save the file
  4. Hexo s
  5. Error prompts.

But if we still comment the line, it works.

Hexo Information

NexT Information

NexT Version:

[] Latest Master branch.
[x] Latest Release version.
[] Old version - 

git clone https://github.com/iissnan/hexo-theme-next themes/next by 2017.11.16

NexT Scheme:

[] All schemes
[] Muse
[x] Mist
[] Pisces
[] Gemini

Other Information

Holmeyoung commented 6 years ago

I have the same problem,and don't know what to do...

zhuzhuyule commented 6 years ago

plase check your posts !

ivan-nginx commented 6 years ago

Don't understand u, write in English if not solved. If solved, close it please. Thank's!

Also, if your issue refers to 6.x version, please, create issue in corresponding repository.

ivan-nginx commented 6 years ago

NexT is rebased into organization repo. If you want new feature, please, create new in NexT v6.x repo (desirable in English).

There is instructions on English or Chinese how to update from v5.1.x to v 6.0.x

You also may read this for details.