-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
--features=regenerate-css does not work on nightly (Windows 10) #342
Comments
I'm sorry for the trouble! @budziq do you know more about this? |
I'll look into it. Althought I do not have access to Win 10 machine neither privately nor at work :/. The code does not look for @projektir could you post the full output of
and information:
If the TLNR; As a side note. In terms of the cmd stuff. As described in original issue https://github.com/azerupi/mdBook/issues/294 The usage of
If node changed its naming strategy or different executable files are present for npm and stylus we cam try to work around that. |
Oh, whoops, totally read
Also for reference, when I removed the I'm installing Ubuntu on a virtual machine. 😆 |
Yeah nib is just a library that stylus uses.
Hmmm. It looks like there is either a problem with the instalation or npm binary stoped setting proper process exit status.
Do you have the final error output handy? It might speed things up. It looks like npm cannot find / run stylus + nib internally which might be an installation problem or unlikely regression on their side.
Sorry for the problems and thanks for your time! Please note that on ubuntu npm and nodejs are installed separately via apt. |
Note that this is on a relatively fresh install of Windows, and with reinstalled Node with nothing else, so I seriously doubt there's a problem with the installation. Is there a different version of Node/
Not sure how useful it is:
|
I'm inclined to think the same but until I have access to some Win10 box this is my only lead except for changes in OS behaviour or bug in npm.
I'm verifying on Win7 pro and it works ok with following
I'm no I don't know your node version (it is bundled with node anyway) It looks that we can narrow the differences to:
I'm afraid that without access to a win10 box I'll not be able to go further here (I would not like to waste your time with remote debugging session as I've no actual experience with node/npm. I have originally rewritten the build.rs because it failed both on my Arch/Ubuntu and Win7 boxes ;) Setting appveyor windows 10 build might be worth a shot (but I don't know which windows server version would approximate your setup best). |
Well the output looks like stylus just does not work on your setup as it has problems with internal dependencies.
This is what the actual build.rs boils down to. |
@azerupi https://ci.appveyor.com/project/budziq/mdbook/build/1.0.2
Sadly, this is still not reproducible on the same nightly on my Win7 box 😞 @projektir I hope that you are compiling with rust nightly (otherwise I've no more leads). |
Aaaa, it is a nightly issue! Switched to stable and it works! Excellent detective work! I forget I'm even on nightly half the time and that it may cause issues. Interesting that this only fails on Win10, though, no idea what's going on there. |
Ha, exciting! I'll try to get my hands on a win10 box and debug a little (debugging via appveyor logs is far from painless ;) ) @azerupi I would motion to change this issue title and add a separate issue aimed at adding |
Done :) |
@azerupi I've posted the problem upstream rust-lang/rust#42791 |
mdBook uses custom Rust code to detect the presence of packages
stylus
andnib
. From what I can see, it expects to see filesstylus.cmd
andnib.cmd
. Whilestylus.cmd
is created when installing these packages,nib.cmd
is not, so the commandcargo build --features=regenerate-css
does not work and insists thatnib
is not installed.I've attempted installing the packages in different order, reinstalling these packages, fiddling with PATH, reinstalling Node, running everything as Administrator and not, etc. None of these actions have produced a
nib.cmd
file in myC:\Users\<username>\AppData\Roaming\npm
folder.Operating System: Windows 10
Node version: 6.11.0
npm -g list: https://gist.github.com/projektir/96825837c67028eea7d857a7dfb338f8
Is there any kind of workaround for this? Is there some way to force Node to provide me with the requested
.cmd
files? I don't know how to move past this and therefore work with CSS, which blocks #247.The text was updated successfully, but these errors were encountered: