Closed tecc closed 1 year ago
Thanks for the bug report!
The problem here is that there is a global, but no component were declared. In that case there is nothing to generate. Your code should always contains at least component that would be generated.
Of course, we shouldn't panic, so the panic will be fixed with PR #2006 Thanks for reporting.
When trying to compile my project, I constantly get a
thread 'main' panicked at 'internal error: entered unreachable code'
error. For reference, I'm using Slint version 0.3.3 with thelog
, andslint-build
of the same version as well.This happens when I try to compile the following code:
It works if I exclude the
ShellTheme
declaration, or if I exclude everything but theShellTheme
declaration, but as soon as I add any other statement, it gives me an error.Cargo tells me this about the error:
The line where the error occurs is the following: https://github.com/slint-ui/slint/blob/69df22e2fb54a071f8baa4554e28fb1fe1f3ffe5/internal/compiler/llr/lower_to_item_tree.rs#L300 At a guess it's making an incorrect assumption that matching to a certain element base type is impossible?