Comments (9)
Is IJ gives the capability to manage a YAML editor? If yes, is it enable to set a JSON Schema file to the YAML editor for a given file URI? If it's possible, MicroProfile LS provides now a request which returns the JSON Schema for a given URI.
We use this feature in vscode (and soon in Eclipse IDE) with YAML Language Server.
from intellij-quarkus.
idea supports check(and auto-complete) spring application.yml with json schema, probably it can be used for quarkus
from intellij-quarkus.
idea supports check(and auto-complete) spring application.yml with json schema, probably it can be used for quarkus
sts4 have a language server which parses YAML file. They have developed from scratch a YAML parser (fault tolerant parser) and I think all YAML features (completion, outline, etc).
it seems vscode plugin not support yml either
vscode-quarkus supports application.yaml, but instead of managing parse of YAML and manages other features like validation for YAML, outline, highlight, completion based on YAML/JSON Schema, vscode-quarkus delegates the YAML features (yaml parse, completion, hover, validation, etc) to vscode-yaml.
The only work that vscode-quarkus does, is that it bind the application.yaml with a generated JSON Schema (according to the Quarkus/MP properties available for the project). vscode-yaml (which consumes the yaml language server) does the work by using the generated JSON Schema (validation, completion, etc).
vscode-yaml manages very good YAML support (validation, completion, outline, etc), so by consuming it (just by giving a JSON Schema) was easy and we don't reinvent the wheel. More in Eclipse IDE, the yaml language server is consumed too (with WWD), so it will possible to do the same strategy than vscode.
from intellij-quarkus.
idea can specific a json schema for yaml file(or url) manually. what url should I use?
from intellij-quarkus.
I'm afraid that it will not so simple like this. In vscode, when application.yaml is opened, the yaml language server ask to the vscode-quarkus:
- the URL of the JSON Schema to use for the yaml file (we use a custom schema prefix for that). See https://github.com/redhat-developer/vscode-quarkus/blob/a806144721b1057d4875fe91b13a32e13020e697/src/yaml/YamlSchema.ts#L167
- the content of the JSON Schema. See https://github.com/redhat-developer/vscode-quarkus/blob/a806144721b1057d4875fe91b13a32e13020e697/src/yaml/YamlSchema.ts#L72
To retrieve the JSON Schema content, the LSP request microprofile/jsonSchemaForProjectInfo
from MP language server is consumed.
I don't know how IJ is working but the idea is to develop an IJ extension for YAML which consumes the LSP request microprofile/jsonSchemaForProjectInfo
from intellij-quarkus.
so IJ quarkus tools plugin doesn't provider a port to receive request and return url of JSON Schema/content of JSON Schema?
from intellij-quarkus.
so IJ quarkus tools plugin doesn't provider a port to receive request and return url of JSON Schema/content of JSON Schema?
I don't know, please ask to @jeffmaury
from intellij-quarkus.
Quarkus Tool does not support YAML format for application properties yet
from intellij-quarkus.
I suggest make the plugin generate a json schema file into compile output dir (like spring-configuration-metadata.json generated by spring configuration annotation processor), so that user can view the schema directly or set it to IJ manually
from intellij-quarkus.
Related Issues (20)
- Automate "Quarkus project can be created without Example code (codestart checkbox is off)" test
- Automate "Create/Run new quarkus launch configuration" test
- Error in Intellij IDEA while editing application.yml config HOT 1
- Support CDI scope annotations in interfaces HOT 12
- Error while adding QuarkusRunConfigurationType in Services view settings HOT 3
- Broken after telemetry update HOT 7
- Improve Quarkus deploiement loading for gradle project HOT 3
- Services Window Dev Mode HOT 3
- Persistent ID already exists. Removing old entity HOT 6
- Debug run config invalid HOT 1
- Using Copilot With application.properties cause error wen trying autocomplete HOT 6
- Simply opening a project with focus on a property file (properties or yaml) it gives this error. HOT 1
- Simply opening a project with focus on a property file (properties or yaml) it gives this error.\ HOT 1
- Simply opening a project with focus on a property file (properties or yaml) it gives this error. This same error is also produced many other times during a working session. HOT 1
- Error while editing a properties YAML file. It happens any time I add a new element. HOT 1
- `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon annoying error message HOT 6
- Annoying recurring exception HOT 18
- Error while opening a new cloned project HOT 4
- Invalid char(s) in expression. quarkus (9) HOT 4
- Investigate flaky tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-quarkus.