Dave Halter
a6fcf779d4
Fix a small issue created in #1398
2019-09-21 23:29:07 +02:00
Maxim Cournoyer
96d650cab3
test: test_completion: Dynamically resolve current directory name.
...
This fixes issue #1395 (see:
https://github.com/davidhalter/jedi/issues/1395 ).
* test/test_api/test_completion.py(current_dirname): New variable.
(test_file_path_completions): Use it.
2019-09-19 23:35:18 +02:00
Dave Halter
e179b3e526
Add a test for dict key completions
2019-09-07 02:58:21 +02:00
Matthias Bussonnier
5329f95096
Attempt at a test of completion of filepath after ~.
...
I'm not quite sure how this will behave on windows, and we can't really
create a tempdir (as we don't want to mess with path on home.
One possibility would be to mock/monkeypatch scandir, listdir and
os.path.expanduser or set $HOME in env; but I'm quite unsure we want to
go that route.
2019-08-25 19:55:33 +02:00
Dave Halter
ad4f546aca
context -> value
2019-08-15 01:23:06 +02:00
Dave Halter
3b4f292464
Move the evaluate package to inference
2019-08-15 00:14:26 +02:00
Dave Halter
4619552589
Evaluation -> type inference
2019-08-13 01:29:50 +02:00
Dave Halter
1ad4003740
Messed up a Windows test
2019-08-11 20:12:33 +02:00
Dave Halter
1108ad9994
Again a small windows issue fixed.
2019-08-11 20:01:12 +02:00
Dave Halter
f7f9b1e5ec
Need to escape the path backslash for windows slashes
2019-08-11 19:56:57 +02:00
Dave Halter
3d0ac09fc9
Don't add quotes after paths if they are already there
2019-08-10 18:37:10 +02:00
Dave Halter
463cbb1595
Fix one more os.path.join issue
2019-08-08 09:31:13 +02:00
Dave Halter
03608151e8
Fix more issues with os.path path completion
2019-08-08 01:48:25 +02:00
Dave Halter
822394663c
Make join detection much easier
2019-08-08 01:04:08 +02:00
Dave Halter
52517f78b1
Fix some remaining issues with file path completions
2019-08-07 23:00:27 +02:00
Dave Halter
a191b7b458
A few more tests for path completions (join)
2019-08-07 21:11:48 +02:00
Dave Halter
e68273c0ff
Fix quote completions for os.path.join path completions
2019-08-07 20:55:12 +02:00
Dave Halter
aeff5faa3d
Fix first param argument of os.path.join file completions
2019-08-07 20:39:47 +02:00
Dave Halter
0fd3757a51
Fix arglist/trailer issues
2019-08-07 10:16:05 +02:00
Dave Halter
1b064c1078
in os.path.join completions, directories should not end in a slash
2019-08-07 01:37:58 +02:00
Dave Halter
5726c29385
Make some file path completions in os.path.join work
2019-08-07 01:34:46 +02:00
Dave Halter
7c1c4981fb
Fix os.path.join static value gathering
2019-08-06 22:48:28 +02:00
Dave Halter
81488bcd20
os.path.sep should always have a clear value
2019-08-06 19:57:16 +02:00
Dave Halter
99008eef43
Fix string name completion for stuff like dirname and abspath
2019-08-06 19:38:16 +02:00
Dave Halter
3a9dc0ca2e
Fix bytes issue with file path adding
2019-08-06 01:08:57 +02:00
Dave Halter
98a550e352
Python 2 compatibility
2019-08-06 00:42:02 +02:00
Dave Halter
b7c2bacbd2
Fix string additions when used in certain ways
2019-08-05 10:11:36 +02:00
Dave Halter
8108122347
Make string additions work for file path completion
...
With this most simple cases of file path completions should be working now, fixes #493
2019-08-05 01:43:50 +02:00
Dave Halter
e008a515e3
Fix a few more file name completion cases
2019-08-04 22:43:23 +02:00
Dave Halter
fd1e6afd07
A first iteration for file path completions
2019-08-04 13:50:23 +02:00
Dave Halter
fafd6b2ac6
Keyword completions are no longer possible directly after a number, fixes #1085
2019-06-26 15:04:46 +02:00
Dave Halter
7c56052d58
Make infer public on classes
2019-04-01 09:25:00 +02:00
Dave Halter
40d3abe2b2
Remove a print in tests
2018-08-03 00:25:25 +02:00
Dave Halter
38474061cf
Make jedi work with the next parso release
2018-06-29 09:54:57 +02:00
Dave Halter
ba96c21f83
Follow up from the last async issue, fixes more related things about #1092 .
2018-04-24 01:02:31 +02:00
Dave Halter
4dc10e0d4b
Autocompletion in comments should at least not fail
...
Fixes #968
2018-03-01 08:57:32 +01:00
Dave Halter
01ffd2f981
Move most of the regression tests into other test files
2017-12-29 20:26:53 +01:00
Dave Halter
da211aa63d
Use the Script fixture more generally
2017-12-29 18:40:17 +01:00
Dave Halter
63edbdcc5b
Better context completions for finally/except/else/elif
...
Fixes #837
2017-09-15 00:48:56 +02:00
Dave Halter
40b6079ebd
If an INDENT is the next supposed token, we should still be able to complete.
2017-01-29 14:06:22 +01:00
Dave Halter
9fb2644f03
Fix an issue with creating contexts.
2017-01-05 18:05:24 +01:00
Dave Halter
12a9ef48f7
Move the completion tests.
2017-01-04 22:34:43 +01:00