Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error request "textDocument/codeAction" failed #238

Closed
aminpaks opened this issue Jul 2, 2018 · 10 comments
Closed

Error request "textDocument/codeAction" failed #238

aminpaks opened this issue Jul 2, 2018 · 10 comments
Labels

Comments

@aminpaks
Copy link

aminpaks commented Jul 2, 2018

Hi,

I'm running spell-checker v1.6.10 on vscode v1.24.1 and I'm getting this error most of times:

[Error - 09:58:45] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Maximum call stack size exceeded
  Code: -32603 
[Error - 10:01:47] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Maximum call stack size exceeded
  Code: -32603 
[Error - 10:01:50] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Maximum call stack size exceeded
  Code: -32603 
[Error - 10:01:51] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Maximum call stack size exceeded
  Code: -32603 
  • The environment: macOS High Sierra 10.13.5
  • File type: All types (js, ts, etc)

Don't know if I can reproduce this locally by turning on any specific option to be able to get more info. Please advice.

Thanks.

@Jason3S Jason3S added the bug label Jul 5, 2018
@Jason3S
Copy link
Collaborator

Jason3S commented Jul 5, 2018

Thank you for reporting this.

The challenge is to find what might be causing it.

A few questions:

  • Does it happen on all projects or just one or two?
  • Did you turn on allowCompoundWords? (the spell checker has to work harder when making suggestions)
  • Are there lots of spelling errors? or just a few?
  • Does it only happen when you mouse over one of them?

@aminpaks
Copy link
Author

aminpaks commented Jul 5, 2018

Sure, thanks for responding:

  • It happens in all projects as along as there is an unknown word
  • I did turn on allowCompoundWords, but it sort of broke it. Now nothing gets reported (eg. polare or comlink are not valid words and didn't report at all)
  • Not really, in the case above there was only one word in the open files
  • Not on mouse over, it happens the first time it found unknown words and then every time the words get highlighted (cursor is on the word)

@aminpaks
Copy link
Author

aminpaks commented Jul 5, 2018

I think it's worth mentioning it happens only on one of my setup. Not sure why it's working without any issue on my Macbook!

@aminpaks
Copy link
Author

I discovered why the issue only happens on one of my setups. It's the custom dictionaries.
Now you can reproduce the issue 100% I hope.

Let me know if it helps produce the issue.

@Jason3S
Copy link
Collaborator

Jason3S commented Jul 21, 2018

That helps a lot. I'll see if I can make it happen.

@aminpaks
Copy link
Author

Any updates on this?

@Jason3S
Copy link
Collaborator

Jason3S commented Aug 25, 2018

There seems to be an issue with some very large dictionaries. I need to dig into the root cause.

@aminpaks
Copy link
Author

Sure. It's good that you're able to repro and take a deeper look

@Jason3S
Copy link
Collaborator

Jason3S commented Sep 9, 2018

I figured it out, the word list was in UTF-16. Saving it as a UTF-8 file fixed the issue.

@Jason3S Jason3S closed this as completed Jun 12, 2019
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants