Commit Graph

248 Commits

Author SHA1 Message Date
Ilya.Kazakevich
930b8a9f3c Result cleanup
GitOrigin-RevId: 4c3146734479e6abc155fd901b65bd8c93d2d0c3
2020-10-30 22:48:20 +00:00
Semyon Proshev
3d31f690f3 Re-use already calculated sdks in guessing language level
Drop `isPythonModule` call since it breaks PyStringLiteralTest.testEscapedUnicodeInLiterals.

GitOrigin-RevId: 6f5ea083a72bdb29826466a50f62cdf84cd26960
2020-10-19 16:36:20 +00:00
Semyon Proshev
603ae74c21 Make python disposable name more descriptive and not looking like interface
GitOrigin-RevId: 5009db52c121efbbf04952d3843b64ff4dc5888d
2020-10-16 14:44:56 +00:00
Vladimir Krivosheev
924abe229c cleanup (get rid of ServiceManager.get)
GitOrigin-RevId: 7f6a905353889c9795e5d40a8aa60f6251000f05
2020-10-16 11:34:52 +00:00
Vladimir Krivosheev
9ca499570c auto dispose of plugin disposables
GitOrigin-RevId: d3dd18f56168ed9ff421c9f84deabf1bb68d7f1d
2020-10-09 11:59:02 +00:00
Semyon Proshev
d95b00fdd8 Avoid application/project/module as parent disposable in python-related code
And fix several warnings.

GitOrigin-RevId: e97dae3116177bd919bc4ea51ceb1a3e7657e2cb
2020-09-29 10:04:22 +00:00
Mikhail Golubev
0f5277633b PY-43773 Correctly release VFS listeners detecting changes under interpreter roots
Previously, because we re-create instances of PyPackageManager, where they
are registered, on each change of the corresponding SDK, we could pile up stale
listeners, possibly processing relevant VFS changes and, thus, triggering SDK
updates multiple times.

GitOrigin-RevId: a9e6d3d87ca54114271efc220c3759ee6ae94ff3
2020-09-25 20:04:02 +00:00
Mikhail Golubev
49b9d76a03 i18n: Process remaining problems in Python project wizard
* Don't use message keys in isolation, without bundles
* Use HtmlBuilder for multiline HTML warnings

GitOrigin-RevId: 7652154d09e1237804cb690ed2dd763e1c60fd4d
2020-09-10 20:37:17 +00:00
Mikhail Golubev
2b1e7d872b i18n: Migrate packaging error messages containing links to HtmlBuilder
GitOrigin-RevId: 83bb593c6fed9a284d1a3c9a3ee57ce604670c91
2020-09-05 16:32:39 +00:00
Ilya.Kazakevich
953c37722f PY-40431: i18n: Result can be localized or not dependning on annotation
GitOrigin-RevId: e76acb018492a26d2e3f965d37685bd383964b7a
2020-08-30 14:08:02 +00:00
Ilya.Kazakevich
694162565c PY-40431: WSL i18n
GitOrigin-RevId: cdd28e2fe19715dcaf4fcb23bc64244ec9c9b102
2020-08-29 01:40:16 +00:00
Mikhail Golubev
c31fbeb18c i18n: Annotate PyRequirement#getPresentableText as @NlsSafe
GitOrigin-RevId: 504450af157c9bab9fb9ce40324287b46be817c5
2020-08-26 10:01:25 +00:00
Mikhail Golubev
73185f09fc i18n: Annotate WeakFileReference#getUnresolvedDescription() similarly to PsiReferenceEx
GitOrigin-RevId: b33030faf98ed9b9787f000a86f2b5977f6d5dd1
2020-08-25 13:39:01 +00:00
Mikhail Golubev
bc607f85ed i18n: Extract messages from remaining pure-Python inspection
* PyTypeCheckerInspection
* PyTypedDictInspection
* PyUnnecessaryBackslashInspection
* PyUnresolvedReferencesInspection
* PyUnusedLocalInspectionVisitor
* PyTypeHintsInspection

GitOrigin-RevId: 62d72bf38ef48412baf52960bc9da2b9f6d09070
2020-08-24 13:16:58 +00:00
andrey.matveev
13bed886ac i18n Fixes in remote interpreters
GitOrigin-RevId: 82ea247ba597511682b2e1f633ecde6b57718762
2020-08-19 17:08:05 +00:00
Alexey Kudravtsev
ffa825af57 use file.isCaseSensitive() instead of some VirtualFileSystem.isCaseSensitive()/SystemInfo.isCaseSensitive to support per-directory case sensitivity
GitOrigin-RevId: d7e7ecbba51a13c13935001238825b3740888458
2020-07-31 15:25:37 +00:00
Stanislav Utikeev
d8e63de195 LAB-31 Extract documentation service EPs to analysis API
GitOrigin-RevId: 6c4f05e4a625b9a855f0371cf2b39603fa4cc624
2020-07-10 12:29:55 +00:00
Vladimir Krivosheev
acb302b622 deprecate guava Lists.*
GitOrigin-RevId: c8a746f6620e525ba8f32e4d79dd6a40949e4bc6
2020-04-22 12:17:34 +00:00
Aleksei Kniazev
6cb5115bed more tests and improvements for python requirements generation (PY-18847)
GitOrigin-RevId: 2176648fd9021b3734e29c72b9daaa98e81a108a
2020-03-12 09:39:39 +00:00
Alex Plate
6174593c2b Fix some iml files (extra whitespaces / senseless paths)
GitOrigin-RevId: 48fc2ad90766f699b115536aa124799c451ea7a9
2020-03-10 15:23:35 +00:00
Aleksei Kniazev
2fded2d1a4 generate requirements.txt using project imports (PY-18847)
GitOrigin-RevId: 55ca1c33ca339a3966af3457fb4289278586ed8f
2020-02-24 22:36:13 +00:00
Vladimir Krivosheev
ba98224912 remove author (only some, where it is ok)
GitOrigin-RevId: 7dbab7524fe4efc5d17a04b95dee88b6f80fbe8d
2020-01-21 17:36:52 +00:00
Tagir Valeev
78a91459c4 Array annotations changed to type-use style (not compilable now)
GitOrigin-RevId: 68aa4ba200618083684599228e13dfdba35967a4
2020-01-16 08:11:51 +00:00
Stanislav Utikeev
dc47318681 Make python.community module depend on submodule of platform.ide
GitOrigin-RevId: 045d627027990d506de7b9a0402c687b01acb2ea
2020-01-09 15:10:17 +00:00
Vladimir Krivosheev
b4425ec731 pass project explicitly and do not rely on ProjectLocator
GitOrigin-RevId: 4e58147dc24b3df92da056a62d8846acc8937481
2019-12-08 18:06:17 +00:00
Dmitry Trofimov
7ec5c11c93 Don't depend on testFramework and make python-openapi not depend on lang
GitOrigin-RevId: c34a51bb984110d087fdddeff41c304f362ba4fe
2019-12-03 15:11:09 +00:00
Dmitry Trofimov
5c3d6b7bb1 python-psi-impl shouldn't depend on lang-api
GitOrigin-RevId: db25c76e0ea09f80406fdf6b4998c2a9ad0a9a2b
2019-09-26 18:01:42 +00:00
Ilya.Kazakevich
5be8b0e797 Fixed according to exception message ": com.jetbrains.python.packaging.PyPackageManagers requested as a service, but it is a component - convert it to a service or change call to ApplicationManager.getApplication().getComponent()"
GitOrigin-RevId: f2ac16f8d03f7c7d63d0260c918d052feea3dc26
2019-08-29 19:42:23 +00:00
Konstantin Bulenkov
bc73a434e1 Remove unused imports and import duplicates from java files
GitOrigin-RevId: e5d5f6df09f21ae2e894451bf0c5255f82836755
2019-07-24 21:02:56 +03:00
Rustam Vishnyakov
123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan
c1813cfb52 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Eldar Abusalimov
18962d3d42 Merge remote-tracking branch 'origin/master' into eldar/cidr-debugger
# Conflicts:
#	CIDR/cidr-debugger/resources/META-INF/CidrDebuggerPlugin.xml

GitOrigin-RevId: de8e0298bef122544fd1af40c209050903b3d263
2019-06-16 03:02:17 +03:00
Eldar Abusalimov
1120c30a56 Merge remote-tracking branch 'origin/master' into eldar/cidr-debugger
# Conflicts:
#	CIDR/clion/src/com/jetbrains/cidr/cpp/toolchains/MSVC.java

GitOrigin-RevId: f3593b526d1870f32b3f1451cab0c6a653e5beb5
2019-06-16 03:01:38 +03:00
Anna Kozlova
91f7445298 constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdan
39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Julia Beliaeva
3fee046d20 [vcs-log] cleanup RootCellRenderer
GitOrigin-RevId: bba216626193ac756cd133b8ae9bc4e577abea42
2019-06-10 04:10:14 +03:00
Eldar Abusalimov
dcaeb8f8c7 OC-4061: ApplicationUtil: Make runWithCheckCanceled() return result
GitOrigin-RevId: 3aa9f23cc5097e644eddf82a4faca669759b4760
2019-06-10 04:09:35 +03:00
Semyon Proshev
a2230a6e6b Apply API notes planned for 2019.2
GitOrigin-RevId: 979edb0c2c360b27cbac2cf313fbca182dbfeba0
2019-06-08 15:09:07 +03:00
Ilya.Kazakevich
eecac1e6d6 PY-32928: Support cases where remote interpreter is invalid (distro removed in case of WSL)
* Result<Success, Failure> class added to be used instead of null
* EP added to validate remote interpreters
2019-02-26 19:32:19 +03:00
Dmitry Trofimov
27fe2ff3f8 Avoid NPE 2018-11-05 17:30:52 +01:00
Dmitry Trofimov
6774d3fa08 Refactoring: move quick doc extraction to the corresponding responsible provider 2018-10-30 23:19:42 +01:00
Anna.Kozlova
c4b7de202d remove redundant suppressions 2018-10-04 12:09:46 +02:00
Vladimir Krivosheev
4449784b35 IDEA-98563 make all RC types singletons by default 2018-08-21 20:30:39 +02:00
Mikhail Golubev
c942325636 PY-29977 Add a note about removal estimates for #getExternalDocumentationRoot 2018-06-18 18:56:36 +03:00
Andrey Vlasovskikh
5fc64675b9 PY-26492 Quick-fix to install missing requirements via 'pipenv install' 2018-06-15 21:24:41 +03:00
Mikhail Golubev
519c77d416 PY-29977 Don't access external doc URLs to validate them in getUrlFor()
This method is used both to check possible sources of external
documentation in DefaultDocumentationCollector#getDocumentation()
(executed inside a read action) and to show links
at the end of Quick Documentation in DocumentationComponent
(happens on EDT). In both cases network access may badly affect editor
responsiveness. The correct approach here is to provide the most
accurate URL right away in PythonDocumentationMap and
PythonDocumentationProvider implementations instead of falling back to
the documentation root.

As a result, PythonDocumentationLinkProvider#getExternalDocumentationURL
is no longer necessary and thus deprecated.
2018-06-14 11:48:22 +03:00
Liana Bakradze
ab3e29a9ec PY-8362 input redirection for python script run configurations 2018-06-09 17:16:51 +03:00
Semyon Proshev
2a94bba791 Apply deprecation notes in packaging
Make PyRequirementVersionSpec an interface
Make PyRequirement an interface
Add documentation to packaging classes that could be useful for other developers
2018-05-25 18:49:56 +03:00
Tagir Valeev
4002c0e067 CleanUp: redundant String operation fixes applied 2018-03-01 13:13:39 +07:00
Anna.Kozlova
48d3ce215c make private fields final 2018-02-07 09:44:30 +01:00