spring-projects / spring-projects/spring-tools
In VS Code, right-clicking a .properties file and selecting "Convert .properties to .yaml" does nothing
Nobody has claimed this yet.
- 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
.propertiesfile
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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