You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use a markdown file with YAML frontmatter (and sublimehq/Packages#2339), yamllint reports errors for regions that shouldn't be of any concern for it.
---key: normal YAML frontmatter---*normal markdown*
Debug log:
SublimeLinter: sublime_linter.py:324 Delay linting 'test.md' for 0.5s
SublimeLinter: linter.py:1103 annotations: Checking lint mode 'background' vs lint reason 'on_modified'. Ok.
SublimeLinter: linter.py:1103 yamllint: Checking lint mode 'background' vs lint reason 'on_modified'. Ok.
SublimeLinter: #3118 linter.py:1120 yamllint: linting 'test.md'
SublimeLinter: #3117 linter.py:1120 annotations: linting 'test.md'
SublimeLinter: #3117 linter.py:1196 annotations: no output
SublimeLinter: #3118 linter.py:1636 Running ...
/home/fichte/code/docs.sublimetext.io (working dir)
$ /usr/bin/yamllint --format parsable /tmp/test.md
SublimeLinter: #3118 linter.py:1202 yamllint: output:
/tmp/test.md:5:9: [error] syntax error: expected '<document start>', but found '<scalar>' (syntax)
SublimeLinter: #3118 linter.py:1343 WARNING: Reported line '5' is not within the code we're linting.
Maybe the linter reports problems from multiple files or `line_col_base` is not set correctly.
SublimeLinter: sublime_linter.py:575 Linting 'test.md' took 0.29s
This issue only occurs for saved files, not for untitled views created via ctrl+n, because those are seemingly not checked at all.
It would be nice if the plugin only linted regions for which the source.yaml selector matches and regardless of whether the file is saved or not. The linter also seems to only run on the saved file despite advertising live updates on each modification.
The text was updated successfully, but these errors were encountered:
When I use a markdown file with YAML frontmatter (and sublimehq/Packages#2339), yamllint reports errors for regions that shouldn't be of any concern for it.
Debug log:
This issue only occurs for saved files, not for untitled views created via ctrl+n, because those are seemingly not checked at all.
It would be nice if the plugin only linted regions for which the
source.yaml
selector matches and regardless of whether the file is saved or not. The linter also seems to only run on the saved file despite advertising live updates on each modification.The text was updated successfully, but these errors were encountered: