cfn-lint-visual-studio-code: Request textDocument/hover failed

[Error - 10:19:24] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Invalid regular expression: /.*{1,255}/: Nothing to repeat
  Code: -32603 

Likely commit: https://github.com/aws-cloudformation/cfn-lint-visual-studio-code/commit/3c39873a395e24bd3f23e1ac29337c806813353a

Broken regex: https://github.com/aws-cloudformation/cfn-lint-visual-studio-code/blob/main/server/schema/resources/aws-ssm-association.json#L116

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 15 (6 by maintainers)

Most upvoted comments

e.startsWith seems to be part of parsing enums in the schema files. There was an issue in the 1.0.9 version of yaml-language-server with number based enums. I’m going to update our dependencies to 1.10.0 and see if that helps fixes the issue. For some reason I’m having troubles replicating the issue but trying all the options to replicate

Looking into it now. I thought I was getting those filtered out.