-
Notifications
You must be signed in to change notification settings - Fork 3
Fix "No such file or directory" on Windows #24
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -47,7 +47,7 @@ | |||||
| let(:mock_stdout) { instance_double(IO, read: css_content) } | ||||||
| let(:mock_stderr) { instance_double(IO, read: error_message) } | ||||||
|
|
||||||
| let(:compile_command_regex) { /.+\/tailwindcss --input -$/ } | ||||||
| let(:compile_command_regex) { /.+\/tailwindcss"? --input -$/ } | ||||||
| let(:compile_arguments) { ["--input", "-"] } | ||||||
|
|
||||||
| before do | ||||||
|
|
@@ -121,7 +121,7 @@ | |||||
| } | ||||||
| } | ||||||
| end | ||||||
| let(:compile_command_regex) { /.+\/tailwindcss --input - --config tailwind.config.js$/ } | ||||||
| let(:compile_command_regex) { /.+\/tailwindcss"? --input - --config tailwind.config.js$/ } | ||||||
|
||||||
| let(:compile_command_regex) { /.+\/tailwindcss"? --input - --config tailwind.config.js$/ } | |
| let(:compile_command_regex) { /"?\/tailwindcss"? --input - --config tailwind.config.js$/ } |
Copilot
AI
Apr 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updated regex only checks for an optional trailing quote after 'tailwindcss'. To fully support cases where the executable is enclosed in quotes, update the regex to optionally match both leading and trailing quotes.
| let(:compile_command_regex) { /.+\/tailwindcss"? --input - --config other_location$/ } | |
| let(:compile_command_regex) { /.*\/"?tailwindcss"? --input - --config other_location$/ } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regex only accounts for an optional trailing quote after 'tailwindcss'. If the executable is fully quoted (with both leading and trailing quotes), this pattern may not match correctly. Consider updating the regex to optionally match both a leading and trailing quote.