Skip to content
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

spaces not handled in directory names on windows #184

Closed
deyemiobaa opened this issue Jul 21, 2022 · 7 comments · Fixed by #197
Closed

spaces not handled in directory names on windows #184

deyemiobaa opened this issue Jul 21, 2022 · 7 comments · Fixed by #197
Labels
bug Something isn't working

Comments

@deyemiobaa
Copy link

Discussed in tailwindlabs/tailwindcss#8915

Originally posted by deyemiobaa July 21, 2022
Hello, I'm trying to set up a new rails project with rails new my_app --css tailwind && rails new my_app --css=tailwind but I keep getting an error
image

This same error also exists if I try to add tailwind-CSS manually using the steps specified in the documentation
image

I use a Windows 10 PC

@iliatalebzade
Copy link

The same thing is happening to me too and I'm using WSL Ubuntu on top of Windows10

@rafaelfranca rafaelfranca added the bug Something isn't working label Sep 1, 2022
@rafaelfranca
Copy link
Member

This is a bug in how the Windows paths are generated and escaped by the shell. The space in the folder name is what is making the tailwindcss CLI confused.

Which version of tailwindcss-rails is being used? Because this should have be fixed in #176

@iliatalebzade
Copy link

the version I used was 3.1.8

@rafaelfranca
Copy link
Member

Of tailwindcss-rails? There isn't a 3.1.8 version https://rubygems.org/gems/tailwindcss-rails

@iliatalebzade
Copy link

iliatalebzade commented Sep 2, 2022

Please excuse the delay, I gave you my tailwind version. tailwindcss-rails version is: 2.0.12

@flavorjones
Copy link
Member

flavorjones commented Sep 2, 2022

I think the issue here might be the tailwindcss wrapper script isn't preserving the quotes ...

This bug existing is more evidence that we really do need integration test coverage for the rake tasks. I'm going to take some time today to do that, so that we have a failing test for this that we can fix.

@flavorjones
Copy link
Member

Fix for this is up at #197

@flavorjones flavorjones changed the title Tailwindcss-rails throws error when setting up a new rails app spaces not handled in directory names on windows Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants