Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in Window.qml: can't find ControlFlowWidget #345

Open
nbigaouette opened this issue Apr 30, 2018 · 2 comments
Open

Issue in Window.qml: can't find ControlFlowWidget #345

nbigaouette opened this issue Apr 30, 2018 · 2 comments

Comments

@nbigaouette
Copy link

I've followed the README to build panopticon (33ffec0) on macOS using homebrew (qt 5.10.1). panopticon fails to start:

> cargo run -p panopticon --release
warning: path `/Users/nicolas/panopticon.git/cli/src/main.rs` was erroneously implicitly accepted for binary `panop`,
please set bin.path in Cargo.toml
    Finished release [optimized] target(s) in 0.0 secs
     Running `target/release/panopticon`
QQmlApplicationEngine failed to load component
file:///Users/nicolas/panopticon.git/qml/Panopticon/Window.qml:173 ControlFlowWidget is not a type

Looking at the Window.qml file, I see a ControlFlowWidget QML component being instanciated, and I can see that the qml/Panopticon/ControlFlowWidget.qml file exists, but why can't it find it?

Also, the README mention launching the panopticon-qt crate, which does not exists:

> cargo run -p panopticon-qt --release
error: package `panopticon-qt` is not a member of the workspace

The first error happens when launching the panopticon crate instead.

@nbigaouette
Copy link
Author

It seems the qml files are not properly listed in qml/Panopticon/qmldir.

If I manually add them all, I can launch the UI successfully:

qml/Panopticon/qmldir
diff --git a/qml/Panopticon/qmldir b/qml/Panopticon/qmldir
index 9a1af07..463989a 100644
--- a/qml/Panopticon/qmldir
+++ b/qml/Panopticon/qmldir
@@ -1,6 +1,14 @@
 module Panopticon
+BasicBlock 1.0 BasicBlock.qml
 ColumnHeader 1.0 ColumnHeader.qml
+CommentOverlay 1.0 CommentOverlay.qml
+ControlFlowWidget 1.0 ControlFlowWidget.qml
+EditPopover 1.0 EditPopover.qml
+Label 1.0 Label.qml
+MessageBlock 1.0 MessageBlock.qml
+Monospace 1.0 Monospace.qml
+PreviewOverlay 1.0 PreviewOverlay.qml
 Sidebar 1.0 Sidebar.qml
 Welcome 1.0 Welcome.qml
 Window 1.0 Window.qml

Would it be that simple...?

Should qml/qmldir be adapted too?

@flanfly
Copy link
Member

flanfly commented May 2, 2018

Odd, it worked until recently. I guess Qt changed/fixed the semantics here.
EDIT: The module Panopticon should include Panopticon/qmldir, so no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants