Version: 22.214.171.124 (using KDE 3.5.6 "release 41.2" , openSUSE )
Compiler: Target: i586-suse-linux
OS: Linux (i686) release 126.96.36.199-0.9-default
The QMake-Manager has errors when parsing my project which includes some pri files (include(prifile.pri)). I will attach the empty project structure (pro und pri files) that you can reproduce this parsing errors. One issue in my pro files is already adressed in #144377
Created attachment 20468 [details]
pro and pri files in the project structure
Please be more verbose on what problems you have.
output when I start kdevelop from the shell
QObject::connect: No such slot MakeWidget::slotDocumentOpened(const KURL&)
QObject::connect: (sender name: 'unnamed')
QObject::connect: (receiver name: 'make widget')
QLayout "unnamed" added to IndexView "unnamed", which already has a layout
kdecore (KAction): WARNING: KAction::initPrivate(): trying to assign a shortcut (Alt+Ctrl+Shift+N) to an unnamed action.
kio (KTrader): WARNING: Parsing ' and [X-KDevelop-Version] == 4' gave syntax error
.......and so on
The first problem is reported already in bug #144377, that the problem with blank first line in pro file
INCLUDEPATH += \
-> parser error
INCLUDEPATH += ../include \
The second problem I have is with pri file which I include in other pro files (include(../lib_be3.pri).
Error Message in KDevelop:
Couldn't parse project file: /home/be3/uim/lib_be3.pri
I also get parse errors in other pri files (Core.pri, ....).
Note : The old Qmake-Manager in KDevelop 3.3.5 has no problems with this pro and pri files. Import the atached project into KDevelop 188.8.131.52 and you will get a lot of errors on parsing project files. I could not figure out what the problem those pri files is.
oh, seems I forgot to assign this BR to me. I already have a bugfix and its probably going to be comitted later today to svn. Its just that KDevelop is now in freeze for release with KDE 3.5.7 and thus I needed to get approval before comitting.
That fix allows to import your whole project and also solves 144377.
SVN commit 660991 by apaku:
Fix a few parser issues:
1. Correctly parse 1-character-long variable values
2. Don't choke on multiline-values that don't have whitespace at the beginning of the line
3. Allow EOF at the end of a variable assignment, instead of just newline
M +5 -4 qmake.ll
M +27 -0 qmake.yy
M +124 -119 qmake_lex.cpp
M +183 -142 qmake_yacc.cpp
M +3 -2 qmake_yacc.hpp