Skip to content

Commit 6f923d3

Browse files
committed
PythonCodeCompletion: don't use the source_path arg in the Script constructor because buggy caching makes the returns call tips wrong
1 parent 30e184c commit 6f923d3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎PythonCodeCompletion/python/python_completion_server.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def get_doc(self,index):
123123

124124
def complete_tip(self,path,source,line,column):
125125
source=source.replace('\r','')
126-
script = jedi.Script(source,line=line+1,column=column,source_path=path)
126+
#don't use the source_path arg because it causes buggy caching to be used
127+
script = jedi.Script(source,line=line+1,column=column)#,source_path=path)
127128
call_def = script.call_signatures()
128129
calltip = ''
129130
for c in call_def:

0 commit comments

Comments
 (0)