Commit Graph
21195 Commits
Author SHA1 Message Date
Ekaterina Tuzova 4c4f0413a9 more info when html preview failed 2018-06-18 16:41:13 +03:00
Ekaterina Tuzova ec97693208 sanitize html only for swing panel
PY-30466 reST preview: support "code" and "code-block"
PY-30472 reST preview: support literal blocks
PY-30473 reST preview: support doctest blocks
PY-30475 reST preview: improve table rendering
2018-06-18 16:41:13 +03:00
Ekaterina Tuzova ecef301d86 switch between javafx and swing preview panels 2018-06-18 16:41:12 +03:00
Ekaterina Tuzova b100fa9621 get docutils from helpers 2018-06-18 16:41:12 +03:00
Ekaterina Tuzova 4baf285e7d no preview available message 2018-06-18 16:41:11 +03:00
Ekaterina Tuzova 0f8e7428ed added simple preview for restructured text 2018-06-18 16:41:11 +03:00
Andrey Vlasovskikh 6c40801ff0 PY-26492 Fixed re-setting Sdk.isPipEnv flag 2018-06-18 16:08:57 +03:00
Gregory.Shrago a3f3558fc5 historical typo fixed: spaceExistenceTypeBetweenTokens: usages 2018-06-18 15:36:53 +03:00
Andrey Vlasovskikh 00896b683d Moved working tests from staging to the main suite 2018-06-18 15:23:28 +03:00
Andrey Vlasovskikh 9c6480b7ec Moved former skeletons test for namedtuple() to regular tests 2018-06-18 15:14:02 +03:00
Alexey Kudravtsev 2faaf16e26 added missing @Deprecated to find these places later 2018-06-18 13:24:28 +03:00
Andrey Vlasovskikh 411ea0db10 PY-26492 Nullity annotations 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh fea82b1c6f PY-26492 Made functions private and converted to expressions for readability 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 8d4f9a316f PY-26492 Use Files.isExecutable as a safer option to detect UAC protection on Windows 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 8aecd3e87b PY-26492 Fixed broken Python packaging requirements API usage after rebase 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 895a93437e PY-26492 Moved most of the Pipenv support into separate *.pipenv packages
There are several places in our code base that still depend on the
Pipenv support explicitly. The idea is to introduce extension points for
those places in subsequent releases.
2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh ef05ff3a98 PY-26492 Show detailed progress messages when running pipenv 2018-06-15 21:24:41 +03:00
Andrey VlasovskikhandAndrey Vlasovskikh 6d3ff052b4 PY-26492 Added missing docstrings and re-used constants 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 2e35149e32 PY-26492 Balloon about changed and not locked Pipfile and a link to lock it 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh b996b92254 Put private members after public ones 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 503dd63801 PY-26492 Warning about Pipenv interpreter not associated with the current project 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh cd54c4655c PY-26492 Warning about missing pipenv with the comment on how to specify the path to it 2018-06-15 21:24:41 +03:00
Andrey VlasovskikhandAndrey Vlasovskikh 5fc64675b9 PY-26492 Quick-fix to install missing requirements via 'pipenv install' 2018-06-15 21:24:41 +03:00
Andrey VlasovskikhandAndrey Vlasovskikh 5ad19e832e PY-26492 Check unsatisfied package requirements using Pipfile.lock 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 33d9060397 PY-26492 Update the interpreter version when updating a local Python SDK
The interpreter could be re-created externally by the same path but
with a different Python version, that otherwise will be stored in the
jdk.table.xml forever.
2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 8ffcba1128 PY-26492 Show the version of a Pipenv interpreter 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh c87c5c0cb0 PY-26492 Configurable location for Pipenv 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh e464ea9467 PY-26492 Package indices based on Pipfile.lock 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 3236f9c171 Got rid of legacy table-based package index format
PyPI dropped it for pypi.org and other known package repositories use
only the simple index format.
2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 36bc681d5f Refactored load*AdditionalPackages() to accept the explicit list of repositories to load
This change is needed to utilize the packages cache for package
management services with indices defined outside of PyCharm, like
pipenv.
2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 16980455ae PY-26492 Install, uninstall, show list of packages via pipenv 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh d389b8539d Removed unnecessary Map.containsKey() before remove() 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh e7f69c99e5 Fixed NPE 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 780cb3698b PY-26492 Show the base interpreter combo box instead of Python version field
The user might want to specify a custom path to an interpreter the same
way they do with `pipenv --python /path/to/python`. We removed the
ability to specify just a version of Python since Pipenv finds a
corresponding interpreter on `$PATH` anyway and we do exactly that in
our base interpreter combo box.
2018-06-15 21:24:41 +03:00
Andrey VlasovskikhandAndrey Vlasovskikh f8aeacb991 PY-26492 Search for pipenv.exe on Windows
On Linux and macOS it's just pipenv, but on Windows the binary has the
.exe extension.
2018-06-15 21:24:41 +03:00
Andrey VlasovskikhandAndrey Vlasovskikh 5b4788300b PY-26492 Re-use SdkConfigurationUtil 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh af417aba9f PY-26492 Automatically setup pipenv environment for opened directories with Pipfile 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 1a1252077b Rewritten PythonSdkConfigurator to prefer associated Python environments 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh a65a3f894c PY-9081 PY-12247 PY-26492 Associate interpreters with modules, not with projects 2018-06-15 21:24:41 +03:00
Andrey Vlasovskikh 31bd9482b4 PY-26492 Pipenv environment type for the new project dialog 2018-06-15 21:24:41 +03:00
Andrey VlasovskikhandAndrey Vlasovskikh 68e1c86c0c PY-26492 Quick fix for setting up pipenv for project in PyCharm 2018-06-15 21:24:41 +03:00
Andrey VlasovskikhandAndrey Vlasovskikh 0d8b5fc93e PY-26492 Panel for adding pipenv interpreters 2018-06-15 21:24:41 +03:00
Alexey Kudravtsev 7002d622bc removed deprecated unused members 2018-06-15 15:31:04 +03:00
Ilya.Kazakevich 4f390f8603 PY-15464: Ability to select configurations (for pytest BDD)
See PyTestConfigurationSelector
2018-06-15 00:30:18 +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
Mikhail Golubev d16e067bef PY-29717 Utilize try-with-resources to load documentation for keywords 2018-06-14 11:48:21 +03:00
Mikhail Golubev e27d677915 PY-30432 Remove explicit links to external documentation from Quick Doc
Because they are inserted automatically in DocumentationComponent, thus
otherwise we end up showing them twice.
2018-06-14 11:48:21 +03:00
Ilya.Kazakevich c4dfbb0c89 PY-30153: code cleanup and refactoring by IDEA-CR-33143
Invert condition, do fast checks first
2018-06-14 01:19:22 +03:00
Ilya.Kazakevich 4b02e0a4e5 PY-27630: Sync with github: rescue old pytest fixture
According to IDEA-CR-33298
2018-06-14 00:52:43 +03:00
Semyon Proshev 00c27e319e Highlight list literal passed as generic parameter to typing member (PY-20530) 2018-06-13 23:12:49 +03:00