Compiler Warnings in Resources

Hi, I'm getting compiler warnings stating that I have unused aliases in my Resources but when I remove them I get compile errors because it can't find the module. Is it possible that this has something to do with how the resources get compiled?
2 Replies
minib
minib3y ago
I have the same issue.
ZachDaniel
ZachDaniel3y ago
This is actually something we can't really do anything about for now. We have compile time optimizations in place for specific options, like calculations/preparations, to avoid a network of compile time dependencies causing issues like deadlocks and that kind of thing. I have some ideas of how it might be fixes, but for now the only thing you can do unfortunately is mark those aliases with warn: false, i.e
alias MyApp.MyResource.Calculations, warn: false

...
calculate :calc, :type, Calculations.Foo
alias MyApp.MyResource.Calculations, warn: false

...
calculate :calc, :type, Calculations.Foo
I'll close this for now, because realistically it won't be fixed soon Still haven't figured out how to retain the optimization but not incur the compile time links

Did you find this page helpful?