redhat-developer / redhat-developer/vscode-yaml

Request textDocument/completion failed with message: label.replace is not a function

Open
#536 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

Telemetry data indicates a number of users get this "Request textDocument/completion failed with message: label.replace is not a function" error.

Expected Behavior

Completion should not produce errors.

Current Behavior

"Request textDocument/completion failed with message: label.replace is not a function" error is sometimes reported.

Steps to Reproduce

Unfortunately, we have no more context: sometimes, completion fails, that's as vague is you can get. Need to figure out what's wrong here.

Environment

  • Windows
  • Mac
  • Linux

Contributor guide

Open the contributing guide

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

The issue identifies no source files, tests, or reproducible input. Start by tracing the TypeScript completion request path and locating where completion labels are processed; use the reported label.replace error and telemetry context to narrow the failing response, then add a regression test demonstrating that completion no longer fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.