aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonlanguageclient.h
Commit message (Collapse)AuthorAgeFilesLines
* LanguageClient: have one LanguageClient per BuildConfighjk2025-04-291-4/+3
| | | | | | | | Language server behavior does not depend only on the project files but also on Kit configuration and in some cases the actual build. Change-Id: I1c26de62da9e5ee2f2f9e655f23cd2d30cfedd85 Reviewed-by: David Schulz <[email protected]>
* Python: avoid accessing deleted extra compilerDavid Schulz2025-01-211-1/+1
| | | | | | | | | | | It looks like we delete extra compilers without properly unsetting them in the python language client. Connect to the destroyed signal of the extra compilers and ensure that the compiler is untracked in the client with an assert if it was not properly untracked before the destruction. Fixes: QTCREATORBUG-32362 Change-Id: I53dbf2877d74420424f5a590d4fc0eeb3df469ef Reviewed-by: Christian Stenger <[email protected]>
* Remove #include <utils/fileutils.h> from most header fileshjk2024-07-261-3/+1
| | | | | | | | | | It has some platform specific warts, filepath.h is somewhat cheaper and less ugly overall. Partially clean up surroundings Change-Id: Ida1fd470ec020f69c446109427f92a08e879789f Reviewed-by: Jarek Kobus <[email protected]>
* Python: Simplify PyLSConfigureAssistant setuphjk2024-01-161-24/+1
| | | | | Change-Id: Icdd8d0017a8fe71f579af6f19fa2b870f0677efc Reviewed-by: David Schulz <[email protected]>
* Python: Avoid polluting global or virtual environments with pylspDavid Schulz2023-12-131-1/+2
| | | | | | | | | | Install the language server into the Qt Creator resource directory instead. Reuse the server for all interpreters with the same version. This also reduces the amount of editor toolbars asking the user to install a language server for a specific interpreter. Change-Id: I48ef4ad30fe0097ee8d2b855b0f278e98be5ce57 Reviewed-by: Christian Stenger <[email protected]>
* Python: use kits page in python wizardsDavid Schulz2023-11-281-0/+2
| | | | | Change-Id: I1f7aaf145443481546abb868c8c167186600b848 Reviewed-by: Christian Stenger <[email protected]>
* Python: use correct python language server after installationDavid Schulz2023-10-301-2/+0
| | | | | Change-Id: Ie5e26eedffc51e8916d849121fa60ea3d56e5a66 Reviewed-by: Christian Stenger <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* Python: Convert to Tr::trhjk2022-07-211-4/+2
| | | | | | Change-Id: I0241053b0d51dbb1a60c43351cbff543fd52573d Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: <[email protected]>
* Python: remove static cast of client interface in client constructorDavid Schulz2022-06-201-1/+2
| | | | | Change-Id: I475a2b79438b8392085f1d9bf2cdb8b7369efa68 Reviewed-by: Christian Stenger <[email protected]>
* Python: remove python specific language client settingsDavid Schulz2022-06-101-29/+2
| | | | | Change-Id: Ic993d525f29c1925f7e64dfc6f5e053234fb4904 Reviewed-by: Christian Stenger <[email protected]>
* Python: globalize Python language server settingsDavid Schulz2022-06-101-2/+1
| | | | | Change-Id: I84fcee6462064f0c788492fcfa12a77379af2bd7 Reviewed-by: Christian Stenger <[email protected]>
* LanguageClient: fix todoDavid Schulz2022-06-071-1/+1
| | | | | Change-Id: Ia6b3b5fe6e595c32a8b8a13b869f3178afb37ed8 Reviewed-by: Christian Kandeler <[email protected]>
* Python: add pyside uic extra compilerDavid Schulz2022-06-021-2/+33
| | | | | | | | | | | 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 <[email protected]>
* Python: Apply 'static' pattern for singleton membershjk2022-04-271-2/+4
| | | | | | | | Plus some cosmetics. Change-Id: Ia2c8f425f0491fbe6a0bbf2e508857a5550e4d38 Reviewed-by: <[email protected]> Reviewed-by: David Schulz <[email protected]>
* Promote previously python-specific InterpreterAspecthjk2022-04-271-1/+0
| | | | | | | | ... and drop PythonRunConfiguration, which is a plain RunConfiguration now. Change-Id: I540cb738180fc1424f730d6d1998886915ce527b Reviewed-by: <[email protected]> Reviewed-by: David Schulz <[email protected]>
* Python: Use specialized document to check for pylspDavid Schulz2022-03-281-1/+0
| | | | | Change-Id: I9ea13df7fc04a4fe35d901da179b9c0ebaf57bb6 Reviewed-by: Christian Stenger <[email protected]>
* Python: add lsp configuration widgetDavid Schulz2022-02-091-0/+2
| | | | | | Change-Id: I688981293e3bbbee64fc2d714146fcdfa8126458 Reviewed-by: <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
* Python: add python specific language client settingsDavid Schulz2022-01-181-4/+27
| | | | | | Change-Id: I1b9a194f32f3f13381954539229b02e03e3af058 Reviewed-by: <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
* Python: move language client functionality out of utilsDavid Schulz2022-01-181-0/+69
There will be more lsp specific functionality so moving it into its own space is reasonable. Change-Id: Ic87d437182d68673b53f662c804707138fef5b6c Reviewed-by: Christian Stenger <[email protected]>