Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
Snger opened this Issue · 10 comments

3 participants

@Snger
  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
@balupton
Owner

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 referenced this issue from a commit
@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

$ cake compile
-bash: cake: command not found

@greduan

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

@greduan

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

@balupton
Owner

Good catch, I've updated the instructions.

Is it working?

@Snger

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!
@balupton
Owner

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

@balupton
Owner

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

@balupton balupton referenced this issue from a commit
@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
@balupton
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
Something went wrong with that request. Please try again.