# Buggy code
def run(self, edit: sublime.Edit, event: "Optional[dict]" = None) -> None:
    client = self.client_with_capability("referencesProvider")
    if client:
        pos = get_position(self.view, event)
        document_position = get_document_position(self.view, pos)
        if document_position:
            document_position["context"] = {"includeDeclaration": False}
            request = Request.references(document_position)
            client.send_request(
                request, lambda response: self.handle_response(response, pos)
            )


# Traceback (ValueError)
LSP:  --> textDocument/references
LSP:      [{'uri': 'file:///D:/Amjad/rls-vscode/src/extension.ts', 'range': {'end': {'line': 25, 'character': 20}, 'start': {'line': 25, 'character': 9}}}, {'uri': 'file:///D:/Amjad/rls-vscode/src/extension.ts', 'range': {'end': {'line': 434, 'character': 25}, 'start': {'line': 434, 'character': 14}}}, {'uri': 'file:///D:/Amjad/rls-vscode/src/rustup.ts', 'range': {'end': {'line': 67, 'character': 33}, 'start': {'line': 67, 'character': 22}}}]
Error handling server payload
Traceback (most recent call last):
File "C:\Users\Lehdhili\AppData\Roaming\Sublime Text 3\Packages\LSP\plugin\core\rpc.py", line 150, in receive_payload
self.response_handler(payload)
File "C:\Users\Lehdhili\AppData\Roaming\Sublime Text 3\Packages\LSP\plugin\core\rpc.py", line 169, in response_handler
handler(response["result"])
File "C:\Users\Lehdhili\AppData\Roaming\Sublime Text 3\Packages\LSP\plugin\references.py", line 45, in <lambda>
request, lambda response: self.handle_response(response, pos))
File "C:\Users\Lehdhili\AppData\Roaming\Sublime Text 3\Packages\LSP\plugin\references.py", line 64, in handle_response
formatted_references = self._get_formatted_references(response, base_dir)
File "C:\Users\Lehdhili\AppData\Roaming\Sublime Text 3\Packages\LSP\plugin\references.py", line 142, in _get_formatted_references
grouped_references = self._group_references_by_file(references, base_dir)
File "C:\Users\Lehdhili\AppData\Roaming\Sublime Text 3\Packages\LSP\plugin\references.py", line 150, in _group_references_by_file
relative_file_path = os.path.relpath(file_path, base_dir)
File "./python3.3/ntpath.py", line 564, in relpath
ValueError: path is on mount 'D:', start on mount 'C:'

# Fixed code
def run(self, edit: sublime.Edit, event: "Optional[dict]" = None) -> None:
    client = self.client_with_capability("referencesProvider")
    if client:
        pos = get_position(self.view, event)
        window = self.view.window()
        self.word_region = self.view.word(pos)
        self.word = self.view.substr(self.word_region)

        # use relative paths if file on the same root.
        base_dir = windows.lookup(window).get_project_path()
        if base_dir:
            if os.path.commonprefix([base_dir, self.view.file_name()]):
                self.base_dir = base_dir

        document_position = get_document_position(self.view, pos)
        if document_position:
            document_position["context"] = {"includeDeclaration": False}
            request = Request.references(document_position)
            client.send_request(
                request, lambda response: self.handle_response(response, pos)
            )