Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Constant error #11

Open
maquejp opened this issue Dec 27, 2020 · 1 comment
Open

Constant error #11

maquejp opened this issue Dec 27, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@maquejp
Copy link

maquejp commented Dec 27, 2020

Hello,

I have this error in the OUTPUT (Snooty Language Client) can you help me about it?

I am on OSX (BigSur 11.1)

❯ python --version
Python 3.8.2

Thank you.

`
WARNING:pyls_jsonrpc.endpoint:Ignoring notification for unknown method textDocument/didSave
WARNING:pyls_jsonrpc.endpoint:Ignoring notification for unknown method workspace/didChangeWatchedFiles
ERROR:pyls_jsonrpc.endpoint:Failed to handle request 238
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
self._handle_request(message['id'], message['method'], message.get('params'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
handler_result = handler(params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
return method((params or {}))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 424, in m_text_document__completion
return self.completions(textDocument['uri'], position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 402, in completions
line_content = self.project.get_line_content(filePath, position["line"])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1433, in get_line_content
return self._project.get_line_content(path, position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1149, in get_line_content
page = self.pages[fileid]
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1008, in getitem
return self.__postprocessed[key]
KeyError: FileId('docs/source/Starting-with-the-API.rest')
[Error - 5:26:01 PM] Request textDocument/completion failed.
Message: KeyError: FileId('docs/source/Starting-with-the-API.rest')
Code: -32602
[object Object]
ERROR:pyls_jsonrpc.endpoint:Failed to handle request 239
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
self._handle_request(message['id'], message['method'], message.get('params'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
handler_result = handler(params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
return method(
(params or {}))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 424, in m_text_document__completion
return self.completions(textDocument['uri'], position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 402, in completions
line_content = self.project.get_line_content(filePath, position["line"])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1433, in get_line_content
return self._project.get_line_content(path, position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1149, in get_line_content
page = self.pages[fileid]
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1008, in getitem
return self.__postprocessed[key]
KeyError: FileId('docs/source/Starting-with-the-API.rest')
[Error - 5:26:01 PM] Request textDocument/completion failed.
Message: KeyError: FileId('docs/source/Starting-with-the-API.rest')
Code: -32602
[object Object]
ERROR:pyls_jsonrpc.endpoint:Failed to handle request 240
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
self._handle_request(message['id'], message['method'], message.get('params'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
handler_result = handler(params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
return method((params or {}))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 424, in m_text_document__completion
return self.completions(textDocument['uri'], position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 402, in completions
line_content = self.project.get_line_content(filePath, position["line"])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1433, in get_line_content
return self._project.get_line_content(path, position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1149, in get_line_content
page = self.pages[fileid]
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1008, in getitem
return self.__postprocessed[key]
KeyError: FileId('docs/source/Starting-with-the-API.rest')
[Error - 5:26:02 PM] Request textDocument/completion failed.
Message: KeyError: FileId('docs/source/Starting-with-the-API.rest')
Code: -32602
[object Object]
ERROR:pyls_jsonrpc.endpoint:Failed to handle request 241
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
self._handle_request(message['id'], message['method'], message.get('params'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
handler_result = handler(params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
return method(
(params or {}))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 424, in m_text_document__completion
return self.completions(textDocument['uri'], position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 402, in completions
line_content = self.project.get_line_content(filePath, position["line"])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1433, in get_line_content
return self._project.get_line_content(path, position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1149, in get_line_content
page = self.pages[fileid]
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1008, in getitem
return self.__postprocessed[key]
KeyError: FileId('docs/source/Starting-with-the-API.rest')
[Error - 5:26:02 PM] Request textDocument/completion failed.
Message: KeyError: FileId('docs/source/Starting-with-the-API.rest')
Code: -32602
[object Object]
ERROR:pyls_jsonrpc.endpoint:Failed to handle request 242
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
self._handle_request(message['id'], message['method'], message.get('params'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
handler_result = handler(params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
return method((params or {}))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 424, in m_text_document__completion
return self.completions(textDocument['uri'], position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 402, in completions
line_content = self.project.get_line_content(filePath, position["line"])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1433, in get_line_content
return self._project.get_line_content(path, position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1149, in get_line_content
page = self.pages[fileid]
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1008, in getitem
return self.__postprocessed[key]
KeyError: FileId('docs/source/Starting-with-the-API.rest')
[Error - 5:26:02 PM] Request textDocument/completion failed.
Message: KeyError: FileId('docs/source/Starting-with-the-API.rest')
Code: -32602
[object Object]
ERROR:pyls_jsonrpc.endpoint:Failed to handle request 243
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
self._handle_request(message['id'], message['method'], message.get('params'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
handler_result = handler(params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
return method(
(params or {}))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 424, in m_text_document__completion
return self.completions(textDocument['uri'], position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 402, in completions
line_content = self.project.get_line_content(filePath, position["line"])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1433, in get_line_content
return self._project.get_line_content(path, position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1149, in get_line_content
page = self.pages[fileid]
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1008, in getitem
return self.__postprocessed[key]
KeyError: FileId('docs/source/Starting-with-the-API.rest')
[Error - 5:26:02 PM] Request textDocument/completion failed.
Message: KeyError: FileId('docs/source/Starting-with-the-API.rest')
Code: -32602
[object Object]
ERROR:pyls_jsonrpc.endpoint:Failed to handle request 244
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
self._handle_request(message['id'], message['method'], message.get('params'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
handler_result = handler(params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
return method(**(params or {}))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 424, in m_text_document__completion
return self.completions(textDocument['uri'], position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/language_server.py", line 402, in completions
line_content = self.project.get_line_content(filePath, position["line"])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1433, in get_line_content
return self._project.get_line_content(path, position)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1149, in get_line_content
page = self.pages[fileid]
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/snooty/parser.py", line 1008, in getitem
return self.__postprocessed[key]
KeyError: FileId('docs/source/Starting-with-the-API.rest')
[Error - 5:26:03 PM] Request textDocument/completion failed.
Message: KeyError: FileId('docs/source/Starting-with-the-API.rest')
Code: -32602
[object Object]
WARNING:pyls_jsonrpc.endpoint:Ignoring notification for unknown method textDocument/didSave
WARNING:pyls_jsonrpc.endpoint:Ignoring notification for unknown method workspace/didChangeWatchedFiles

`

@lextm
Copy link
Member

lextm commented May 15, 2021

Can you verify that this issue remains even in latest snooty release?

@lextm lextm added the help wanted Extra attention is needed label Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants