summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.h
Commit message (Collapse)AuthorAgeFilesLines
* Python: add create venv actionDavid Schulz2023-03-211-0/+4
| | | | | | | | | The action can be triggered from the interpreter chooser of the editor toolbar. Change-Id: Ie23b68a3790525ea02883ef359b357a0d317b2f5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Python: add interpreter selector to editor toolbarDavid Schulz2023-01-201-0/+1
| | | | | | Fixes: PYSIDE-2154 Change-Id: If5e90f5bf2923b61af37ebbfcd35c512b3b07db4 Reviewed-by: Christian Stenger <christian.stenger@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>
* 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-4/+2
| | | | | | Change-Id: I0241053b0d51dbb1a60c43351cbff543fd52573d Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Remove or replace a few unnecessary #includeshjk2022-05-201-1/+1
| | | | | | Change-Id: I0545533baab57a4383fda5fd680603fdc6459a01 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Python: extract pythonProjectForFile function to utilsDavid Schulz2022-03-281-0/+3
| | | | | Change-Id: I4055527302cab09f55cd4b06bfd3896accb4832a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: move python name cache to utilsDavid Schulz2022-03-281-0/+1
| | | | | Change-Id: I7f6d13a465be6de90aea64e7f19c92bca3ee6c19 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* PythonEditor: Fix a leak of console process on shutdownJarek Kobus2022-01-201-1/+1
| | | | | | | | | | | | | | | Give a parent for console process in order to delete it on shutdown. In case the console process was started and the user closed the Creator we were leaking console process instance together with its process. Connect to ConsoleProcess::finished() instead of stubStopped(). There is no point to keep the console open when the process finished (it forces the user to manually close the stub window by pressing enter). Change-Id: I3f14e940f39b32e11bde276e80f3cb630b13d8f7 Reviewed-by: hjk <hjk@qt.io>
* Python: move language client functionality out of utilsDavid Schulz2022-01-181-39/+1
| | | | | | | | 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>
* Python editor: Add buttons & actions for opening REPLEike Ziller2020-03-191-0/+4
| | | | | | | | Opens interactive Python, optionally with the current file imported, for testing and experimentation. Change-Id: Ieb120e3698bdba77a1445c40fe7fda533773a0cf Reviewed-by: David Schulz <david.schulz@qt.io>
* Python: Fix MSVCs struct vs. class (forward) declaration warningAlessandro Portale2020-02-201-1/+1
| | | | | | | | | | | src\plugins\python\pythonutils.cpp(67): warning C4099: 'Python::Internal::PythonLanguageServerState': type name first seen using 'class' now seen using 'struct' src\plugins\python\pythonutils.cpp(66): note: see declaration of 'Python::Internal::PythonLanguageServerState' Change-Id: Ibec8b0b990ee88fcd274961db4c8d8d0ee29533a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: detect language server for python asynchronDavid Schulz2020-02-201-0/+5
| | | | | | Change-Id: I775e4cc21dc443b9ec6af81fabef9cf2bfd4e7d2 Fixes: QTCREATORBUG-23599 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: close all info bars after language server setupDavid Schulz2019-10-251-7/+31
| | | | | Change-Id: I607f7cb5a31f3db0c7d7d77011860a1ea87eb8d2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Python: Switch pyls on interpreter changeDavid Schulz2019-10-181-0/+43
Change-Id: I458b635986a55003a1e7254e27e2df9667704273 Reviewed-by: Christian Stenger <christian.stenger@qt.io>