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

Upgrade to v3 of the protocol #28

Closed
juanolon opened this issue Sep 28, 2024 · 5 comments
Closed

Upgrade to v3 of the protocol #28

juanolon opened this issue Sep 28, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@juanolon
Copy link

Hello,
I get the error proto: cannot parse reserved wire type when compiling a sass Source.
I have tried with dart-sass versions 1.79.2 and 1.79.3.
I guess, there is a version miss match for the proto protocol.. What version is currently used?
Thanks

@bep
Copy link
Owner

bep commented Sep 28, 2024

What version is currently used?

v2. I just had a look and they released a v3 a few weeks ago. If yo downgrade to <= 1.78.* it should work.

@bep bep changed the title proto error Upgrade to v3 of the protocol Sep 28, 2024
@bep bep self-assigned this Sep 28, 2024
@bep bep added the enhancement New feature or request label Sep 28, 2024
@bep
Copy link
Owner

bep commented Sep 28, 2024

v2. I just had a look and they released a v3 a few weeks ago. If yo downgrade to <= 1.78.* it should work.

As a side note, I find it rather odd that Sass uses semver major versions for the protocol that does not trickle up to the major version of the containing library.

bep added a commit that referenced this issue Sep 28, 2024
@juanolon
Copy link
Author

I did the downgrade, but still getting the same error. I even tried 1.63.2 (as in the workflows/test.yaml

@bep
Copy link
Owner

bep commented Sep 28, 2024

@juanolon then I suspect it must be "something else". I upgraded to the latest Sass versions locally (and in a PR) and the only failing test is the one testing for the protocol version string, and I think we have a pretty good test coverage. This library has a pretty large user base via Hugo, and I've not seen similar reports.

If you're familiar with Go, it would be good if you could clone this project and try go test ..

@juanolon
Copy link
Author

At the end, seems that i was using the wrong version of the library. Since i was starting the server with a custom sass path, i never did see the error

t, err := godartsass.Start(godartsass.Options{
	DartSassEmbeddedFilename: sassPath,
})

When i remove it, I notice that the required sass path was dart-sass-embedded.

Installing the newer version

go get github.com/bep/godartsass/v2

solve the problem. I believe version 2 would be a more fitting default, isn't it?

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

No branches or pull requests

2 participants