hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.49k stars 4.86k forks source link

using theme 'diasy', when hexo generate, error occurs #816

Closed Renzhh closed 9 years ago

Renzhh commented 10 years ago

Recently, I am trying to use hexo to deploy blog. When I choose theme 'diasy' and run command ‘hexo generate’, following information prompts:

Deprecation warning: moment().lang() is deprecated. Use moment().localeData() in stead.
[error] { name: 'HexoError',
reason: 'incomplete explicit mapping pair; a key node is missed',
mark:
{ name: null,
buffer: 'categories: Kategorien\nsearch: Suche\ntags: Tags\ntagcloud: Tag-C
loud\ntweets: Tweets\nprev: Vorherige Seite\nnext: Nächste Seite\ncomment: Komm
entare\narchive_a: Archiv\narchive_b: Archiv: %s\npage: Seite %d\nrecent_posts:
Neueste Artikel\n\u0000',
position: 180,
line: 9,
column: 17 },
message: 'Process failed: languages/de.yml',
domain:
{ domain: null,
_events: { error: [Function] },
_maxListeners: 10,
members: [ [Object] ] },
domainThrown: true,
stack: undefined }

and the languages/de.yml file is default and unmodified

"categories: Kategorien
search: Suche
tags: Tags
tagcloud: Tag-Cloud
tweets: Tweets
prev: Vorherige Seite
next: Nächste Seite
comment: Kommentare
archive_a: Archiv
archive_b: Archiv: %s
page: Seite %d
recent_posts: Neueste Artikel"

I have used several themes, but only this theme generates error information. I've asked the author of 'diasy' theme, he reponses with "no exception information".

Xuanwo commented 10 years ago

722

http://xuanwo.org/2014/08/14/hexo-usual-problem/#更新至2-8-X版本后,构建失败

Renzhh commented 10 years ago

@Xuanwo I have wrapped strings like this with quotation marks.

categories: Categories
search: Search
tags: Tags
tagcloud: "Tag Cloud"
tweets: Tweets
prev: Prev
next: Next
comment: Comments
archive_a: Archives
archive_b: "Archives: %s"
page: "Page %d"
recent_posts: "Recent Posts"

but still have previous errors (same). My hexo version see below:

E:\hexo>hexo -version
hexo: 2.8.2
os: Windows_NT 6.1.7601 win32 ia32
http_parser: 1.0
node: 0.10.29
v8: 3.14.5.9
ares: 1.9.0-DEV
uv: 0.10.27
zlib: 1.2.3
modules: 11
openssl: 1.0.1h
tommy351 commented 10 years ago

Did you do the same thing with languages/de.yml?

Renzhh commented 10 years ago

@tommy351 That solves my problem. I should modify all

.yml files.
frontEnd-fucker commented 10 years ago

@Renzhh did u mean we should modify all .yml even in the theme we dont use?

Xuanwo commented 10 years ago

@frontEnd-fucker We don't use doesn't mean the yml program don't use. Hexo will all the yml files in languages. You know, it's just my guess~

Renzhh commented 10 years ago

@frontEnd-fucker Actually, I modify all .yml files in languages of the theme I use. Then hexo can properly parse configuration files. It works.

frontEnd-fucker commented 10 years ago

@Renzhh u r right, there is no need to modify .yml files in other theme.. thx a lot,

Xuanwo commented 10 years ago

If question finished, please close the issues, THX ~