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.

Linting makes editing hard

See original GitHub issue

grafik

The screenshot shows a simple file which only misses the end tag </xs:schema>. This little issue results in the whole document being marked invalid, which doesn’t help much. The file becomes harder to read while editing and doesn’t tell much about the origin of the error.

I’d expect only the opening tag name and/or the end of the document being marked invalid. The content in between is very correct.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
angelozerrcommented, Mar 15, 2021

If old in “Keep the old diagnostic range on clients that don’t support.” means current behavior, I would say “yes”

1reaction
predragnikoliccommented, Jan 19, 2021

Does the Sublime LSP client support relatedInformation?

Yes, LSP for Sublime Text does support it.

Here is an example gif

Keep in mind that I hard coded the response to include the diagnostic.relatedInformation field, so this is actually not provided by the language server, but rather just for demonstrating purposes.

Sublime Text just shows related diagnostics information in the hover popup, when hovering over the diagnostics.

output

    diagnostic['relatedInformation'] = [{
            'location': {
                'uri': '/home/predrag/Documents/modulll/src/App.jsx',
                'range': {
                    'start': { 'line': 9, 'character': 15 },
                    'end' : { 'line': 9, 'character': 15 }
                },
            },
            'message': 'Missing closing tag here'
    }]

VS Code show relatedInformation in the diagnostics panel and the hover popup. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Development productivity using a linting tool - TechnoIdentity
Benefits of using a linting tool​​ They help you keep the code clean, tidy, and at high quality, promoting clarity of mind of...
Read more >
Make linting great again! - Medium
Lint -staged is a Node.js script that allows you to run arbitrary scripts against currently staged files. In git, a file is being...
Read more >
How to write better code with linting, formatting, and analysis ...
Linters are most helpful when integrated into the editor to scan the code as you type for the fastest possible feedback. Possible errors...
Read more >
Linting in the editor should follow the linting configuration #8321
This makes configuration easy for someone who just opens up a repo for which there are predefined code standards (e.g. no docstrings in...
Read more >
Linting | The Odin Project
Introduction. Before we dive all the way into the Code, we are going to take a moment to improve your editor setup. Doing...
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