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.

diagnosticProviders

See original GitHub issue

We currently have two ways diagnostics are generated, there might be more in the future:

  • elm make

  • elm analyse

  • Testing

  • Bugfixes

  • Possibility to give the path to both if they’re not installed global

Elm analyse works fine on windows for me. Elm make tries to open the generated elm.js every time it runs. Pretty weird, hopefully just something that happens when you run the dev version.

Linux says it doesn’t global installations, I do have them. So it might be my linux or a problem in general. No idea about macOS.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
antewcommented, Jun 4, 2019

For the quick fix vs fix it is to allow nicer interoperability with the language server. Normally when you call elm-analyse to run a fix it will read the file from disk, fix it, write it back to disk, and format it with elm-format. The quick fix piece is there to allow it to work when the file hasn’t been written to disk yet, and to send back the new file content rather than writing it to disk.

It isn’t quite ready yet but I’ll have some time to work on it this week and have it upstream-able after that.

On the language server side I need to move up the elmAnalyseDiagnostics so that the same instance can be used for diagnostics as well as code actions (for speed and to prevent syncing issues), I started on it over in this one (https://github.com/elm-tooling/elm-language-server/compare/master...antew:feature/code-actions#diff-87377fe5c568eb8fd1cdf5c6f241e6ecR66), but the code is a bit jumbled now.

I expect I’ll have PRs in to both projects by the end of this coming weekend.

1reaction
antewcommented, May 9, 2019

I’ve got a prototype of this going quickfix

The biggest limitation right now is that it replaces the whole file to fix it, I’m going to do some work in elm-analyse to allow just the new text for the error range.

In the server version it formats the file after elm-analyse finishes, do you think we should do the same here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lab Facilities: Designated Diagnostic Providers
Designated Diagnostic Providers are laboratories that meet broadly recognized quality and efficiency standards. UnitedHealthcare has invited all in-network free ...
Read more >
Diagnostic Providers - IBM
Diagnostic Providers are a quick method for viewing configuration and the current state of individual components within an application ...
Read more >
Quest Diagnostics: Home
Learn about solutions for lab excellence. Help your system deliver the benefits of diagnostic excellence every day. Explore solutions ...
Read more >
Designated Diagnostic Provider - UnitedHealthcare
Designated Diagnostic Providers are laboratory providers and imaging centers that meet certain quality and efficiency requirements. If you have a Designated ...
Read more >
Ten of the biggest companies in the global diagnostics market ...
The biggest in vitro diagnostics companies in the world right now are ... diagnostic for individuals suspected by their healthcare provider ...
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