Iconv did not load, therefore we cannot convert the encoding GBK to UTF-8 #627

Closed
Snger opened this Issue Sep 1, 2013 · 10 comments

Projects

None yet

3 participants

Snger commented Sep 1, 2013
  1. docpad version 6.51.6

  2. node --version:v0.10.5

  3. npm --version:1.3.7

  4. sw_vers:

    ProductName: Mac OS X
    ProductVersion: 10.8.4
    BuildVersion: 12E3067

  5. What you did: specify the textEncoding to be GBK instead of utf8, like issues/411

  6. What happened :

    show "warning: Iconv did not load, therefore we cannot convert the encoding GBK to UTF-8 on ..."
    error: Something went wrong with the action
    error: An error occured:
    TypeError: Cannot read property 'cover' of undefined
    at Object.eval (eval at (/Users/.../node_modules/docpad-plugin-eco/node_modules/eco/lib/compiler.js:19:12), :45:45)

  7. What you expected:Make iconv install handled by DocPad itself issues468

Owner
balupton commented Sep 2, 2013

Can you try the following and let me know if it works.

Anywhere:

npm install -g coffee-script

In your home directory:

git clone https://github.com/bevry/docpad.git docpad
cd docpad
git checkout dev-iconvlite
npm install
cake compile
npm link

Inside your project directory:

npm install
npm link docpad
docpad run --global
@balupton balupton added a commit that referenced this issue Sep 2, 2013
@balupton balupton Implemented encoding dep for iconv light. So hopefully we can move aw…
…ay from the slow and windows only iconv dep for encoding. Ref #596. Possible fix to #627
0ca4b3e
Snger commented Sep 3, 2013

$ cake compile
-bash: cake: command not found

Contributor
greduan commented Sep 3, 2013

You gotta install the coffee-script package. sudo npm install -g coffee-script.

Snger commented Sep 3, 2013

@Greduan Thx.

Contributor
greduan commented Sep 3, 2013

No problem. I also ran across this problem the first time. :)

Owner
balupton commented Sep 3, 2013

Good catch, I've updated the instructions.

Is it working?

Snger commented Sep 3, 2013

Inside my project directory:

  1. npm install : (nothing happen? Oh, I had run rm -Rf node_modules; npm install )
  2. npm link docpad : unbuild docpad@6.51.6
  3. docpad run --global :
warning: Skipped the unsupported plugin: sitemap due to version-plugin
info: Welcome to DocPad v6.51.6
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: coffeescript, eco, less, livereload, marked, partials, stylus
info: Environment: development
info: DocPad listening to http://localhost:9005/ on directory /Users/.../out
info: LiveReload listening to new socket on channel /docpad-livereload with log level 1
info: Generating...
warning: Iconv did not load, therefore we cannot convert the encoding GBK to UTF-8 on footer.html.eco
warning: Iconv did not load, therefore we cannot convert the encoding GBK to UTF-8 on ga.html.eco
warning: Iconv did not load, therefore we cannot convert the encoding GBK to UTF-8 on head.html.eco
warning: Iconv did not load, therefore we cannot convert the encoding GBK to UTF-8 on header.html.eco
warning: Iconv did not load, therefore we cannot convert the encoding GBK to UTF-8 on nav.html.eco
warning: Iconv did not load, therefore we cannot convert the encoding GBK to UTF-8 on sidebar.html.eco
warning: Something went wrong while rendering: header.html.eco
warning: Something went wrong while rendering: section/about.html.eco
error: Something went wrong with the action
error: An error occured: 
TypeError: Cannot read property 'cover' of undefined
    at Object.eval (eval at <anonymous> (/Users/sim/.../node_modules/docpad-plugin-eco/node_modules/eco/lib/compiler.js:19:12), <anonymous>:45:45)
    at Object.eval (eval at <anonymous> (/Users/sim/...s/docpad-plugin-eco/node_modules/eco/lib/compiler.js:19:12), <anonymous>:87:8)
    at eval (eval at <anonymous> (/Users/sim/.../docpad-plugin-eco/node_modules/eco/lib/compiler.js:19:12), <anonymous>:89:6)
    at Function.eco.render (/Users/sim/.../node_modules/docpad-plugin-eco/node_modules/eco/lib/index.js:26:25)
    at EcoPlugin.render (/Users/sim/.../node_modules/docpad-plugin-eco/out/eco.plugin.js:22:35)
    at ambi (/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/ambi/out/lib/ambi.js:36:27)
    at Task.<anonymous> (/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/out/lib/event-emitter-grouped.js:37:21)
    at ambi (/usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/ambi/out/lib/ambi.js:21:27)
    at /usr/local/lib/node_modules/docpad/node_modules/event-emitter-grouped/node_modules/taskgroup/out/lib/taskgroup.js:82:19
    at process._tickDomainCallback (node.js:459:13)
info: Shutting down... cya next time!
Owner
balupton commented Sep 3, 2013

That's strange, can you add me on skype - username balupton - or google hangouts - balupton@gmail.com - and we'll debug?

Owner
balupton commented Sep 7, 2013

Any news on this? I'd still love to debug it with you...

@balupton balupton added a commit that referenced this issue Oct 23, 2013
@balupton balupton Implemented encoding dep for iconv light. So hopefully we can move aw…
…ay from the slow and windows only iconv dep for encoding. Ref #596. Possible fix to #627
d11890c
@balupton balupton closed this Oct 26, 2013
Owner

Released to v6.54.0 October 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment