discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Visual Studio Code annot find ui_Preferences.h .. anyone?

V
vulcan_@mac.com
Sat, Sep 27, 2025 6:42 PM

a lot of .cc files in src/core and src/gui include gui/Preferences.h .. which is getting found as i added

${workspaceFolder}/gui/**

to the include list for the repo.

but .. Visual Studio Code is complaining that P.h is including another file called ui_Preferences.h .. which it is not finding. There is however a file named Preferences.ui .. is there supposed to be a shell script or a macro run to change the name to be correct so the code can find its headers?

OR

should i correct the #include statements to use the correct (if it is correct?) filename

a lot of .cc files in src/core and src/gui include gui/Preferences.h .. which is getting found as i added ${workspaceFolder}/gui/\*\* to the include list for the repo. but .. Visual Studio Code is complaining that P.h is including another file called ui_Preferences.h .. which it is not finding. There is however a file named Preferences.ui .. is there supposed to be a shell script or a macro run to change the name to be correct so the code can find its headers? OR should i correct the #include statements to use the correct (if it is correct?) filename
TP
Torsten Paul
Sat, Sep 27, 2025 6:45 PM

On 27.09.25 20:42, vulcan_--- via Discuss wrote:

but .. Visual Studio Code is complaining that P.h is including another
file called ui_Preferences.h .. which it is not finding.

Those are generated via MOC https://doc.qt.io/qt-6/moc.html from the
*.ui files. So you have to build the project and they will show up
somewhere in the build output folder.

Did you install the cmake support plugin? I would assume that will
handle this automatically.

ciao,
Torsten.

On 27.09.25 20:42, vulcan_--- via Discuss wrote: > but .. Visual Studio Code is complaining that P.h is including another > file called ui_Preferences.h .. which it is not finding. Those are generated via MOC https://doc.qt.io/qt-6/moc.html from the *.ui files. So you have to build the project and they will show up somewhere in the build output folder. Did you install the cmake support plugin? I would assume that will handle this automatically. ciao, Torsten.
V
vulcan_@mac.com
Sat, Sep 27, 2025 7:51 PM

i thought it would be something like that

I am working on code checked out from my bug fixing branch, which i have not compiled so there are no ui_* files

I only want them so that there are no warnings in VSC as i work on things - if am able to get the app to build on Windows this problem will go away

i thought it would be something like that I am working on code checked out from my bug fixing branch, which i have not compiled so there are no ui_\* files I only want them so that there are no warnings in VSC as i work on things - if am able to get the app to build on Windows this problem will go away