Commit Graph

43591 Commits

Author SHA1 Message Date
hjk
683c976b46 Debugger: Don't mention auto-detected binaries
... if they are not working properly. E.g. the
pre-build LLDB 3.8 .deb crashes when executing
lldb -version > /dev/null

Change-Id: Ifd468048ffa0d30aeb99283cb64556609d8b1ef6
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-04 09:27:27 +00:00
Robert Loehning
02972e5844 CppEditor: Assign parent to "Extract Function" dialog
Change-Id: I37bdafe640cca00211f1c558f2f2afc5d12d8357
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-04 09:05:43 +00:00
Nikolai Kosjar
164b72b22a Clang: Check for libclang main header file
Otherwise we will run into compile errors if the libclang dev package is
not installed.

Change-Id: I31c05d9d0e11154f1c3748e6736c143805d310e8
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-09-04 08:59:51 +00:00
Eike Ziller
c868b9f3ed Merge remote-tracking branch 'origin/3.5'
Change-Id: Ife5fdcd71b0adc99d4297a28a64515e9e93d7864
2015-09-04 09:19:28 +02:00
Robert Loehning
e873f872ef Squish: Reanimate tst_opencreator_qbs
Change-Id: I00d1d1baea71e5b63a1a6b7c11aaf47e74082a21
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-03 14:58:53 +00:00
Christian Kandeler
d58002dd46 QbsProjectManager: Fix handling of cross-compilers on Windows.
Task-number: QTCREATORBUG-15011
Change-Id: Iea84e1a545bc6f414a35602e1d0c8c903901e813
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-09-03 14:13:46 +00:00
Daniel Teske
2ffe1ac68f BaseQtVersion: Use canonical filepath in a few places
I'm not sure whether this is better, but this fixes:

Change-Id: I2d7a606a59cdb25374cc75fed24ae14537eb3a55
Task-number: QTCREATORBUG-14968
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-09-03 14:02:04 +00:00
Tobias Hunger
396c033707 Project: Fix possible crash with projects without build configuration
Do not allow to rename buildconfigurations if there are none.

Change-Id: I3da2ea9568c2dabf555685c3b27192bea8dcc009
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-03 13:15:56 +00:00
Eike Ziller
2186d0815a Another try to fix that installer doesn't suggest start menu folder name
Change-Id: I584fe0ef595472144302252005d78ef66d8e0f99
Task-number: QTCREATORBUG-14674
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-03 13:12:29 +00:00
Miikka Heikkinen
2a2902dedb Update three.js in Canvas3D project template
Change-Id: I33d97c830d5bb63e75e1e17d908756bbc664747e
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2015-09-03 12:53:29 +00:00
Marco Bubke
a7e3c07580 Clang: Update includes after reparsing
Change-Id: I783cc0b536f880ce736cddf530f0363691cd6e77
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-03 12:01:07 +00:00
Christian Kandeler
7e47ae111d Utils: Connect to PathChooser::pathChanged() in ProjectIntroPage.
Instead of rawPathChanged(). This is consistent with the rest of the
code, which uses PathChooser's path() accessor, rather than rawPath().

Change-Id: I3880e748fa53ae89756cf6e6d2df5de203281d45
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-03 11:57:13 +00:00
Marco Bubke
74e24084c8 Clang: Workaround for clang bug to gather inclusions
We have to revert it if the fix is going in.

Change-Id: I28418e6c7cf6c40afdb5025eb1a52c13a0aa1302
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-03 11:56:47 +00:00
Marco Bubke
d041a79a18 Clang: Fix some warnings
Change-Id: I73c432e5fe834ce199204c49b1e0afe43ae605ac
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-03 11:56:05 +00:00
Robert Loehning
9c9dbe3c53 Squish: Update Creator's sources to v3.5.0
Change-Id: Idc41db621470886920173f7d5caf366204408731
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-03 11:41:20 +00:00
Christian Kandeler
8d3aa026e0 Utils: Rename PathChooser::changed() signal.
The name is overly generic, particularly with a pathChanged() signal
also present. Rename to "rawPathChanged", which adequately describes the
semantics.

Change-Id: Ia62b8b0a97a794cb6d5ad6b8ce0abcd36b5f5cdb
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-03 11:12:57 +00:00
Daniel Teske
c2ef849997 Environment::prependOrSetLibrarySearchPath: Set DYLD_LIBRARY_PATH on OS X
Change-Id: I25a86189b9308f5ac557a705b32bb4986f1b4519
Task-number: QTCREATORBUG-14022
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-03 10:51:28 +00:00
Benjamin Zeller
4ffb6649ec CMakeProjectManager: Use factories to create runconfig
At the moment RC factories are ignored when creating
runconfigurations or updating them. This patch changes
the behavior so the RCs are first created/removed and
then updated to match the build targets. This way plugins
can provide custom factories and RCs for cmake projects.

Change-Id: I4a7797e7382784e33ecf016e322eab00e20c07e0
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-03 10:38:23 +00:00
Daniel Teske
00320f5127 Desktop Qmake RC: Toggling usingDyldImageSuffix should update the environment
Change-Id: I79d66a5a44172640febe9a4d83e71ad436468f35
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-03 10:11:05 +00:00
Tobias Hunger
1381b80f4b Mercurial: Make commiter/commiter email work again
We tried to get the data from a settings object that was removed
elsewhere:-/

Task-number: QTCREATORBUG-14945
Change-Id: Ib7c1b9ced0cae776f24f250ebda24bcf14d3a782
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-03 08:23:03 +00:00
David Schulz
bbe8195d01 Cdb: Add register size and type to the gdmi structure.
Change-Id: I8c87a92e6a76165a99c3654b7b71bd539a51d67c
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-03 08:08:25 +00:00
Orgad Shaneh
91848f4755 Debugger: Make watchers editable in coredump
Task-number: QTCREATORBUG-15001
Change-Id: Icba8175e2f3ca0ed07815fb063dec660c722231d
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-03 07:01:11 +00:00
hjk
58e391fe18 Debugger: Remove unused bits of pdbbridge.py
Change-Id: I56f104f21dfded2e3beab7269b6e83d64c1cc211
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-03 06:40:36 +00:00
hjk
26d1113f4d Debugger: Improve type display in PdbEngine
... for non-builtins. Split the "<foo instance at 0xdeadbeef>" into
a value "@0xdeadbeef" and a type "foo".

Change-Id: I7cdc83c34c064cc48b88d549157b07268f020225
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-03 05:59:59 +00:00
Robert Loehning
f8fa24d901 QmlDesigner: Update for change in QDir::relativeFilePath()
Change-Id: If90cba32aeca2349921870e30bd62d45a4a55e45
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2015-09-02 14:52:47 +00:00
Alessandro Portale
d7a373ef26 QmakeProjectManager: native separators in FolderNodes
Folder nodes with separators should be native.
They are native in the tooltip, as-well.

Change-Id: Iae56f352df3a58fe0eb75130c9171fa70d8b0204
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-02 14:10:42 +00:00
hjk
d0d7d5e1ac Debugger: Stop on first line when starting PdbEngine
This seems to be the expected behavior of PDB users.

Change-Id: Iaa9ca5e173e02d423c1a96a5f553bde0826db19c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-02 13:59:31 +00:00
hjk
1535fccffd Debugger: Replace unneeded requests for updates in PdbEngine
... by more direct flushing on the dumper side.

Change-Id: I53d91e564bb948e3c934242fec4f23f36ee8c10e
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-02 13:38:47 +00:00
Christian Stenger
33fc9e209d Debugger: Handle anonymous function arguments
Change-Id: I1caa0ace47d59ea182470795634c00ef5fd7c345
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-02 13:20:25 +00:00
hjk
d76ba6c99e Debugger: Fix stepping into other files with PdbEngine
Change-Id: Ia6f9ec5ffdfd1239c10252a74cc30f57d9f63de1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-02 12:55:30 +00:00
Nikolai Kosjar
169556db2f C++: Fix crash after triggering completion and closing editor
Fix use-after-free for the following case:
  1. Open an editor
  2. Trigger a long processing completion
     (e.g. simulate with QThread::msleep in
      CppCompletionAssistInterface::getCppSpecifics)
  3. ...and immediately close the editor (e.g. with Ctrl+W)
  4. Wait until it crashes.

The completion thread relied on the BuiltinEditorDocumentParser object,
which is deleted once the editor is closed. Fixed by sharing the
ownership of that object between the *EditorDocumentProcessor and the
completion assist interface.

This case came up when doing tests for the bug report below.

Task-number: QTCREATORBUG-14991
Change-Id: I0b009229e68fc6b7838740858cdc41a32403fe6f
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-09-02 12:37:23 +00:00
Christian Stenger
df7ec0d4af PythonEditor: Do not create run configuration for project file
Change-Id: I2b4b54f3b7ba12ce293816fc2a69a5813b01756c
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-02 11:44:10 +00:00
Christian Stenger
5bb4f5b3cb PythonEditor: Do not recreate run configuration if already present
Change-Id: Iac52c846d4b5b0a72cf11decc95489620cae239f
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-02 11:16:33 +00:00
Daniel Teske
8cbe009cc4 QmakeProject: Use QMAKE_PROJECT_NAME to set the display name
Of both nodes and run configurations.

Change-Id: I04cae590561f3c7b355a3385856dca13ebcd7acf
Task-number: QTCREATORBUG-13950
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-02 10:52:24 +00:00
Nikolai Kosjar
c504e56d0c C++: Fix MSVC assert in std::isspace()
...when dealing with UTF8 bytes.

std::isspace() expects unsigned char, not char.

Change-Id: I3f9b5e347d79cf94015cc99f8797d5feab406151
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-09-02 10:42:43 +00:00
Nikolai Kosjar
b1ee76047a TextEditor: Destroy completion widget if editor is closed
Task-number: QTCREATORBUG-14991
Change-Id: I7a23d4bd3a9fd97838f21e964a17b091dc925175
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-09-02 10:40:57 +00:00
Nikolai Kosjar
cfebd9bf7f Clang: Tests: Tweak time out for writing file
Change-Id: Iaf1294776be19805934eb152a9e09f3c68b9d5f6
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-02 10:40:42 +00:00
Christian Stenger
326dec96b9 Provide pyqtc file
Change-Id: I2147cdd49e4050ad6bb8a538dfccc679fa2b1069
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-02 10:30:49 +00:00
Robert Loehning
25d534efda QMakeProjectManager: Update for change in QDir::relativeFilePath()
Change-Id: I8526df516a514678f30583956a00fdd5a2e770c5
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-02 10:09:46 +00:00
hjk
f9f2149251 Doc: Bump LLDB version requirement
Drop 179.x on OS X, as this barely works. Include 3.7 on Linux,
at least a build from SVN revision 232800 is knwon to be good.

Also change 'minimal supported version' to 'minimum supported
version'.

Change-Id: Ia491289500aa1d9680a3194cd50852aec65272d1
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
2015-09-02 10:05:10 +00:00
Miikka Heikkinen
b5cd5a970c Update Canvas3D project wizard templates
Added new version of three.js that supports Quick items as textures,
and unified how three.js and non-three.js examples generated by the
wizard look like. Both now display just a plain green cube.

Change-Id: Iedc2498853aa078fe072083ab06a27d1ed04d982
Task-number: QTCREATORBUG-14824
Task-number: QTCREATORBUG-14825
Task-number: QTBUG-47961
Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2015-09-02 09:54:14 +00:00
Ulf Hermann
c11b046f34 QmlProfiler: Use QPointer for storing config widget
Most other options pages do it this way and none of them delete the
widget in the destructor. Apparently we can rely on finish() getting
called in time.

Change-Id: Ie0964d291bc8ab3eea537921bf476012d58776a4
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2015-09-02 09:39:24 +00:00
Ulf Hermann
96ca7bf148 QmlProfiler: Initialize pointer to QmlProfilerConfigWidget
Change-Id: I4c7f1456f3cc35727d9f3b72d100e072960987e4
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2015-09-02 08:53:31 +00:00
Nikita Baryshnikov
5398f4f5b1 fix metatype declaration in a few places
Change-Id: I76a12a278db8e74d935e76a5e832daf8e34df2a9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-02 08:48:20 +00:00
Tasuku Suzuki
f598101284 QtQuickWizards: Fix compilation
compilation fails when "Use Qt module in #include directive" is
enabled.

Change-Id: If8d59e631fc58d4400bf0597e415e66c9fb5279d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-02 07:29:51 +00:00
hjk
e37b1bdfa4 Debugger: Work around lazy GDB communication
-exec-finish in 'main' results (correctly) in something like
 40^error,msg="\"finish\" not meaningful in the outermost frame."
However, this message does not seem to get flushed before
anything else happens - i.e. "never". So force some extra output
that's known to trigger a flush.

Change-Id: I3f5ef6f7cc57dd085976b239f18d6ec7bd108972
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-09-02 06:44:57 +00:00
hjk
b603721509 Debugger: Make Python debugger interruptible
Change-Id: Iad3a4bae108658d427f5c53908162ab0d771b22c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-02 06:06:00 +00:00
Christian Kandeler
ccd781ed7c ProjectExplorer: Fix warning about unsed parameter.
Project::fromMap() does not fail anymore, and thus the errorMessage
parameter is unused.

Change-Id: Icc73a4b5725ea37e5ba14263ac3bd30eedf4cf64
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-01 15:21:48 +00:00
Marco Benelli
86bca29f36 Fixed QT variable value in importscheck.pro .
It now use the 'qml' feature instead of the deprecated 'script'

Change-Id: Ie2e4148e586503be11d233b7f544cf4f3c040bdb
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-09-01 14:49:38 +00:00
Christian Stenger
d11fc7bd72 Debugger:QML: Fix compile for Qt5.4
Change-Id: I5526dcd0ea5ba52675ae451721657ce003eab365
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-01 14:26:08 +00:00