-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
--import fails if CWD is not same as input file #1863
Comments
Cannot reproduce this with the latest version (0.50.0) on Mac. |
I've tested this with Win7, Stylus 0.50.0 and Node 0.12.0. Still can't reproduce. |
I have created a minimal example that reproduces the error. Suggestions on how to share the zip with you? (it's the build scripts plus nested folders/files) |
@mfrost66 send it to panyakor@gmail.com |
Ah, I see. The |
It's good to know what the issue is. It was failing intermittently for me as it depends on the CWD and whether the CWD has a matching filename. In my script, I process a tree of stylus files where the global --import file is the same file. The current implementation requires that I modify the import file path to be relative to the file being processed. At minimum, it would be good to note this in the --help documentation. Also, FYI, the "executable" portion of your web site (http://learnboost.github.io/stylus/docs/executable.html) is hard to read as the fixed width section prevents reading the content without horz scrolling. |
The --import command fails silently unless the CWD is the same as the input file. Examples below.
Import fails with no warning:
Import works as expected:
EDIT: Tested on Win 8.1 v0.50.0
The text was updated successfully, but these errors were encountered: