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

Can not load theme if path contain something like '[]' #1133

Closed
eromoe opened this issue Mar 23, 2015 · 5 comments
Closed

Can not load theme if path contain something like '[]' #1133

eromoe opened this issue Mar 23, 2015 · 5 comments

Comments

@eromoe
Copy link

eromoe commented Mar 23, 2015

E:\[Sync]\GitHub\site>hexo server
INFO  Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.
ERROR Asset render failed: css/style.css
Error: E:\[Sync]\GitHub\site\themes\jacman\source\css\style.styl:19:27
   15| if fancybox
   16|   @import '_partial/gallery'
   17|
   18| if totop
   19|   @import '_partial/totop'
---------------------------------^

failed to locate @import file E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\functions.
styl

    at Evaluator.visitImport (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\ev
aluator.js:897:21)
    at Evaluator.Visitor.visit (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\
index.js:28:40)
    at Evaluator.visit (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluato
r.js:153:18)
    at Evaluator.visitRoot (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\eval
uator.js:689:27)
    at Evaluator.Visitor.visit (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\
index.js:28:40)
    at Evaluator.visit (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evaluato
r.js:153:18)
    at Evaluator.evaluate (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\visitor\evalu
ator.js:229:15)
    at Renderer.render (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\node_modules\stylus\lib\renderer.js:86:2
6)
    at Hexo.module.exports (E:\[Sync]\GitHub\site\node_modules\hexo-renderer-stylus\lib\renderer.js:45:6)
    at Hexo.tryCatcher (E:\[Sync]\GitHub\site\node_modules\hexo\node_modules\bluebird\js\main\util.js:24:31)
    at Hexo.ret (eval at <anonymous> (E:\[Sync]\GitHub\site\node_modules\hexo-deployer-openshift\node_modules\hexo-fs\no
de_modules\bluebird\js\main\promisify.js:154:12), <anonymous>:13:39)
    at E:\[Sync]\GitHub\site\node_modules\hexo\lib\hexo\render.js:51:21
    at tryCatcher (E:\[Sync]\GitHub\site\node_modules\hexo\node_modules\bluebird\js\main\util.js:24:31)
    at Promise._settlePromiseFromHandler (E:\[Sync]\GitHub\site\node_modules\hexo\node_modules\bluebird\js\main\promise.
js:454:31)
    at Promise._settlePromiseAt (E:\[Sync]\GitHub\site\node_modules\hexo\node_modules\bluebird\js\main\promise.js:530:18
)
    at Promise._settlePromises (E:\[Sync]\GitHub\site\node_modules\hexo\node_modules\bluebird\js\main\promise.js:646:14)

    at Async._drainQueue (E:\[Sync]\GitHub\site\node_modules\hexo\node_modules\bluebird\js\main\async.js:79:16)
    at Async._drainQueues (E:\[Sync]\GitHub\site\node_modules\hexo\node_modules\bluebird\js\main\async.js:89:10)
    at Async.drainQueues (E:\[Sync]\GitHub\site\node_modules\hexo\node_modules\bluebird\js\main\async.js:14:14)
    at process._tickCallback (node.js:355:11)

It is working under E:\xxx\site>hexo server but E:\[Sync]\GitHub\site>hexo server

@Xuanwo
Copy link
Contributor

Xuanwo commented Apr 10, 2015

why do you need a [].....

@eromoe
Copy link
Author

eromoe commented Jun 12, 2015

[ would place this folder on the top (windows explorer, first special char would be order higher)
Just make this folder easy to see and find...

@Xuanwo
Copy link
Contributor

Xuanwo commented Jun 12, 2015

e, remove it and try again?

maybe [] is special in nodejs, so...

will, let's have a try, wait for a minute..

@Xuanwo
Copy link
Contributor

Xuanwo commented Jun 12, 2015

failed to locate @import file C:\Users\Xuanwo\Desktop\[xxx]\hexo\node_modules\he
xo-renderer-stylus\node_modules\stylus\lib\functions.styl

It seems like the stylus render can't load file in a directory with []

I make a issue for hexo-render-stylus

And this issue tells me that the world is so huge...

@leesei
Copy link
Member

leesei commented Jul 16, 2015

Closing this one.
We can use Issue Mover for GitHub.

@leesei leesei closed this as completed Jul 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants