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

Upgrade to 6.5.0 occurs error, message: highlight-gutter has no property .color [solved] #480

Closed
5 of 11 tasks
shijiebei2009 opened this issue Nov 18, 2018 · 9 comments
Closed
5 of 11 tasks

Comments

@shijiebei2009
Copy link

shijiebei2009 commented Nov 18, 2018

I agree and want to create new issue


Expected behavior

Actual behavior

$ hexo s -g
INFO Start processing
ERROR Theme config load failed.
ERROR Process failed: _config.yml
Error
at generateError (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:162:10)
at throwError (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:168:9)
at storeMappingPair (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:307:7)
at readBlockMapping (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1070:9)
at composeNode (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1331:12)
at readDocument (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1493:3)
at loadDocuments (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1549:5)
at Object.load (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1566:19)
at Hexo.yamlHelper (D:\hexo\node_modules\hexo\lib\plugins\renderer\yaml.js:7:15)
at Hexo.tryCatcher (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\method.js:15:34)
at D:\hexo\node_modules\hexo\lib\hexo\render.js:61:21
at tryCatcher (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (D:\hexo\node_modules\hexo\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)
ERROR Asset render failed: css/main.css
Error: D:/hexo/themes/next-6.5.0/source/css/_common/components/highlight/highlight.styl:84:30
80|
81| .gutter pre {
82| padding-left: 10px
83| padding-right: 10px
84| color: $highlight-gutter.color
------------------------------------^
85| text-align: right
86| background-color: $highlight-gutter.bg-color
87| }

$highlight-gutter has no property .color
at ".gutter pre " (D:/hexo/themes/next-6.5.0/source/css/_common/components/highlight/highlight.styl:80:4)
at ".highlight " (D:/hexo/themes/next-6.5.0/source/css/_common/components/highlight/highlight.styl:38:2)

at Evaluator.visitMember (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:351:11)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitExpression (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:644:26)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitExpression (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:644:26)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitProperty (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:687:22)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitBlock (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:720:39)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitGroup (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:261:22)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitBlock (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:720:39)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitGroup (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:261:22)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitBlock (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:720:39)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.importFile (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:99:18)
at Evaluator.visitImport (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:920:27)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitBlock (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:720:39)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.importFile (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:99:18)
at Evaluator.visitImport (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:920:27)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitRoot (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:707:27)
at Evaluator.Visitor.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.evaluate (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluator.js:247:15)
at Renderer.render (D:\hexo\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\renderer.js:86:26)
at Hexo.module.exports (D:\hexo\node_modules\hexo-renderer-stylus\lib\renderer.js:53:6)
at Hexo.tryCatcher (D:\hexo\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.ret (eval at makeNodePromisifiedEval (C:\Users\WX\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:13:39)

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information

WX@WX-PC MINGW64 /d/hexo (master)
$ node -v
v7.10.1

WX@WX-PC MINGW64 /d/hexo (master)
$ npm -v
4.2.0

Package dependencies Information

$ cat package.json
{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.3.5"
  },
  "dependencies": {
    "es5-ext": "^0.10.35",
    "exec-buffer": "^0.1.1",
    "hexo": "^3.2.0",
    "hexo-deployer-git": "^0.3.0",
    "hexo-filter-optimize": "^0.1.3",
    "hexo-fs": "^1.0.0",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-baidu-sitemap": "^0.1.5",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.0",
    "hexo-generator-index": "^0.2.1",
    "hexo-generator-searchdb": "^1.0.8",
    "hexo-generator-sitemap": "^1.2.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-renderer-ejs": "^0.2.0",
    "hexo-renderer-marked": "^0.2.10",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.2.0",
    "hexo-symbols-count-time": "^0.2.0",
    "hexo-util": "^0.6.1",
    "highlight": "^0.2.4",
    "highlight.js": "^9.13.1"
  },
  "devDependencies": {
    "hexo-generator-baidu-sitemap": "^0.1.2"
  }
}

Hexo Information

Hexo version

$ hexo -v
hexo: 3.3.5
hexo-cli: 1.0.3
os: Windows_NT 6.1.7601 win32 x64
http_parser: 2.7.0
node: 7.10.1
v8: 5.5.372.43
uv: 1.11.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 51
openssl: 1.0.2k
icu: 58.2
unicode: 9.0
cldr: 30.0.3
tz: 2016j

Hexo Configuration

NexT Information

NexT Version:

  • Latest Master branch
  • Latest Release version
  • Old version

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces
  • Gemini

NexT Configuration:

Other Information

@shijiebei2009 shijiebei2009 changed the title upgrade to 6.5.0 occurs error upgrade to 6.5.0 occurs error, message: highlight-gutter has no property .color Nov 18, 2018
@shijiebei2009
Copy link
Author

hi, is there anybody can help me ?

@maple3142
Copy link
Contributor

Can you provide your _config.yml?
It seems like your configuration file is malformed.

@maple3142
Copy link
Contributor

maple3142 commented Nov 18, 2018

Paste your config file at js-yaml, and remove duplicate keys.

@norangLemon
Copy link

@maple3142 hello, I have similar problem.
Just in case, I attached my configs.

This is my config file.
I tried to find malformed part using js-yaml, which you mentioned, but I couldn't.

But using issnan/hexo-theme-next, my config works well.
Though it is a bit different from the config for theme-next/hexo-theme-next, most of the part is same.
And this is my blog powered by issnan's.

@maple3142
Copy link
Contributor

@norangLemon Can you elaborate which part doesn't work?
I suggest @shijiebei2009 to use it is because the error message provided by him said that it failed to parse _config.yml.
It looks like that your _config.yml it well formatted.

@norangLemon
Copy link

@maple3142 omg I failed to make this error again 😢
So sorry about this. 😭

@ivan-nginx
Copy link
Member

ivan-nginx commented Dec 12, 2018

@shijiebei2009 @norangLemon guys.
See here: https://github.com/theme-next/theme-next.org
This is NexT site source repo. Just follow this instructions and say us: site worked or not. Ok?

I don't understand how you getting same errors, but i think @maple3142 right – somehere in config wrong formatting.

@stale
Copy link

stale bot commented Jan 15, 2019

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Jan 15, 2019
@shijiebei2009
Copy link
Author

shijiebei2009 commented Jan 15, 2019

this is because configuration file is malformed. so this issue should be closed.

@Raincal Raincal closed this as completed Jan 15, 2019
@ivan-nginx ivan-nginx changed the title upgrade to 6.5.0 occurs error, message: highlight-gutter has no property .color Upgrade to 6.5.0 occurs error, message: highlight-gutter has no property .color [solved] Mar 4, 2019
wens07 pushed a commit to wens07/hexo-theme-next that referenced this issue May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants