shdqcdsn / counterclockwise

Automatically exported from code.google.com/p/counterclockwise
0 stars 0 forks source link

Update leiningen dependencies should not block the workspace that long ... #671

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the big maven download should occur outside the job

It's bad when the user cannot save their work because a background upgrade 
occurs ...

Original issue reported on code.google.com by laurent....@gmail.com on 20 Nov 2014 at 9:15

GoogleCodeExporter commented 9 years ago
You are right, it is really annoying that the project.clj isn't saved 
immediately and the whole Eclipse hangs for quite some time.
I started to edit project.clj with vim on commandline... :(

Original comment by Gunnar.V...@googlemail.com on 27 Nov 2014 at 12:36

GoogleCodeExporter commented 9 years ago
Yes, I have tried to chase and eradicate all the sources of hangs, but this one 
remains and it's bad, thus the critical priority I've set to it.

Original comment by laurent....@gmail.com on 27 Nov 2014 at 3:58

GoogleCodeExporter commented 9 years ago

Original comment by laurent....@gmail.com on 28 Nov 2014 at 10:53

GoogleCodeExporter commented 9 years ago
Making good progress on this one.
Removed workspace locks for dependencies upgrade either automatic (in reaction 
to project.clj changes) or manual (explicit update dependencies or reset 
project build path command).
Also when leiningen natures are automatically added ...

Now the workspace is only locked at the very least time, for write operations, 
and all long running operations (I/O bound such as getting deps from the 
network, refreshing a project) are put in separate jobs without any lock.

Original comment by laurent....@gmail.com on 28 Nov 2014 at 11:17

GoogleCodeExporter commented 9 years ago
I have pushed the update on master. You should be able to test the new behavior.

Hopefully it will totally remove the need to edit some files outside Eclipse!

Please tell me if there remain some lock problems, or if by removing a lock I 
introduced some issue e.g. exceptions due to failures to acquire lock, etc.

Original comment by laurent....@gmail.com on 28 Nov 2014 at 11:24

GoogleCodeExporter commented 9 years ago

Original comment by laurent....@gmail.com on 4 Dec 2014 at 12:06