spring-projects / spring-projects/spring-tools

In VS Code, right-clicking a .properties file and selecting "Convert .properties to .yaml" does nothing

Open
#1,478 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

for: vscode theme: property-editing-support
Dominant language
Java
Stars
983
Forks
240
Avg merge
7d 1h
Merged PRs (30d)
7

Description

Any idea why?

With apologies if I should be reporting this (that is, asking for help) somewhere else (please let me know).

Environment

  • Microsoft Visual Studio Code (VS Code) 1.96.4 on Windows 10
  • Relevant VS Code extensions (and their versions):
    • Language Support for Java by Red Hat (1.39.0)
    • Spring Boot Tools (1.60.0)
  • VS Code shows language mode "Spring Boot Properties" when I'm editing a .properties file

exthost.log extract

2025-02-19 10:16:42.263 [warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.
2025-02-19 10:16:43.291 [info] ExtensionService#_doActivateExtension vmware.vscode-spring-boot, startup: false, activationEvent: 'onLanguage:spring-boot-properties'
2025-02-19 10:16:46.022 [warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.
2025-02-19 10:16:49.690 [error] Error: command 'sts/boot/props-to-yaml' not found
    at O9e.n (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1315:1341)
    at O9e.executeCommand (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1315:1273) vscode-spring-boot.props-to-yaml {"value":"vmware.vscode-spring-boot","_lower":"vmware.vscode-spring-boot"}

Example .properties file

I doubt this is relevant, because I don't think the processing is getting this far ("command 'sts/boot/props-to-yaml' not found"), but for what it's worth (note: this is deliberately a trivially small test case):

server.port=9070

Thoughts

I've Googled for:

[warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.

found some hits, but I'm none the wiser about what to do. (Well, I've tried adding an empty "[java]": {} to my VS Code settings.json, but that's just grasping at straws.)

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 tracing the vscode-spring-boot.props-to-yaml context-menu command and the sts/boot/props-to-yaml command named in the exthost.log, then inspect how Spring Boot Tools activates for Spring Boot Properties. Done means right-clicking a .properties file successfully runs Convert .properties to .yaml instead of reporting that the command is not found.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.