Skip to content

Conversation

@vspinu
Copy link
Contributor

@vspinu vspinu commented Sep 17, 2014

Cider should not be useful before the initialization has completed. So, don't use async requests during client initialization.

@bbatsov
Copy link
Member

bbatsov commented Sep 18, 2014

If we're going down this path it makes sense to do the initial describe session sync as well.

@bbatsov
Copy link
Member

bbatsov commented Sep 18, 2014

Forget my comment, I just saw you've actually done this already.

@bbatsov
Copy link
Member

bbatsov commented Sep 18, 2014

The code looks good, but you'll have to rebase.

@vspinu
Copy link
Contributor Author

vspinu commented Sep 18, 2014

Ok, have done that. Thanks.

bbatsov added a commit that referenced this pull request Sep 18, 2014
[Fix #810] don't allow requests before client initialization has completed
@bbatsov bbatsov merged commit 7512b83 into clojure-emacs:master Sep 18, 2014
@vspinu vspinu deleted the startup branch September 19, 2014 04:22
@bbatsov
Copy link
Member

bbatsov commented Sep 19, 2014

Btw, we should probably invoke those sync requests without a timeout, or we might run into a problem similar to the slow version requests that were interrupting the startup in the past. Waiting indefinitely on a request, that's never going to blow up internally, is OK.

@vspinu
Copy link
Contributor Author

vspinu commented Sep 19, 2014

Bozhidar Batsov on Fri, 19 Sep 2014 04:54:29 -0700 wrote:

Btw, we should probably invoke those sync requests without a timeout, or we
might run into a problem similar to the slow version requests that were
interrupting the startup in the past. Waiting indefinitely on a request, that's
never going to blow up internally, is OK.

I aggree. I also think we should increase the timeout on remotes. I have
experienced timeout yesterday on C-c C-n in REPL on a fully loaded
remote machine.

@bbatsov
Copy link
Member

bbatsov commented Sep 19, 2014

I have
experienced timeout yesterday on C-c C-n in REPL on a fully loaded
remote machine.

I think we should drop the timeouts completely or at least disable them by default. This will force our hand to fix quickly the middleware problems. To make this viable we should just add :status :done to the messages we send in case of an exception and send the same data we send on eval exceptions.

@vspinu
Copy link
Contributor Author

vspinu commented Sep 19, 2014

I think we should drop the timeouts completely or at least disable them by
default.

Yes, completely agree.

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.

2 participants