Ryan Clary
b0f664ec94
* reflect default Popen behavior by inheriting os.environ
...
* without passing env_vars to create_environment, GeneralizedPopen behavior is same as before fix to issue #1540 (803c3cb271 )
* env_vars allows explicit environment variables, per PR #1619 (f9183bbf64 )
2020-07-16 19:04:33 -07:00
Dave Halter
7f3a7db7e6
Refactor Interpeter completions a bit
2020-07-12 22:26:57 +02:00
Dave Halter
3ffe8475b8
Make sure the interpreter completions work better in Jupyter Notebook, fixes #1628
2020-07-12 22:20:06 +02:00
Dave Halter
396d7df314
Fix an issue with interpreter completion, see also #1628
2020-07-12 22:02:00 +02:00
Dave Halter
344fef1e2f
Add Project.path, fixes #1622
2020-06-27 02:18:31 +02:00
Ryan Clary
7ec8454fc1
* Provide option to pass environment variables to Environment and CompiledSubprocess (subprocess.Popen)
...
* Extend this option to find_system_enviornments and get_system_environment without breaking API
2020-06-21 08:08:32 -07:00
Dave Halter
be184241fd
Add SyntaxError.get_message
2020-06-16 08:51:54 +02:00
Dave Halter
1872ad311b
Fix decorator param completion
2020-06-15 00:34:55 +02:00
Dave Halter
089a4713e3
Fix a small extract_variable issue, fixes #1611
2020-06-13 01:35:58 +02:00
Dave Halter
3870253b56
Make sure that scopes can only be exact values, see #1590
2020-06-05 23:04:39 +02:00
Dave Halter
21a380f7cb
Merge pull request #1590 from muffinmad/references-scope
...
Get references in the current module only
2020-06-05 19:21:34 +02:00
Dave Halter
24236be3ce
Fix a small issue with doctest completions, fixes #1585
2020-06-05 13:35:36 +02:00
muffinmad
782dedd439
Get references in the current module only
2020-06-03 16:35:28 +03:00
Dave Halter
9980f760b1
Merge pull request #1601 from yuan-xy/patch_3
...
add test case to fix code example in doc
2020-05-31 11:14:58 +02:00
yuan
5946a5cd8c
Refactoring about checking \r\n ( #1603 )
2020-05-31 11:13:30 +02:00
yuan_xy
32687474db
add test case to fix code example in doc
2020-05-31 11:00:15 +08:00
yuan
98a8b6c76c
fix typo ( #1602 )
2020-05-30 12:04:15 +02:00
muffinmad
741097827d
Get references in the current module only
2020-05-21 19:51:13 +03:00
Dave Halter
855fb5a936
Fix potential AttributeError in get_defintion_start_position/get_defintion_end_position, see #1584
2020-05-18 19:21:04 +02:00
Dave Halter
8fdf16b316
Fix an error of get_definition_end_pos, see #1584
2020-05-18 01:44:51 +02:00
Dave Halter
2d17b81313
definition_end_position -> get_definition_end_position, same for start, see #1584
2020-05-18 01:18:22 +02:00
Dave Halter
cb1730f628
Merge pull request #1584 from pappasam/get_definition_position
...
Add BaseName.definition_[start,end]_position
2020-05-18 01:14:00 +02:00
Sam Roeca
716beae455
Add BaseName.definition_[start,end]_position
...
Provides two public (property) methods getting the (row, column) of the
start / end of the definition range. Rows start with 1, columns start
with 0.
:rtype: Tuple[int, int]
2020-05-16 15:08:36 -04:00
Dave Halter
f2975f9a05
Fix a None issue
2020-05-16 00:27:14 +02:00
Dave Halter
d4aa583e16
Fix inline case where a name was removed without the code being used, fixes #1582
2020-05-14 23:08:37 +02:00
Dave Halter
381fbeda6a
Make the diff nicer if there is no ending newline, fixes #1581
2020-05-14 00:20:20 +02:00
Dave Halter
be7a1346ec
Fix #1573 again; a tree_node can be None
2020-05-10 13:29:58 +02:00
Dave Halter
bf4ec2282f
Fix getattr completions on very weird cases, fixes #1573
2020-05-10 11:37:58 +02:00
Dave Halter
25973554e2
Remove the common folder and move it to a common file
2020-05-08 13:23:56 +02:00
Dave Halter
c314e1c36e
Speed up signature fetching for MixedName, see discussion in #1422
2020-04-27 01:53:42 +02:00
Dave Halter
9836a1b347
Very small refactoring
2020-04-26 12:47:44 +02:00
Dave Halter
7fd5c8af8f
Allow files for get_default_project, fixes #1552
2020-04-26 00:33:10 +02:00
Dave Halter
97fb95ec0c
Don't display unnecessary help, fixes #1557
2020-04-26 00:21:01 +02:00
Josh Bax
912fe68069
Fix typos in api.classes docstrings
2020-04-24 10:34:46 +02:00
Josh Bax
be82d5ff36
Remove a redundant check from Name.desc_with_module
2020-04-24 10:34:46 +02:00
Dave Halter
784f9ff081
Actually fix #1556 , forgot to add this in 94d374c9ce
2020-04-23 10:10:58 +02:00
Dave Halter
0850b86456
Also don't complete keywords if kwargs only are allowed, see #1541
2020-04-17 23:51:40 +02:00
Dave Halter
f07dee3564
Completion: Don't suggest variables when only kwargs are legal, fixes #1541
2020-04-17 22:59:26 +02:00
xu0o0
f871f5e726
fix #1548
2020-04-17 19:24:05 +02:00
Dave Halter
8aaa8e0044
Project._python_path -> Project.environment_path
2020-04-14 23:14:07 +02:00
Dave Halter
9ccb596f93
Extract now properly validates line/column and those two params are required
2020-04-13 23:15:42 +02:00
Dave Halter
bdd4deedc1
Some code cleanups
2020-04-11 02:11:52 +02:00
Dave Halter
9d55194b92
Don't reuse a variable
2020-04-11 01:40:41 +02:00
Dave Halter
5a3565785c
Add pyproject.toml to the list of files to search for projects
2020-04-11 00:51:28 +02:00
Dave Halter
0f2a7215bb
Use the interpreter environment if the executable is not available, fixes #1531
2020-04-02 20:59:35 +02:00
Dave Halter
604029568c
Fix string completion issue, fixes #1528
2020-03-26 15:47:27 +01:00
Dave Halter
a2764283ba
Merge branch 'refactor'
2020-03-21 02:54:07 +01:00
Dave Halter
0ffd566957
Merge branch 'project'
2020-03-21 02:52:51 +01:00
Dave Halter
5f6a25fb58
Add deprecations warnings, to deprecated functions in the main API
2020-03-21 02:30:07 +01:00
Dave Halter
8000d425ec
Don't use desc_with_module in integration tests
2020-03-21 01:47:00 +01:00