{@thread.name}

barnabasj
2023-01-24

barnabasj:

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?

minib:

I have the same issue.

ZachDaniel:

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

ZachDaniel:

I’ll close this for now, because realistically it won’t be fixed soon

ZachDaniel:

Still haven’t figured out how to retain the optimization but not incur the compile time links