tonistiigi / styler

CSS/Stylus live editor
MIT License
133 stars 9 forks source link

v0.10.26 compatibility #18

Closed federomano closed 10 years ago

federomano commented 10 years ago

(OSX Mavericks running Ampps with Apache and Mysql)

when i type styler in terminal, the following shows

┌──────────────────────────────────────────────────────┐
│ Please open http://localhost:5100/ to get started    │
└──────────────────────────────────────────────────────┘
path.existsSync is now called `fs.existsSync`.
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at exports.join (path.js:358:36)
    at exports.send (/usr/local/lib/node_modules/styler/node_modules/express/node_modules/connect/lib/middleware/static.js:129:20)
    at ServerResponse.res.sendfile (/usr/local/lib/node_modules/styler/node_modules/express/lib/response.js:186:3)
    at /usr/local/lib/node_modules/styler/lib/backend/server.js:155:16
    at callbacks (/usr/local/lib/node_modules/styler/node_modules/express/lib/router/index.js:272:11)
    at param (/usr/local/lib/node_modules/styler/node_modules/express/lib/router/index.js:246:11)
    at pass (/usr/local/lib/node_modules/styler/node_modules/express/lib/router/index.js:253:5)
    at Router._dispatch (/usr/local/lib/node_modules/styler/node_modules/express/lib/router/index.js:280:5)

If i try to access to localhost:5100 it shows a loading circle. However, the extension says Styler is running (blue icon), and if i click on "Start using Styler in this site" the new windows opens, but it shows the same loading circle forever. Also terminal shows this new line: info: Client connected id=9157548, project=0, url=http://www.mydomain.dev/

Am i doing something wrong? Thanks for your answers

federomano commented 10 years ago

Update:

If i start Styler with sudo, it doesnt throw any errors, as following

┌──────────────────────────────────────────────────────┐
│ Please open http://localhost:5100/ to get started    │
└──────────────────────────────────────────────────────┘
path.existsSync is now called `fs.existsSync`.

But trying to access Styler homepage or "Start using Styler on this page" shows me the loading circle anyway Also tried changing port and the same happens

federomano commented 10 years ago

Another comment. Chrome's console shows the following

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://localhost:5100/vendor/jade.js
Uncaught Error: Load timeout for modules: vendor/jade 
http://requirejs.org/docs/errors.html#timeout require.js:79
makeError require.js:79
checkLoaded require.js:1055
(anonymous function)
tonistiigi commented 10 years ago

Can you try using Node v0.8.x? Something broke with v0.10 but I haven't had time to investigate.

federomano commented 10 years ago

Yes! I'll try it. Just let me learn how do i get to do that and i'll tell you the results. :)

federomano commented 10 years ago

You were right, it worked. Thanks a lot, i hope you can make it work in newer versions, but for now i can live with it, because its an AMAZING software.

tonistiigi commented 10 years ago

I published v0.0.14 with node-v0.10 support. See if that works for you.

Dev mode only for now.

federomano commented 10 years ago

Tried and seems to work perfect for me, do you want for me to do any particular test?

tonistiigi commented 10 years ago

No, thats ok!