redhat-developer / redhat-developer/vscode-java

TypeError: Cannot set properties of undefined (setting 'text')

Open
#3,276 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debt
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

rejected promise not handled within 1 second: TypeError: Cannot set properties of undefined (setting 'text')
extensionHostProcess.js:108
stack trace: TypeError: Cannot set properties of undefined (setting 'text')
at Object.update (c:\Work\Code\vscode-java\src\languageStatusItemFactory.ts:146:12)
at RuntimeStatusBarProvider. (c:\Work\Code\vscode-java\src\runtimeStatusBarProvider.ts:220:33)
at Generator.next ()
at fulfilled (c:\Work\Code\vscode-java\dist\extension.js:100929:58)

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

Start with src/languageStatusItemFactory.ts:146 and trace the update call from src/runtimeStatusBarProvider.ts:220. Reproduce the rejected-promise error in the VS Code Java extension and inspect the surrounding status-bar lifecycle. Done means the reported TypeError no longer occurs in this path and the affected behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.