I can't open .qml in vscode
-
wrote on 12 Jan 2024, 11:57 last edited by
I have python 3.11.4, I have qt 6.6.1 and qt quick installed, I have pyside6, I have the 'qt for python', 'qt tools' extensions, I tried installing almost all 'qml' extensions, none of them worked. I tried adding the paths of executables related to qml to the environment variables:
D:\Qt\6.6.1\mingw_64\bin
D:\Qt2\Tools\QtDesignStudio\qt6_design_studio_reduced_version\binit didn't work. I don't know what to do...
I installed qt in the D:\Qt folder and the qt quick extension in the D:\Qt2 folder because it wouldn't allow it to be installed in the same folder. I don't know if I should install it in a specific folder within D:\Qt, but I added the D:\Qt2 bin path to the environment variables too
I even tried adding these paths:
"qtForPython.qml.path": "D:/Qt/6.6.1/mingw_64/qml",
"qtForPython.qmlformat.path": "D:/Qt/6.6.1/mingw_64/bin/qmlformat.exe"
to settings.json, nothing changed:
Expected token `numeric literal'
There is nothing written in the .qml file and it does not recognize it
-
I have python 3.11.4, I have qt 6.6.1 and qt quick installed, I have pyside6, I have the 'qt for python', 'qt tools' extensions, I tried installing almost all 'qml' extensions, none of them worked. I tried adding the paths of executables related to qml to the environment variables:
D:\Qt\6.6.1\mingw_64\bin
D:\Qt2\Tools\QtDesignStudio\qt6_design_studio_reduced_version\binit didn't work. I don't know what to do...
I installed qt in the D:\Qt folder and the qt quick extension in the D:\Qt2 folder because it wouldn't allow it to be installed in the same folder. I don't know if I should install it in a specific folder within D:\Qt, but I added the D:\Qt2 bin path to the environment variables too
I even tried adding these paths:
"qtForPython.qml.path": "D:/Qt/6.6.1/mingw_64/qml",
"qtForPython.qmlformat.path": "D:/Qt/6.6.1/mingw_64/bin/qmlformat.exe"
to settings.json, nothing changed:
Expected token `numeric literal'
There is nothing written in the .qml file and it does not recognize it
@Trent-Treborn What exactly does not work?
QML files are simple text files. -
@Trent-Treborn What exactly does not work?
QML files are simple text files.wrote on 12 Jan 2024, 13:15 last edited by@jsulm It's as if vscode didn't recognize .qml as a valid extension and didn't compile it. But I have already installed several qml extensions. I found the installation management and I'm going to try to install all the Qt quick 3d files in the same folder but I don't think that's the problem
-
@jsulm It's as if vscode didn't recognize .qml as a valid extension and didn't compile it. But I have already installed several qml extensions. I found the installation management and I'm going to try to install all the Qt quick 3d files in the same folder but I don't think that's the problem
@Trent-Treborn Still not sure what the problem is. QML is not compiled but interpreted (you can compile QML if you have commercial license, but it is not necessary).
-
@Trent-Treborn Still not sure what the problem is. QML is not compiled but interpreted (you can compile QML if you have commercial license, but it is not necessary).
wrote on 12 Jan 2024, 13:27 last edited by -
@Trent-Treborn Still not sure what the problem is. QML is not compiled but interpreted (you can compile QML if you have commercial license, but it is not necessary).
wrote on 12 Jan 2024, 13:40 last edited by -
@Trent-Treborn What happens if you put some valid QML code into the file?
-
@Trent-Treborn What happens if you put some valid QML code into the file?
wrote on 12 Jan 2024, 15:09 last edited by@jsulm lol thank you very much. I would never imagine that it would be because the file was empty. By default this usually doesn't happen and when you open a file and there's an error it's because something isn't working, so I thought it wouldn't even work
-
1/8