Skip to content

Shut the Shake session on exit, instead of restarting it #1655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 3, 2021

Conversation

pepeiborra
Copy link
Collaborator

Restarting the session will result in progress reporting and other messages
being sent to the client, which might have already closed the stream

Result of @berberman investigation in #1628

Restarting the session will result in progress reporting and other messages
being sent to the client, which might have already closed the stream
@isovector
Copy link
Collaborator

isovector commented Apr 2, 2021

Does this fix the mysterious resource vanished errors that happen when running tests in parallel? <3

@pepeiborra
Copy link
Collaborator Author

Does this fix the mysterious resource vanished errors that happen when running tests in parallel? <3

Doesn't seem to fix that

@pepeiborra
Copy link
Collaborator Author

Does this fix the mysterious resource vanished errors that happen when running tests in parallel? <3

Doesn't seem to fix that

I just gave up and bisected it to 132193e (#1373). It must be an issue with opening the mysql db before it has been released or similar. /cc @wz1000

Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

LGTM, the change makes totally sense, not sure why restartShakeSession was even used at first.

@wz1000
Copy link
Collaborator

wz1000 commented Apr 2, 2021

I will try to take a look when I find the time.

@berberman
Copy link
Collaborator

Hmm, I cherry-picked this to #1628, but test didn't show the fix

@berberman berberman merged commit 252c500 into master Apr 3, 2021
@Ailrun Ailrun deleted the shut-shake-session branch April 3, 2021 15:40
berberman added a commit to berberman/haskell-language-server that referenced this pull request Apr 4, 2021
Restarting the session will result in progress reporting and other messages
being sent to the client, which might have already closed the stream

Co-authored-by: Potato Hatsue <1793913507@qq.com>
isovector pushed a commit to isovector/haskell-language-server that referenced this pull request Apr 5, 2021
Restarting the session will result in progress reporting and other messages
being sent to the client, which might have already closed the stream

Co-authored-by: Potato Hatsue <1793913507@qq.com>
mergify bot added a commit that referenced this pull request Apr 6, 2021
* Start tracking provenance of stale data

It's amazing how wrong this code used to be

* Add some machinery for automagically updating the age

* Add an applicative instance

* Tracked ages makes everything much easier to reason about

* Formatting

* Haddock and small changes

* Update haddock on IdeAction

* Update to lsp-1.2 (#1631)

* Update to lsp-1.2

* fix stack

* fix splice plugin tests

* fix tactic plugin tests

* fix some tests

* fix some tests

* fix outline tests

* hlint

* fix func-test

* Avoid reordering plugins (#1629)

* Avoid reordering plugins

Order of execution matters for notification plugins, so lets avoid unnecessary
reorderings

* remove duplicate plugins

* fix tests

* Civilized indexing progress reporting (#1633)

* Civilized indexing progress reporting

* optProgressStyle

* Consistency: Indexing references ==> Indexing

* Fix progress tests

* Do not override custom user commands (#1650)

Co-authored-by: Potato Hatsue <1793913507@qq.com>

* Shut the Shake session on exit, instead of restarting it (#1655)

Restarting the session will result in progress reporting and other messages
being sent to the client, which might have already closed the stream

Co-authored-by: Potato Hatsue <1793913507@qq.com>

* Fix importing type operators (#1644)

* Fix importing type operators

* Update test

* Add expected failure tests

* log exceptions before killing the server (#1651)

* log hiedb exceptions before killing the server

* This is not the hiedb thread - fix message

* Fix handler - either an error or success

* additional .gitignore entries (#1659)

* Fix ignore paths (#1656)

* Skip individual steps

* Skip individual steps

* And needs pre_job

* Add bounds for Diff (#1665)

* Replace Barrier with MVar in lsp main (#1668)

* Port UseStale to ghcide

* Use the new ghcide UseStale machinery

* Fix hlint complaints

Co-authored-by: wz1000 <zubin.duggal@gmail.com>
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Potato Hatsue <1793913507@qq.com>
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants