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

Throws exception at runtime with CoreRT #15

Open
ghost opened this issue Sep 12, 2020 · 1 comment
Open

Throws exception at runtime with CoreRT #15

ghost opened this issue Sep 12, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 12, 2020

Hello! When compiling my project, which makes use of this library, to a native binary using CoreRT, I get the following stack trace:

System.Exception: Method '[SharpScss]SharpScss.LibSass.sass_make_data_context(string)' requires marshalling that is not yet supported by this compiler.
   at SharpScss.LibSass.sass_make_data_context(String) + 0x30
   at SharpScss.Scss.FromCore(String, Boolean, ScssOptions) + 0xb5
   at Pigmeat.Program.Build(Boolean) + 0x3cf
   at Pigmeat.Program.Main(String[]) + 0x79

I know this sounds like a CoreRT problem, rather than anything to do with SharpScss, but, seeing as you're a way smarter guy than me, and you wrote this library, I have to ask: Is there a way I could work around this, or should I just wait for CoreRT to eventually support this use case? Could something be tweaked with SharpScss or your LibSass fork, or is this solely up to the CoreRT and LibSass maintainers?

@ghost
Copy link
Author

ghost commented Sep 12, 2020

I'm going to head to bed, I've been up for hours. Once I wake up, I'll try using LibSassHost instead, and I'll report back with my results. If it ends up working, that'd be really interesting.

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

0 participants