1
0
forked from VimPlug/jedi
Commit Graph

68 Commits

Author SHA1 Message Date
Dave Halter
8a4b079d0f allow_descriptor_getattr -> allow_unsafe_interpreter_executions 2023-07-29 00:06:55 +02:00
Patterson, Kevin R
fac0b7f068 instance_allow_descriptor_getattr as public setting 2023-02-10 05:43:21 -06:00
Dave Halter
8f167be980 Merge branch 'master' of github.com:davidhalter/jedi 2020-07-23 01:33:06 +02:00
Dave Halter
e86afc1705 _cropped_file_size should be an int, fixes #1639 2020-07-23 01:32:37 +02:00
Peter Law
9505dabfef Reflow for linting 2020-07-21 21:32:22 +01:00
Max Mäusezahl
1115cbd94d This fixes two issues with the caching on Windows:
* the cache directory should really be %LOCALAPPDATA%
 * ~ is not a meaningful directory on Windows. It should really be
   os.path.expanduser('~'). To be honest it is probably always safe to
   assume that os.getenv('LOCALAPPDATA') executes to something sensible
   on any Windows system that hasn't been tampered with.
2020-05-10 11:46:29 +02:00
Dave Halter
ffbaa4afea Improve settings documentation 2020-03-19 01:53:47 +01:00
Dave Halter
290e2151df Remove use_filesystem_cache and additional_dynamic_modules, it hasn't been implemented for a long time 2020-01-23 23:37:36 +01:00
Dave Halter
cc8a3f192d Removed settings.no_completion_duplicates 2020-01-23 23:16:02 +01:00
Dave Halter
3219f14c63 Files bigger than one MB (about 20kLOC) get cropped to avoid getting stuck completely
Fixes #843
2019-12-14 12:39:40 +01:00
Dave Halter
39162de2a8 Some more minor adaptions 2018-09-05 01:49:19 +02:00
Dave Halter
f4aad8bbfe Finally make it possible to use auto_import_modules for packages
This means that you can now write 'from gi.repository import Gtk' and Gtk completions work.

It also means that other libraries could be used like that for speed or other reasons.

Fixes #531
2018-07-03 00:58:43 +02:00
Dave Halter
22b0c0f1fe Rework the time cache. 2018-04-15 15:51:16 +02:00
Dave Halter
a972d49e88 Cache default environment 2018-04-15 15:28:05 +02:00
Dave Halter
f4ba71f6a3 Move the recursion limit settings to the recursion module. 2017-09-17 14:08:39 +02:00
Dave Halter
90b531a3b3 Correcting a sentence. 2017-05-15 11:10:22 -04:00
Dave Halter
d0b6d41e99 Remove the old star import cache, because it's not even used. 2017-03-18 03:30:23 +01:00
Dave Halter
f627d541b8 Trying to fix the docs. 2017-02-02 23:39:10 +01:00
Dave Halter
1ff7ecc7af Remove jedi.settings.add_dot_after_module that was removed a while ago from documentation. 2017-01-23 00:12:02 +01:00
Dave Halter
c728148ece Fix an issue with dividing suites and remove a lot of print statements. 2016-09-23 17:31:29 +02:00
Dave Halter
e371b670f5 Remove a comprehension hack in the parser that would have made the diff parsers world hell. 2016-09-22 18:26:09 +02:00
Dave Halter
ccc325616a Temporarily fix an issue with list comprehensions. 2016-09-19 05:28:35 +02:00
Dave Halter
1226962922 Remove dedents from the parser tree. No need for them. 2016-09-11 13:03:29 +02:00
Dave Halter
68ff520cf8 Limit dynamic param searches to not go crazy in a lot of occasions. Refs #574. 2016-07-17 19:49:43 +02:00
Dave Halter
75c1ebc2fe Add a max_dynamic_params_depth setting to limit recusive searching for those params. It shouldn't be too crazy. 2016-07-17 13:59:19 +02:00
Dave Halter
cbef4235ff Remove needs_dot and settings.add_dot_after_module. Both are not really used anymore with context completions anymore.
Also the setting doesn't seem to be used anywhere as far as I can tell.
2016-06-22 22:52:10 +02:00
Dave Halter
e477fab856 Playing with the fast parser implementation. 2015-01-16 15:23:49 +01:00
Dave Halter
4c3584ed3c Removed the dynamic_arrays_for_instances setting, because it's a subset of dynamic_array_additions, which is more concise. 2014-12-08 16:36:37 +01:00
Dave Halter
05fd7f992e Don't use the fast parser at the moment. It's more important for now to even get a parser working. 2014-10-09 14:36:52 +02:00
Dave Halter
47205dd7f3 change the implementation of compiled.load_module and always use the sys.modules cache after an import, because it's easier. Doesn't require any logic. 2014-06-25 18:57:07 +02:00
Dave Halter
e5efd6e5c8 add a setting auto_import_modules to fix autocompletion for modules that use setattr and companions a lot. fixes #151 2014-06-25 17:14:31 +02:00
David Halter
9023d01dcb jedi settings should have its own documentation page, #212 2013-08-31 18:04:07 +04:30
David Halter
2e8432de21 don't use function_definition as a name anymore, also not in helper functions 2013-08-21 13:38:13 +04:30
David Halter
972d4e9a08 fix a problem with dynamic flow information and usages 2013-07-24 01:28:15 +02:00
Takafumi Arakaki
5de63873df Fix and improve settings.cache_directory document
fixes #244
2013-06-19 15:38:24 +02:00
David Halter
c0bb6ff04b even more deletions (clean up for last commit) 2013-05-03 19:35:51 +04:30
David Halter
88e60b85e0 best patch in a long time, deleted all the part_parser stuff which was necessary for fast function_definitions, but with the new parser Jedi's fast enough -> fixes #136 2013-05-03 19:33:24 +04:30
David Halter
5dd05eff1a a basic approach to the new fast parser 2013-04-10 22:33:49 +04:30
David Halter
f8e0c78f77 Script.get_in_function_call -> Script.function_definition 2013-02-21 22:05:39 +04:30
David Halter
69137a48f0 pep8 2013-02-06 13:04:27 +01:00
David Halter
c7627b10be recursion docstring 2013-02-06 00:08:34 +01:00
David Halter
3faf50049b fix sphinx warnings/errors 2013-02-04 11:09:07 +01:00
Danilo Bargen
46d49fd66c Cross platform cachedir, again.
Another attempt at getting a cross-platform and (on Linux) XDG compliant cache dir.

Squashed commit of the following:

- Correct usage of os.getenv (thx @tkf)
- Use `~/.cache/jedi` as default fallback, not `~/.jedi`
- Updated cache location for OS X
- Added expanduser to cachedir
- Cross platform cachedir, again.
2013-01-15 00:17:24 +01:00
David Halter
1017db903c basic pickle implementation #102 2013-01-11 22:00:03 +01:00
David Halter
c923c93ccc default directory for parser caches: HOME, #102 2013-01-10 17:32:02 +01:00
David Halter
cc3168ee0a added filesystem cache options 2013-01-10 10:32:47 +01:00
Danilo Bargen
a4e1fe47fd Improved plugin api documentation 2013-01-02 20:10:59 +01:00
Takafumi Arakaki
d89f469e12 Add intro part in settings.py 2013-01-02 20:09:46 +01:00
Takafumi Arakaki
51b22e0cb5 Add docstrings to all variables in settings.py 2013-01-02 20:09:46 +01:00
Takafumi Arakaki
c11a4fc050 Add top level docstring to settings.py 2013-01-02 20:09:46 +01:00