summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonlanguageclient.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Rename qtcprocess.{cpp,h} -> process.{cpp,h}Jarek Kobus2023-05-041-1/+1
| | | | | | | | Follows QtcProcess -> Process rename. Change-Id: I97235a9a40cb7fd52944515b7ab878d96528f919 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Utils: Rename QtcProcess -> ProcessJarek Kobus2023-05-041-2/+2
| | | | | | | | Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Utils: Rename asynctask.{cpp,h} -> async.{cpp,h}Jarek Kobus2023-05-031-1/+1
| | | | | | | Follows AsyncTask -> Async rename. Change-Id: I37f18368ab826c9960a24087b52f6691bb33f225 Reviewed-by: hjk <hjk@qt.io>
* Python: Allow installing multiple pip packages in one taskDavid Schulz2023-04-061-1/+1
| | | | | Change-Id: If6cc1373cd38c07b29ac48fa51bf0ed35d6f104b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: Use QtConcurrent invocation for async runJarek Kobus2023-03-101-2/+2
| | | | | | | Change-Id: I26254d5c78c3b6ea06ed9baec8e52b988a6e9608 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* ProjectExplorer: Move some not-fully-session related bitshjk2023-03-011-1/+1
| | | | | | | | | | | | | | | ... out of SessionManager. The idea is to later move SessionManager into the Core plugin, which both is sensible conceptually and also prerequisite to merge the Bookmark plugin into TextEditor plugin. Currently, only the interface is split, as the load/save implemetations are non-mechanical to disentangle. Change-Id: I31631db3094ea192825a2ccaa6add6188662940b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Python: remove outdated pyls install toolbar earlierDavid Schulz2023-01-201-1/+1
| | | | | Change-Id: I9ba67bffcff159523eb44b4f486c11fc37085fa8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ExtraCompiler: Expose TaskItem for compile taskJarek Kobus2023-01-111-1/+1
| | | | | | | | | | | | This is an intermediate state before employing one common TaskTree inside CppProjectUpdater. Use multiple one-task TaskTrees for now. Refactor ExtraCompiler so that there is only one pure virtual method to be implemented (taskItem()) instead of two (2 run() overloads). Use TaskTree inside ExtraCompiler for running the compilation process. Change-Id: I6884934508e043594589d117f6d3f0aed94b84c2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* LSP: Support remote LSP file pathsDavid Schulz2022-12-151-1/+1
| | | | | Change-Id: If3cf1b8d675ef091427dbcd703c7d14b384a1b3a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove unused variablesJarek Kobus2022-12-091-1/+0
| | | | | | Change-Id: I653f6fa71bb04e049d4e1848a7e38a606692e678 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Don't call non-const methods on temporary QListJarek Kobus2022-12-081-1/+1
| | | | | | | | Otherwise it may unnecessarily detach. Either store a local const reference or call const equivalent (e.g. constFirst()). Change-Id: I96d665487cf28c17e72bea17f1b8f164ce06cc70 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove unused includes of QGridLayoutJarek Kobus2022-11-181-1/+0
| | | | | | | Change-Id: Ia0823fe1dbadb7c68efc431c3bf0f1ba621a9484 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Python: use consistent pyls naming in settingsDavid Schulz2022-09-051-1/+1
| | | | | Change-Id: I8a36e4089812802c3629ac52ce52499dde53eba8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Python: Convert to Tr::trhjk2022-07-211-8/+11
| | | | | | Change-Id: I0241053b0d51dbb1a60c43351cbff543fd52573d Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Python: prevent setting local env to remote pylsDavid Schulz2022-06-271-6/+14
| | | | | Change-Id: Id0eea5420c897687e6931bf640e3a37ba2638b8f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: remove static cast of client interface in client constructorDavid Schulz2022-06-201-2/+2
| | | | | Change-Id: I475a2b79438b8392085f1d9bf2cdb8b7369efa68 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: remove python specific language client settingsDavid Schulz2022-06-101-261/+47
| | | | | Change-Id: Ic993d525f29c1925f7e64dfc6f5e053234fb4904 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: globalize Python language server settingsDavid Schulz2022-06-101-203/+15
| | | | | Change-Id: I84fcee6462064f0c788492fcfa12a77379af2bd7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: fix todoDavid Schulz2022-06-071-2/+1
| | | | | Change-Id: Ia6b3b5fe6e595c32a8b8a13b869f3178afb37ed8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Python: support python 3 mime type in language clientDavid Schulz2022-06-021-2/+6
| | | | | Change-Id: I9319442aecc61e854aaeb0778b959086a70d431b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: add pyside uic extra compilerDavid Schulz2022-06-021-23/+115
| | | | | | | | | | | To be able to autocomplete code from .ui forms we need to feed the python language server the compiled form. The uic extra compiler generates a temporary ui_name.py file for uncompiled or unsaved ui files. These files are inside a folder that gets appended to the python path environment variable for the python language server. Change-Id: I9f48d2012162f33986639315189c41e0a7e0dad2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: pimpl Client and cleanup includesDavid Schulz2022-05-231-0/+1
| | | | | Change-Id: I653861e29baeaddcbcd21a5e738be6bd85514617 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* LanguageServerProtocol: remove IContentDavid Schulz2022-05-201-1/+1
| | | | | | | | | | Do not pretend to support multiple message types, while no other messages are actually implemented by us or even known to exist in the wild. Change-Id: I49ee2118b2e10f265ac641c195df8a9e5c97951c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Python: Split complex callhjk2022-05-091-2/+2
| | | | | | Change-Id: I6f301342a1841d2734f0598edfcd7b3327a943c9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Python: Apply 'static' pattern for singleton membershjk2022-04-271-3/+3
| | | | | | | | Plus some cosmetics. Change-Id: Ia2c8f425f0491fbe6a0bbf2e508857a5550e4d38 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Promote previously python-specific InterpreterAspecthjk2022-04-271-0/+1
| | | | | | | | ... and drop PythonRunConfiguration, which is a plain RunConfiguration now. Change-Id: I540cb738180fc1424f730d6d1998886915ce527b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Python: extract pythonProjectForFile function to utilsDavid Schulz2022-03-281-12/+1
| | | | | Change-Id: I4055527302cab09f55cd4b06bfd3896accb4832a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: move python name cache to utilsDavid Schulz2022-03-281-19/+0
| | | | | Change-Id: I7f6d13a465be6de90aea64e7f19c92bca3ee6c19 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: Use specialized document to check for pylspDavid Schulz2022-03-281-13/+0
| | | | | Change-Id: I9ea13df7fc04a4fe35d901da179b9c0ebaf57bb6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: remove unused variableDavid Schulz2022-03-231-1/+0
| | | | | Change-Id: I1c16e4b3795f83e1107d39f0265465b0926d4c97 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: extract pip installation taskDavid Schulz2022-03-211-92/+14
| | | | | | | Make it reusable for pyside and other packages. Change-Id: If97e65a506d36916aaa61f48b9a2f71c458d4fe9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: ensure opened file is inside a workspaceDavid Schulz2022-03-211-4/+45
| | | | | | | | | | | The Python language server seems to dislike files that are not part of a workspace resulting in very long lookup times for specific symbols. Fixes: QTCREATORBUG-26230 Fixes: QTCREATORBUG-24704 Fixes: QTCREATORBUG-24140 Change-Id: Iceb7a2b3d57aea6554225a74587f619e530e10c9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: rename clientForSetting -> clientsForSettingDavid Schulz2022-03-211-4/+4
| | | | | Change-Id: Idf4055769fba4c2551ac968c0232ddb3916acb6c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: unify client containerDavid Schulz2022-03-211-1/+1
| | | | | Change-Id: I17b5e7ca4999cd5a9ca8e79577f29854082b6c6b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QtcProcess: Limit the inclusion of qtcprocess.hJarek Kobus2022-03-021-2/+2
| | | | | | | | | | Move the rest of QtcProcess enums to processenums.h. Move ExitCodeInterpreter into processenums.h. Remove superfluous Utils:: prefix. Change-Id: Iaa596f353d33d6930085a621b114cc15a35caa80 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Python: add lsp configuration widgetDavid Schulz2022-02-091-0/+216
| | | | | | Change-Id: I688981293e3bbbee64fc2d714146fcdfa8126458 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: add python specific language client settingsDavid Schulz2022-01-181-4/+141
| | | | | | Change-Id: I1b9a194f32f3f13381954539229b02e03e3af058 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* InfoBar: Make adding more buttons possibleEike Ziller2022-01-181-6/+4
| | | | | Change-Id: Ic0c946cf3f87fe46cd06391f38e0bc71374ad340 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Python: move language client functionality out of utilsDavid Schulz2022-01-181-0/+451
There will be more lsp specific functionality so moving it into its own space is reasonable. Change-Id: Ic87d437182d68673b53f662c804707138fef5b6c Reviewed-by: Christian Stenger <christian.stenger@qt.io>