Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use 'slash' on input files before globbing to support absolute paths with backslashes on Windows#355

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
RyanZim merged 1 commit intopostcss:masterfrommatthias-christen:master
Oct 20, 2020

Conversation

matthias-christen
Copy link
Contributor

globby (used to glob input arguments to postcss-cli) only supports forward slashes.
In order to be able to provide absolute paths containing backslashes to the CLI on Windows, they need to be converted to forward slashes, otherwise postcss-cli terminates with the error message 'Input Error: You must pass a valid list of files to parse'.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 82.237% when pullinga0d4fb0 on matthias-christen:master intoc94c188 on postcss:master.

@RyanZim
Copy link
Collaborator

Forgive me for my ignorance (I've never actually run postcss on Windows), but why can't you just pass paths with forward slashes from the CLI?

@matthias-christen
Copy link
ContributorAuthor

matthias-christen commentedOct 19, 2020
edited
Loading

@RyanZim, on Windows, the natural directory separator is a backslash. For instance, if you tab-autocomplete a path in a Windows command line, it will convert forward slashes to backslashes. So, in particular for a command line tool, I think it is important to accept paths in the system's standard format.
What is really confusing currently: if you supply a (seemingly) perfectly valid absolute path to postcss, you'll get the error message "Input Error: You must pass a valid list of files to parse". I guess you could also adjust the error message that the user must enter forward slashes, but why not just do it right when the fix is so simple.

Copy link
Collaborator

@RyanZimRyanZim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Got it, tab-autocomplete. That makes sense; LGTM.

@RyanZimRyanZim merged commitc634575 intopostcss:masterOct 20, 2020
@RyanZim
Copy link
Collaborator

Will try to release this later this week.

matthias-christen reacted with hooray emoji

@RyanZim
Copy link
Collaborator

Eh, that was a bit longer than a week. Regardless, published in v8.2.0. 🚀

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@RyanZimRyanZimRyanZim approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@matthias-christen@coveralls@RyanZim

[8]ページ先頭

©2009-2025 Movatter.jp