ffi-navigator icon indicating copy to clipboard operation
ffi-navigator copied to clipboard

"FileNotFoundError" when use vscode in windows

Open yhj050806 opened this issue 5 years ago • 7 comments

error log: Traceback (most recent call last): File "C:\Users\Admin\AppData\Roaming\Python\Python39\site-packages\pyls_jsonrpc\endpoint.py", line 113, in consume self._handle_request(message['id'], message['method'], message.get('params')) File "C:\Users\Admin\AppData\Roaming\Python\Python39\site-packages\pyls_jsonrpc\endpoint.py", line 182, in _handle_request handler_result = handler(params) File "C:\Users\Admin\AppData\Roaming\Python\Python39\site-packages\pyls_jsonrpc\dispatchers.py", line 23, in handler return method(**(params or {})) File "C:\Users\Admin\AppData\Roaming\Python\Python39\site-packages\ffi_navigator\langserver.py", line 62, in m_text_document__definition source = open(path).readlines() FileNotFoundError: [Errno 2] No such file or directory: 'c%3A\work\file\technicial_file_record\TVM\incubator-tvm-main\tutorials\language\schedule_primitives.py'

yhj050806 avatar Dec 08 '20 04:12 yhj050806

@masahi it looks like the path issue on Windows?

comaniac avatar Dec 18 '20 17:12 comaniac

Yeah, %3 seems like a space? I don't have access to windows at the moment.

masahi avatar Dec 18 '20 20:12 masahi

Did you install this package via pip? If so, directly install from source code. The package in pip is too old.

lygztq avatar Aug 26 '21 08:08 lygztq

@lygztq I encountered similar error, so tried installing from source but now I get a different error

"UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2228: character maps to << undefined >>"

My environment setting Windows 11. VSCode 1.69.2 - VSCode extension downloaded and installed via marketplace Python 3.7- ffi-navigator installed via build from source version ffi-navigator==0.5.3 (Anaconda)

saurabh-shandilya avatar Jul 29 '22 00:07 saurabh-shandilya

Help!!!!! Already been driven crazy~~ I've encountered the same question in this issue after solving several other installing problems

image

SStarver avatar Aug 30 '22 12:08 SStarver

@tqchen Can you please help?

saurabh-shandilya avatar Aug 30 '22 23:08 saurabh-shandilya

@tqchen Can you please help? Any advices would be much appreciated This problem significantly dispels the passion of TVM beginner like me

SStarver avatar Aug 31 '22 03:08 SStarver