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

Error: Could not find Sass file at 'C:\...\*.scss'. Migration failed! #190

Closed
frattaro opened this issue May 21, 2021 · 4 comments
Closed

Comments

@frattaro
Copy link

frattaro commented May 21, 2021

After installing sass-migrator via Chocolatey on windows 10, bypassing the bat filename error (#181) by running:

PS c:\my_code_dir> dir -recurse -include *.scss | %{c:\programdata\chocolatey\lib\sass-migrator\tools\sass-migrator.bat division ($_.FullName.substring(0, $_.FullName.length - $_.Name.length)+"*.scss")}

I get:

Error: Could not find Sass file at 'C:\.my_code_dir\..\*.scss'.
Migration failed!

Tried pointing directly at the file, or just pointing to the directory, or leaving the wildcard+extension absent, a la:

PS c:\my_code_dir> dir -recurse -include *.scss | %{c:\programdata\chocolatey\lib\sass-migrator\tools\sass-migrator.bat division $_.FullName}

PS c:\my_code_dir> dir -recurse -include *.scss | %{c:\programdata\chocolatey\lib\sass-migrator\tools\sass-migrator.bat division $_.FullName.substring(0, $_.FullName.length - $_.Name.length)}

PS c:\my_code_dir> dir -recurse -include *.scss | %{c:\programdata\chocolatey\lib\sass-migrator\tools\sass-migrator.bat division ($_.FullName.substring(0, $_.FullName.length - $_.Name.length)+"*")}

but same error.

@jathak
Copy link
Member

jathak commented May 21, 2021

When running it from Chocolatey, does <path to migrator bat> division **/*.scss work?

Dart's glob package only supports POSIX-style paths, so \* is interpreted a literal asterisk, rather than a path separator followed by a wildcard.

@jathak
Copy link
Member

jathak commented May 21, 2021

Actually, wait. The Chocolatey version is out of date (we haven't been able to publish new versions of it for a while). Can you try with the standalone release?

@frattaro
Copy link
Author

frattaro commented May 21, 2021

Yes -- standalone release worked via windows cmd (second one) with:

C:\my_code_dir>c:\users\afrattar\desktop\sass-migrator-1.4.0-windows-x64\sass-migrator\sass-migrator.bat division **/*
Error: Could not find Sass file at '.\.cache\.eslintrc.json'.
Migration failed!

C:\my_code_dir>c:\users\afrattar\desktop\sass-migrator-1.4.0-windows-x64\sass-migrator\sass-migrator.bat division **/*.scss

Thanks much

@frattaro
Copy link
Author

frattaro commented May 21, 2021

btw, the only thing i've ever needed chocolatey for is to install ruby so i could use a gem to get an .npmrc into a travis-ci secret. I can't imagine it's a huge loss :)

@jathak jathak closed this as completed May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants