microsoft / microsoft/TypeScript-Sublime-Plugin

Console Error

Open
#473 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
236
Avg merge
21d 13h
Merged PRs (30d)
1

Description

Hello.

I am getting this error.
Windows 10, 64
Sublime Text 3 v. 3103

Traceback (most recent call last):
File "C:\Sublime Text\Data\Packages\TypeScript\typescript\listeners\idle.py",  line 22, in _check_timeout_count self.handler()
File "C:\Sublime Text\Data\Packages\TypeScript\typescript\listeners\idle.py", line 79, in on_selection_idle self.request_document_highlights(view, info)
File "C:\Sublime Text\Data\Packages\TypeScript\typescript\listeners\idle.py", line 187, in request_document_highlights    cli.service.async_document_highlights(view.file_name(), location, self.highlight_occurrences)
File "C:\Sublime Text\Data\Packages\TypeScript\typescript\libs\service_proxy.py", line 259, in async_document_highlights
self.__comm.sendCmdAsync(json_str, on_completed, req_dict["seq"])
File "C:\Sublime Text\Data\Packages\TypeScript\typescript\libs\node_client.py", line 111, in sendCmdAsync
if self.postCmd(cmd):
File "C:\Sublime Text\Data\Packages\TypeScript\typescript\libs\node_client.py", line 143, in     postCmd
self.server_proc.stdin.flush()
OSError: [Errno 22] Invalid argument

Any advice?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the traceback in typescript/listeners/idle.py, especially request_document_highlights, then follow the call into typescript/libs/node_client.py at postCmd and stdin.flush(). Reproduce the error on Windows 10 with Sublime Text 3 and inspect the TypeScript service process interaction. Done means the reported console error no longer occurs during document highlighting.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.