spring-projects / spring-projects/spring-tools

`workspace/symbols` sometimes returns empty results

Open
#827 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

for: vscode theme: boot-dashboard theme: spring index & symbols type: bug
Dominant language
Java
Stars
983
Forks
240
Avg merge
7d 1h
Merged PRs (30d)
7

Description

Describe the bug

workspace/symbols sometimes returns empty results. Leading to empty list in beans/mappings view.

When project is added/removed or classpaths changes, we re-fetch static beans/mappings from workspace symbols as below.

const beans = await stsApi.client.sendRequest("workspace/symbol", {"query": "@+"}) as any[];
const mappings = await stsApi.client.sendRequest("workspace/symbol", {"query": "@/"}) as any[];
console.log({beans, mappings});

To Reproduce

As described, sometimes occur. So I try and print the responses as below, catching one scene.

Sample

with vscode spring tools v1.38.0

image

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 by reproducing the two stsApi.client.sendRequest calls for workspace/symbol with queries "@+" and "@/" while changing the project or classpaths, then inspect when the responses are empty. Done means workspace symbols consistently return the expected beans and mappings after those changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, vscode
Domain
developer-experience, search
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.