forked from VimPlug/jedi
Increase maximum recursion depth. Makes sense for very complicated code (completions within Jedi), since Jedi itself uses so many recursions.
This commit is contained in:
@@ -11,6 +11,7 @@ possible.
|
|||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
|
import sys
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
|
|
||||||
from jedi._compatibility import next, unicode, builtins
|
from jedi._compatibility import next, unicode, builtins
|
||||||
@@ -35,6 +36,10 @@ from jedi.evaluate.helpers import FakeName
|
|||||||
from jedi.evaluate.finder import get_names_of_scope
|
from jedi.evaluate.finder import get_names_of_scope
|
||||||
from jedi.evaluate.helpers import search_call_signatures
|
from jedi.evaluate.helpers import search_call_signatures
|
||||||
|
|
||||||
|
# Jedi uses lots and lots of recursion. By setting this a little bit higher, we
|
||||||
|
# can remove some "maximum recursion depth" errors.
|
||||||
|
sys.setrecursionlimit(2000)
|
||||||
|
|
||||||
|
|
||||||
class NotFoundError(Exception):
|
class NotFoundError(Exception):
|
||||||
"""A custom error to avoid catching the wrong exceptions."""
|
"""A custom error to avoid catching the wrong exceptions."""
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ from jedi.evaluate import imports
|
|||||||
# This is something like the sys.path, but only for searching params. It means
|
# This is something like the sys.path, but only for searching params. It means
|
||||||
# that this is the order in which Jedi searches params.
|
# that this is the order in which Jedi searches params.
|
||||||
search_param_modules = ['.']
|
search_param_modules = ['.']
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class ParamListener(object):
|
class ParamListener(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user