redefinition of symbol named '$< ... >'
A compiler error that took me a while to figure out. So happy to share how to solve this.
Error:
Caused by empty files in a mojo module
Even if you delete the activations.mojo file now the compiler gets stuck in the same error. So you have to first clear the compiler cache:
delete
~/.modular/.mojo_cache
4 Replies
Maybe it will be better to report this as a bug?
Btw, same happened to me with cache not cleared, so definitely, there is a problem with that
Yeah i might do that
New github issue
https://github.com/modularml/mojo/issues/1140
GitHub
[BUG]: redefinition of symbol named '$< ... >' · Issue #1140 · modu...
Bug description A compiler error that took me a while to figure out how to work around it. Error: ./dainemo/utils/activations.mojo:0:0: error: redefinition of symbol named '$activations' ./...
Great, thank you 🙂