question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow absolute paths to be specified in yaml.schemas

See original GitHub issue

Project relative paths requirement for specifying yaml.schemas is probably a suitable way to deal with VSCode, but definitely not for others.

We suggest to allow using an absolute path for a schema, so, when resolving a schema content, if no project is found or path doesn’t resolve against project, it should be attempted to be resolved as absolute path. This would allow plain yaml edition to work without a project, which is actually not so unusual.

Related issue: https://github.com/eclipse/wildwebdeveloper/issues/461

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vrubezhnycommented, Jul 20, 2020

@JPinkney Upgrade to YAML LS 0.9.0 is ongoing. I’ll try reproducing it using version 0.9.0 this week.

0reactions
ssbarneacommented, Apr 28, 2021

This bug should be closed because I am using absolute paths for months and they do work quite well. The trick is to use file:// URI which allow only full paths (3 slashes).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure YAML schema to make editing files easier
To help with editing, it is possible to provide a YAML schema that can be leveraged by a large set of integrated development...
Read more >
How to set absolute path to $schema in deeply nested jsons
I'd like to add $schema property to each json to let IDEs provide some coding assistance / validation. Because the jsons are nested...
Read more >
YAML schema reference for Azure Pipelines - Microsoft Learn
The YAML schema reference for Azure Pipelines is a detailed reference for YAML pipelines that lists all supported YAML syntax and their ...
Read more >
Paths and Operations - Swagger
API paths and operations are defined in the global paths section of the API specification. ... The full request URL is constructed as...
Read more >
YAML | PhpStorm Documentation - JetBrains
Let's explore some YAML-specific features available in the editor. ... to copy a full path to a specific option specified in the YAML...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found