Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Do not enable every "unnecessary" warning by default #907

Merged
merged 2 commits into from
Nov 17, 2020

Conversation

serras
Copy link
Contributor

@serras serras commented Nov 14, 2020

This is the result of the discussion in haskell/haskell-language-server#572. As such, it closes #902 and supersedes it. Most of the warnings are anyway enabled by -Wall, which is taken as a good practice in the community.

@georgefst @jneira you might be interested in this.

@georgefst
Copy link
Contributor

LGTM. I tend to enable -Wall everywhere and only disable individual warnings for very good reason. I believe this is pretty much standard practice.

@serras
Copy link
Contributor Author

serras commented Nov 15, 2020

It seems that tests are not passing due to:

highlight
     value:                                                                                                FAIL
       Exception: Timed out waiting to receive a message from the server.

but I have no idea how to fix this, or if this is really a problem. It would be great if I could get a helping hand here :)

@jneira
Copy link
Member

jneira commented Nov 15, 2020

set LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true before running the test might help

@wz1000
Copy link
Collaborator

wz1000 commented Nov 15, 2020

I think some of the tests rely on diagnostics which are no longer produced (in order to check that typechecking has completed), so you either have to enable the appropriate warnings for those tests, or add some other kind of construct which will result in some diagnostic.

@serras
Copy link
Contributor Author

serras commented Nov 16, 2020

Thanks @wz1000, I've just pushed what I think is the right fix.

Copy link
Collaborator

@pepeiborra pepeiborra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Alejandro!

@pepeiborra pepeiborra merged commit b3e95d1 into haskell:master Nov 17, 2020
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
)

* Do not enable every "unnecessary" warning by default

* Fix tests that wait for diagnostics
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
)

* Do not enable every "unnecessary" warning by default

* Fix tests that wait for diagnostics
pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
)

* Do not enable every "unnecessary" warning by default

* Fix tests that wait for diagnostics
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants