Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing happpened when i installed the extenstion #155

Closed
magicsong opened this issue Feb 12, 2019 · 3 comments
Closed

Nothing happpened when i installed the extenstion #155

magicsong opened this issue Feb 12, 2019 · 3 comments

Comments

@magicsong
Copy link

Is there any extra setting-up before using this extension? Right now nothing changed when i edit ymls (no suggestion, no validation) Following is the log

[Trace - 下午4:50:40] Sending notification 'textDocument/didChange'.
[Trace - 下午4:50:40] Sending request 'textDocument/completion - (110)'.
[Trace - 下午4:50:40] Received request 'custom/schema/request - (135)'.
[Trace - 下午4:50:40] Sending response 'custom/schema/request - (135)'. Processing request took 0ms
[Trace - 下午4:50:40] Received response 'textDocument/completion - (110)' in 5ms.
[Trace - 下午4:50:41] Received request 'custom/schema/request - (136)'.
[Trace - 下午4:50:41] Sending response 'custom/schema/request - (136)'. Processing request took 0ms
[Trace - 下午4:50:41] Received notification 'textDocument/publishDiagnostics'.
[Trace - 下午4:50:41] Sending notification 'textDocument/didChange'.
[Trace - 下午4:50:41] Sending request 'textDocument/documentSymbol - (111)'.
[Trace - 下午4:50:41] Received response 'textDocument/documentSymbol - (111)' in 2ms.
[Trace - 下午4:50:41] Received request 'custom/schema/request - (137)'.
[Trace - 下午4:50:41] Sending response 'custom/schema/request - (137)'. Processing request took 0ms
[Trace - 下午4:50:41] Received notification 'textDocument/publishDiagnostics'.
[Trace - 下午4:50:42] Sending notification 'textDocument/didChange'.
[Trace - 下午4:50:42] Received request 'custom/schema/request - (138)'.
[Trace - 下午4:50:42] Sending response 'custom/schema/request - (138)'. Processing request took 0ms
[Trace - 下午4:50:42] Received notification 'textDocument/publishDiagnostics'.
[Trace - 下午4:50:42] Sending notification 'textDocument/didChange'.
[Trace - 下午4:50:42] Sending request 'textDocument/documentSymbol - (112)'.
[Trace - 下午4:50:42] Received response 'textDocument/documentSymbol - (112)' in 4ms.
[Trace - 下午4:50:42] Received request 'custom/schema/request - (139)'.
[Trace - 下午4:50:42] Sending response 'custom/schema/request - (139)'. Processing request took 0ms
[Trace - 下午4:50:42] Received notification 'textDocument/publishDiagnostics'.

i think some request has no response.

@JPinkney
Copy link
Contributor

If you want autocompletion/validation/hover etc you need to use the yaml.schemas setting to associate schemas with files in a glob pattern. Take a look at the Language Server settings in the readme, they show more detail on how to set everything up.

@magicsong
Copy link
Author

magicsong commented Feb 12, 2019

@JPinkney Very thank! it works now. However , the kubernetes api version which the extension supports seems to be a little old. For example:

apiVersion: apps/v1   ## here it report an error : Value is not accepted. Valid values: "v1beta1".
kind: DaemonSet

how can i fix it?

@JPinkney
Copy link
Contributor

You can't yet. The schema has to be updated. See: redhat-developer/yaml-language-server#108 (comment)

bleach31 pushed a commit to bleach31/vscode-yaml that referenced this issue Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants