1
0
forked from VimPlug/jedi
Commit Graph

10 Commits

Author SHA1 Message Date
Dave Halter
26cce4d078 Add the grammar as an argument to saving the parser.
This makes collisions of different grammars when loading from the cache impossible.
2017-03-22 18:32:49 +01:00
Matthias Bussonnier
bb8fe0b24c A missing docstring. 2017-03-14 23:54:38 +01:00
Dave Halter
5b9e5f96aa Merge with master. 2017-01-02 13:05:45 +01:00
Dave Halter
68fabc3048 Increase parser pickling. 2016-12-20 09:51:13 +01:00
Daniel Hahler
a5480c054d parser.utils.clear_cache: clear self.__index
This fixes a potential FileNotFoundError when clearing the cache
manually, using the method from
https://github.com/davidhalter/jedi-vim/pull/625.

Traceback:

```
  File "…/jedi/evaluate/imports.py", line 342, in _do_import
    module = _load_module(self._evaluator, module_path, source, sys_path, parent_module)
  File "…/jedi/evaluate/imports.py", line 457, in _load_module
    cached = load_parser(path)
  File "…/jedi/parser/utils.py", line 72, in load_parser
    return ParserPickling.load_parser(path, p_time)
  File "…/jedi/parser/utils.py", line 126, in load_parser
    with open(self._get_hashed_path(path), 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '…/.cache/jedi/cpython-35/759d60e96c76f41ffd882d9b8d844899.pkl'
```
2016-10-14 14:25:18 +02:00
Dave Halter
b9040870c0 Some ideas for a diff parser. 2016-08-14 00:23:40 +02:00
Dave Halter
2ae3aee7d0 Increase parser pickling version to reduce bugtracker issues in the future with people upgrading git commits. 2016-08-07 13:05:14 +02:00
Dave Halter
0223471237 Increase the parser pickling version. 2016-07-03 12:31:57 +02:00
Dave Halter
9245181a8c Some python 2.7 (and 3.3) compatibility improvements. 2016-07-03 02:54:21 +02:00
Dave Halter
d5098ef096 Forgot to add parser/utils.py. 2016-06-30 19:36:48 +02:00