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

textDocument/hover failed, cause: unescaped curly brace in regex #26

Open
oatymart opened this issue Apr 5, 2020 · 1 comment
Open
Labels
bug Something isn't working

Comments

@oatymart
Copy link

oatymart commented Apr 5, 2020

I have another instance of Request textDocument/hover failed with message: Cannot read property 'data' of undefined Code: -32603.

I believe it is caused by a weird (but valid) syntax I had to write for my component which receives an external regex as a prop. Because Svelte doesn't have a way to escape a single curly brace inside an expression, I used a stringified curly brace inside an expression to keep my regex format.

<FeedbackInput pattern="^[\s\S]{'{0,5}'}$" />

I can avoid the hover error by replacing my code with:

<FeedbackInput pattern="^[\s\S]&#123;0,5}$" />

but I don't want to.

@alexprey alexprey added the bug Something isn't working label May 11, 2020
alexprey added a commit that referenced this issue Aug 25, 2020
@alexprey
Copy link
Collaborator

Can not reproduce with fixes in #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants