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

thread safe function helpers #138

Merged
merged 1 commit into from
Aug 19, 2019
Merged

Conversation

ahorek
Copy link

@ahorek ahorek commented Aug 17, 2019

fixes rails/sprockets#581 sass/sassc-rails#121

I think there should be a better way to define custom functions, but unfortunatelly that would require changes in the API.

sprockets redefines functions which is super hacky
https://github.com/rails/sprockets/blob/1bcee8ebc03489eb7e42ee5c258a712443a6df3c/lib/sprockets/sassc_processor.rb#L58
https://github.com/rails/sprockets/blob/0cb3314368f9f9e84343ebedcc09c7137e920bc4/lib/sprockets/utils.rb#L126

@bolandrm
Copy link
Member

Thanks!

@bolandrm bolandrm merged commit 971cb10 into sass:master Aug 19, 2019
@ahorek
Copy link
Author

ahorek commented Aug 19, 2019

thanks @bolandrm !

It might be also related to #133 .

should it be even possible to use different functions in a different context?
https://github.com/rails/sprockets/blob/1bcee8ebc03489eb7e42ee5c258a712443a6df3c/lib/sprockets/sassc_processor.rb#L58

I think that code should be deprecated (functions shouldn't be mutated during runtime) or we have to figure out a better api to do this.

@schneems @glebm any thoughts on this?

@lostmahbles lostmahbles mentioned this pull request Aug 19, 2019
DavidKang pushed a commit to openSUSE/open-build-service that referenced this pull request Mar 20, 2020
The concurency was causing random failure when precompiling the assets.
This issue was fixed in [PR#138](sass/sassc-ruby#138).
DavidKang pushed a commit to DavidKang/open-build-service that referenced this pull request Mar 22, 2020
Concurrency are raising failure during the precompile.
There is an issue on sprocket related to this issue
rails/sprockets#581 and
sass/sassc-ruby#138.
DavidKang pushed a commit to DavidKang/open-build-service that referenced this pull request Mar 22, 2020
Concurrency are raising failure during the precompile.
There is an issue on sprocket related to this issue
rails/sprockets#581 and
sass/sassc-ruby#138.
DavidKang pushed a commit to openSUSE/open-build-service that referenced this pull request Mar 22, 2020
Concurrency are raising failure during the precompile.
There is an issue on sprocket related to this issue
rails/sprockets#581 and
sass/sassc-ruby#138.
DavidKang pushed a commit to DavidKang/open-build-service that referenced this pull request Mar 22, 2020
Concurrency are raising failure during the precompile.
There is an issue on sprocket related to this issue
rails/sprockets#581 and
sass/sassc-ruby#138.
DavidKang pushed a commit to openSUSE/open-build-service that referenced this pull request Mar 22, 2020
Concurrency are raising failure during the precompile.
There is an issue on sprocket related to this issue
rails/sprockets#581 and
sass/sassc-ruby#138.
DavidKang pushed a commit to DavidKang/open-build-service that referenced this pull request Mar 22, 2020
Concurrency are raising failure during the precompile.
There is an issue on sprocket related to this issue
rails/sprockets#581 and
sass/sassc-ruby#138.
DavidKang pushed a commit to DavidKang/open-build-service that referenced this pull request Mar 22, 2020
Concurrency are raising failure during the precompile.
There is an issue on sprocket related to this issue
rails/sprockets#581 and
sass/sassc-ruby#138.
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

Successfully merging this pull request may close these issues.

url helpers aren't thread safe
2 participants