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

cpp-qt-client: Fix CI #10376

Merged
merged 1 commit into from
Sep 12, 2021
Merged

cpp-qt-client: Fix CI #10376

merged 1 commit into from
Sep 12, 2021

Conversation

MartinDelille
Copy link
Contributor

Fix issue raised here: #10322 (comment)

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master (5.3.0), 6.0.x
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

@ravinikam @stkrwork @etherealjoy @muttleyxd

@wing328
Copy link
Member

wing328 commented Sep 10, 2021

Thanks. I'll test it over the weekend.

@wing328
Copy link
Member

wing328 commented Sep 12, 2021

Travis CI tests passed via https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds/237458543. Will re-enable the job after merging this PR.

@wing328 wing328 added this to the 5.3.0 milestone Sep 12, 2021
@wing328 wing328 merged commit 1eb4d88 into OpenAPITools:master Sep 12, 2021
@MartinDelille MartinDelille deleted the fix-ci branch September 12, 2021 19:16
@wing328
Copy link
Member

wing328 commented Sep 13, 2021

@MartinDelille sorry my bad 😞

look like my tests was wrong and there are still issues reported by the master now:

- Build files have been written to: /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build
/usr/local/cmake-3.12.4/bin/cmake -H/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt -B/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/cmake-3.12.4/bin/cmake -E cmake_progress_start /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/CMakeFiles /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
make -f client/CMakeFiles/client_autogen.dir/build.make client/CMakeFiles/client_autogen.dir/depend
make[2]: Entering directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build && /usr/local/cmake-3.12.4/bin/cmake -E cmake_depends "Unix Makefiles" /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/CMakeFiles/client_autogen.dir/DependInfo.cmake --color=
Scanning dependencies of target client_autogen
make[2]: Leaving directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
make -f client/CMakeFiles/client_autogen.dir/build.make client/CMakeFiles/client_autogen.dir/build
make[2]: Entering directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
[  4%] Automatic MOC for target client
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client && /usr/local/cmake-3.12.4/bin/cmake -E cmake_autogen /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/CMakeFiles/client_autogen.dir/AutogenInfo.cmake ""
make[2]: Leaving directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
[  4%] Built target client_autogen
make -f client/CMakeFiles/client.dir/build.make client/CMakeFiles/client.dir/depend
make[2]: Entering directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build && /usr/local/cmake-3.12.4/bin/cmake -E cmake_depends "Unix Makefiles" /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/CMakeFiles/client.dir/DependInfo.cmake --color=
Scanning dependencies of target client
make[2]: Leaving directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
make -f client/CMakeFiles/client.dir/build.make client/CMakeFiles/client.dir/build
make[2]: Entering directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
[  9%] Building CXX object client/CMakeFiles/client.dir/PFXApiResponse.cpp.o
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client && /usr/bin/g++-5  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/client_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork  -fPIC -Wall -Wno-unused-variable -fPIC -Wall -Wno-unused-variable   -fPIC -std=c++14 -o CMakeFiles/client.dir/PFXApiResponse.cpp.o -c /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXApiResponse.cpp
[ 13%] Building CXX object client/CMakeFiles/client.dir/PFXCategory.cpp.o
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client && /usr/bin/g++-5  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/client_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork  -fPIC -Wall -Wno-unused-variable -fPIC -Wall -Wno-unused-variable   -fPIC -std=c++14 -o CMakeFiles/client.dir/PFXCategory.cpp.o -c /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXCategory.cpp
[ 18%] Building CXX object client/CMakeFiles/client.dir/PFXOrder.cpp.o
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client && /usr/bin/g++-5  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/client_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork  -fPIC -Wall -Wno-unused-variable -fPIC -Wall -Wno-unused-variable   -fPIC -std=c++14 -o CMakeFiles/client.dir/PFXOrder.cpp.o -c /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXOrder.cpp
[ 22%] Building CXX object client/CMakeFiles/client.dir/PFXPet.cpp.o
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client && /usr/bin/g++-5  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/client_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork  -fPIC -Wall -Wno-unused-variable -fPIC -Wall -Wno-unused-variable   -fPIC -std=c++14 -o CMakeFiles/client.dir/PFXPet.cpp.o -c /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPet.cpp
[ 27%] Building CXX object client/CMakeFiles/client.dir/PFXTag.cpp.o
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client && /usr/bin/g++-5  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/client_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork  -fPIC -Wall -Wno-unused-variable -fPIC -Wall -Wno-unused-variable   -fPIC -std=c++14 -o CMakeFiles/client.dir/PFXTag.cpp.o -c /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXTag.cpp
[ 31%] Building CXX object client/CMakeFiles/client.dir/PFXUser.cpp.o
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client && /usr/bin/g++-5  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/client_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork  -fPIC -Wall -Wno-unused-variable -fPIC -Wall -Wno-unused-variable   -fPIC -std=c++14 -o CMakeFiles/client.dir/PFXUser.cpp.o -c /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXUser.cpp
[ 36%] Building CXX object client/CMakeFiles/client.dir/PFXPetApi.cpp.o
cd /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client && /usr/bin/g++-5  -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client -I/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build/client/client_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork  -fPIC -Wall -Wno-unused-variable -fPIC -Wall -Wno-unused-variable   -fPIC -std=c++14 -o CMakeFiles/client.dir/PFXPetApi.cpp.o -c /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::setNewServerForAllOperations(const QUrl&, const QString&, const QMap<QString, test_namespace::PFXServerVariable>&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:129:38: error: ‘class QMap<QString, int>’ has no member named ‘keyBegin’
     for (auto keyIt = _serverIndices.keyBegin(); keyIt != _serverIndices.keyEnd(); keyIt++) {
                                      ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:129:74: error: ‘class QMap<QString, int>’ has no member named ‘keyEnd’
     for (auto keyIt = _serverIndices.keyBegin(); keyIt != _serverIndices.keyEnd(); keyIt++) {
                                                                          ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::addPet(const test_namespace::PFXPet&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:241:43: error: expected ‘;’ before ‘)’ token
     for (auto key = _defaultHeaders.keys()) {
                                           ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:241:43: error: expected primary-expression before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:241:43: error: expected ‘;’ before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:242:50: error: no match for ‘operator[]’ (operand types are ‘QMap<QString, QString>’ and ‘QList<QString>’)
         input.headers.insert(key, _defaultHeaders[key]);
                                                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMap:1:0,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXHelpers.h:22,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.h:15,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note: candidate: T& QMap<Key, T>::operator[](const Key&) [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE T &QMap<Key, T>::operator[](const Key &akey)
                      ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note: candidate: const T QMap<Key, T>::operator[](const Key&) const [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE const T QMap<Key, T>::operator[](const Key &akey) const
                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::deletePet(const qint64&, const test_namespace::OptionalParam<QString>&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:309:43: error: expected ‘;’ before ‘)’ token
     for (auto key = _defaultHeaders.keys()) {
                                           ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:309:43: error: expected primary-expression before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:309:43: error: expected ‘;’ before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:310:50: error: no match for ‘operator[]’ (operand types are ‘QMap<QString, QString>’ and ‘QList<QString>’)
         input.headers.insert(key, _defaultHeaders[key]);
                                                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMap:1:0,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXHelpers.h:22,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.h:15,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note: candidate: T& QMap<Key, T>::operator[](const Key&) [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE T &QMap<Key, T>::operator[](const Key &akey)
                      ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note: candidate: const T QMap<Key, T>::operator[](const Key&) const [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE const T QMap<Key, T>::operator[](const Key &akey) const
                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::findPetsByStatus(const QList<QString>&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:443:43: error: expected ‘;’ before ‘)’ token
     for (auto key = _defaultHeaders.keys()) {
                                           ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:443:43: error: expected primary-expression before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:443:43: error: expected ‘;’ before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:444:50: error: no match for ‘operator[]’ (operand types are ‘QMap<QString, QString>’ and ‘QList<QString>’)
         input.headers.insert(key, _defaultHeaders[key]);
                                                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMap:1:0,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXHelpers.h:22,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.h:15,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note: candidate: T& QMap<Key, T>::operator[](const Key&) [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE T &QMap<Key, T>::operator[](const Key &akey)
                      ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note: candidate: const T QMap<Key, T>::operator[](const Key&) const [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE const T QMap<Key, T>::operator[](const Key &akey) const
                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::findPetsByTags(const QList<QString>&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:587:43: error: expected ‘;’ before ‘)’ token
     for (auto key = _defaultHeaders.keys()) {
                                           ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:587:43: error: expected primary-expression before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:587:43: error: expected ‘;’ before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:588:50: error: no match for ‘operator[]’ (operand types are ‘QMap<QString, QString>’ and ‘QList<QString>’)
         input.headers.insert(key, _defaultHeaders[key]);
                                                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMap:1:0,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXHelpers.h:22,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.h:15,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note: candidate: T& QMap<Key, T>::operator[](const Key&) [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE T &QMap<Key, T>::operator[](const Key &akey)
                      ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note:   no known conversion for argument 1 from ���QList<QString>’ to ‘const QString&’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note: candidate: const T QMap<Key, T>::operator[](const Key&) const [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE const T QMap<Key, T>::operator[](const Key &akey) const
                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::getPetById(const qint64&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:663:43: error: expected ‘;’ before ‘)’ token
     for (auto key = _defaultHeaders.keys()) {
                                           ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:663:43: error: expected primary-expression before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:663:43: error: expected ‘;’ before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:664:50: error: no match for ‘operator[]’ (operand types are ‘QMap<QString, QString>’ and ‘QList<QString>’)
         input.headers.insert(key, _defaultHeaders[key]);
                                                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMap:1:0,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXHelpers.h:22,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.h:15,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note: candidate: T& QMap<Key, T>::operator[](const Key&) [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE T &QMap<Key, T>::operator[](const Key &akey)
                      ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note: candidate: const T QMap<Key, T>::operator[](const Key&) const [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE const T QMap<Key, T>::operator[](const Key &akey) const
                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::updatePet(const test_namespace::PFXPet&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:716:43: error: expected ‘;’ before ‘)’ token
     for (auto key = _defaultHeaders.keys()) {
                                           ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:716:43: error: expected primary-expression before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:716:43: error: expected ‘;’ before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:717:50: error: no match for ‘operator[]’ (operand types are ‘QMap<QString, QString>’ and ‘QList<QString>’)
         input.headers.insert(key, _defaultHeaders[key]);
                                                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMap:1:0,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXHelpers.h:22,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.h:15,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note: candidate: T& QMap<Key, T>::operator[](const Key&) [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE T &QMap<Key, T>::operator[](const Key &akey)
                      ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note: candidate: const T QMap<Key, T>::operator[](const Key&) const [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE const T QMap<Key, T>::operator[](const Key &akey) const
                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::updatePetWithForm(const qint64&, const test_namespace::OptionalParam<QString>&, const test_namespace::OptionalParam<QString>&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:786:43: error: expected ‘;’ before ‘)’ token
     for (auto key = _defaultHeaders.keys()) {
                                           ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:786:43: error: expected primary-expression before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:786:43: error: expected ‘;’ before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:787:50: error: no match for ‘operator[]’ (operand types are ‘QMap<QString, QString>’ and ‘QList<QString>’)
         input.headers.insert(key, _defaultHeaders[key]);
                                                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMap:1:0,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXHelpers.h:22,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.h:15,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note: candidate: T& QMap<Key, T>::operator[](const Key&) [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE T &QMap<Key, T>::operator[](const Key &akey)
                      ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note: candidate: const T QMap<Key, T>::operator[](const Key&) const [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE const T QMap<Key, T>::operator[](const Key &akey) const
                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp: In member function ‘void test_namespace::PFXPetApi::uploadFile(const qint64&, const test_namespace::OptionalParam<QString>&, const test_namespace::OptionalParam<test_namespace::PFXHttpFileElement>&)’:
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:856:43: error: expected ‘;’ before ‘)’ token
     for (auto key = _defaultHeaders.keys()) {
                                           ^
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:856:43: error: expected primary-expression before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:856:43: error: expected ‘;’ before ‘)’ token
/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:857:50: error: no match for ‘operator[]’ (operand types are ‘QMap<QString, QString>’ and ‘QList<QString>’)
         input.headers.insert(key, _defaultHeaders[key]);
                                                  ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QMap:1:0,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXHelpers.h:22,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.h:15,
                 from /home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/client/PFXPetApi.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note: candidate: T& QMap<Key, T>::operator[](const Key&) [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE T &QMap<Key, T>::operator[](const Key &akey)
                      ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:627:22: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note: candidate: const T QMap<Key, T>::operator[](const Key&) const [with Key = QString; T = QString]
 Q_INLINE_TEMPLATE const T QMap<Key, T>::operator[](const Key &akey) const
                           ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:621:27: note:   no known conversion for argument 1 from ‘QList<QString>’ to ‘const QString&’
client/CMakeFiles/client.dir/build.make:143: recipe for target 'client/CMakeFiles/client.dir/PFXPetApi.cpp.o' failed
make[2]: *** [client/CMakeFiles/client.dir/PFXPetApi.cpp.o] Error 1
make[2]: Leaving directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
make[1]: *** [client/CMakeFiles/client.dir/all] Error 2
CMakeFiles/Makefile2:164: recipe for target 'client/CMakeFiles/client.dir/all' failed
make[1]: Leaving directory '/home/travis/build/OpenAPITools/openapi-generator/samples/client/petstore/cpp-qt/build'
make: *** [all] Error 2
Makefile:132: recipe for target 'all' failed
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (pet-test) on project CppQt5PetstoreClientTests: Command execution failed. Process exited with an error: 2 (Exit value: 2) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:ex

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

Successfully merging this pull request may close these issues.

2 participants