Community
Participate
Working Groups
As expected, when I have multiple Eclipse instances open at the same time, I get multiple notifications for the same task, if that task appears on multiple queries. Since I'm using a shared .mylar data directory, I have one notification for each task update in each instance of Eclipse I have open. Ideally, I'd like to be able to have a central mechanism to eliminate duplicate notification pop-ups. However, if this were to be implemented, you'll need to deal which Eclipse instance to give the focus to (and to open the task in) if the notification link is clicked. Perhaps each notification should perform a lookup of which instances currently have that task in their respective task lists, and provide a drop-down option to choose the appropriate instance to open it in. Granted, having multiple instances open could probably be considered an exceptional path, but I often keep several open. For instance, I'll work on bugs reports in one while doing new development in another. Or sometimes I'll want to keep an eye on the incoming change sets for several disparate projects simultaneously. In these cases, this notification consolidation would be great to have. I also think it would really make the product seemed polished by handling these complex scenarios gracefully.
Oh, and I suppose this is actually a more general problem because the user can keep seperate mylar data directories for each workspace, create quite different queries, and still have some items appear in multiple task lists...thus generating duplicate notifications.
We can not gracefully support having two live instances both writing to the .mylar directory because things like long-running operations or some user-created changes could have bad effects. We handle most cases gracefully which is why you are able to work this way, but this mode is not supported. Not on bug 130658 that we are waiting on Platfrom bug 154097 to figure out how best to support this. *** This bug has been marked as a duplicate of bug 130658 ***
Mik, Mylar should try to create a lock file on startup and put Task List into a read only mode if lock can't be acquired.
I was wondering about that too. The thing is, I'm pretty sure that if the file is being written or read it will be locked, which means that it should be impossible to corrupt it. But if we lock it we make impossible this kind of experimentation described on this bug report, or opening the file while Eclipse is running. While we can't support this mode, I wonder if locking the file is worth it.
Not locking the task list file, but a separate .lock file, similar to one you can find in .metadata directory. On startup this file should be opened for writing, then closed on shutdown. On the other hand we need to support pluggable task list writers, those may allow better concurrency...