Coder Social home page Coder Social logo

build panic: not a rvalue about slint HOT 1 CLOSED

lifeRobot avatar lifeRobot commented on September 21, 2024
build panic: not a rvalue

from slint.

Comments (1)

ogoffart avatar ogoffart commented on September 21, 2024

Thanks for the bug report.

I was able to reproduce with a minimal testcase:

export component DrawerLeft {
    private property <length> logic_width;
    rect := Rectangle {
        init => {
            logic_width = root.width;
        }
        @children
    }
}

export component A {
    hello := DrawerLeft { }
}

export component App inherits Window {
    world := A { }
}

From a first investigation, the problem is that the const_propagation::const_propagation pass introduces some Invalid expression in the init code. The init code is referencing property such as root.hello-width while at this point, it should be hello-3-width, so something went wrong in one of the compiler pass that had to move properties around.
I will have to investigate this further.

from slint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.