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

Win 10: Querying --version Fails #914

Closed
tajmone opened this issue Dec 31, 2019 · 1 comment · Fixed by #920
Closed

Win 10: Querying --version Fails #914

tajmone opened this issue Dec 31, 2019 · 1 comment · Fixed by #920
Assignees
Labels

Comments

@tajmone
Copy link

tajmone commented Dec 31, 2019

Sass 1.24.0
Dart VM version: 2.7.0 on "windows_x64"

The --version option raises the following error (on both CMD and Bash):

$ sass --version
Unexpected exception:
Invalid argument (uri): Value must be a String or a Uri: null


package:path/src/context.dart 1064:3    _parseUri
package:path/src/context.dart 985:44    Context.fromUri
package:path/path.dart 420:32           fromUri
package:sass/src/executable.dart 127:7  _loadVersion
package:sass/src/executable.dart 45:19  main

Dart Sass installed via Chocolatey GUI.

@ngdangtu-vn
Copy link

I also got this problem in Linux OS at version 1.59.2. This happens because I compile the source to single exe file. While I don't have a solution to fix it programmatically, I went around the problem with this command:

dart compile exe --define=version=$(git describe --tags) ./bin/sass.dart -o ~/.local/bin/sass

I leave here as a note in case sb want to use single exe file on Linux like me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants