devtool icon indicating copy to clipboard operation
devtool copied to clipboard

Improving Windows Support

Open mattdesl opened this issue 9 years ago • 7 comments

Just tried on Windows and wow, I feel sorry for anybody developing on that OS. :cry:

  • [x] Disable web security by default for index.html to work on first run
  • [ ] Source maps are not working
  • [ ] All tests are failing because cross-spawn stdout is for some reason returning a zero length string (although it prints in terminal). Switching to child_process#spawn is throwing another error.
  • [ ] Can't use any piping like devtool foo.js > output.png with default cmd.exe
  • [ ] Can't use ./bin/index.js to run the examples in run scripts

Probably lots of other issues. But mostly the tool is working for debugging Node apps, which is a good start. :+1:

mattdesl avatar Jan 21 '16 22:01 mattdesl

I'm living this hell ...

C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\node_modules\electron-prebuilt\dist\resour…:127 Error: Implement me. Unknown stdin file type!(…)(anonymous function) @ C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\node_modules\electron-prebuilt\dist\resour…:127Module._compile @ module.js:425Module._extensions..js @ module.js:432Module.load @ module.js:356Module._load @ module.js:313Module.runMain @ module.js:457startup @ node.js:151(anonymous function) @ node.js:1007
C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\node_modules\electron-prebuilt\dist\resour…:128 Error: Implement me. Unknown stdin file type!
    at process.stdin (node.js:747)
    at hookProcess (C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\lib\preload.js:117)
    at C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\lib\preload.js:29
    at Object.<anonymous> (C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\lib\preload.js:129)
    at Module._compile (module.js:425)
    at Object.Module._extensions..js (module.js:432)
    at Module.load (module.js:356)
    at Function.Module._load (module.js:313)
    at Module.require (module.js:366)
    at require (module.js:385)(anonymous function) @ C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\node_modules\electron-prebuilt\dist\resour…:128Module._compile @ module.js:425Module._extensions..js @ module.js:432Module.load @ module.js:356Module._load @ module.js:313Module.runMain @ module.js:457startup @ node.js:151(anonymous function) @ node.js:1007

rafaelcastrocouto avatar Mar 01 '16 22:03 rafaelcastrocouto

Can you create a new issue with some more details on how to reproduce the issue? Thanks!

mattdesl avatar Mar 02 '16 00:03 mattdesl

It's done! https://github.com/Jam3/devtool/issues/42

rafaelcastrocouto avatar Mar 02 '16 00:03 rafaelcastrocouto

@rafaelcastrocouto Like an answer for "The Ultimate Question of Life, the Universe, and Everything" :smile:

Elnee avatar Mar 05 '16 18:03 Elnee

:whale2:

rafaelcastrocouto avatar Mar 05 '16 19:03 rafaelcastrocouto

Tried latest version on Windows. It is a bit unstable and slow and I can't use sourcemap unfortunately. Any known workaround for the sourcemap?

jbe456 avatar Aug 25 '16 16:08 jbe456

It would be a perfect tool in case you fix sourcemaps. At the moment source maps don't work for me on windows 10. I see only compiled code when run devtool -r babel-register ./es6-code. Please fix it if it's possible. And thanks a lot for your amazing work.

Darmikon avatar Apr 22 '17 18:04 Darmikon