Bug 409386 - UI should never stop user from editing or saving a file
Summary: UI should never stop user from editing or saving a file
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7.1   Edit
Hardware: All All
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo, ui, usability
Depends on: 329657
Blocks:
  Show dependency tree
 
Reported: 2013-05-29 09:08 EDT by Greg Bishop CLA
Modified: 2013-12-20 10:02 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Bishop CLA 2013-05-29 09:08:58 EDT
The entire concept of an IDE is that you edit files, and save things.

Sometimes you do things with those saved and edited files, (like compile them or run them or deploy them or debug them) but those things you do should NEVER stop you from doing the basic edit and save functionality.  The same is also true of navigation and search.  You should always be able to search for text and you should always be able to perform simple file based navigation.

Basically the IDE should NEVER block the user from editing and saving files.

Code completion and other "enhancements" to simple text editing should degrade gracefully if "things" are happening, but the IDE should NEVER stop the user from typing in their thoughts and persisting them.

I'm tired of reading about things like this on www.ihateeclipse.com, stackoverflow and other forums.  Surely eclipse can be adjusted so that simple file manipulation editing and saving is completely isolated from the rest of whatever else is happening.  That other stuff can block or queue up or whatever, but editing and saving ought not to EVER block.
Comment 1 Dani Megert CLA 2013-06-05 10:06:53 EDT
I know about the save problem - it is captured by bug 329657. However, I've never seen it while typing into the Text or Java editor. Can you provide steps that allow us to reproduce a blocking UI while typing?
Comment 2 Greg Bishop CLA 2013-06-07 09:58:17 EDT
Sure, select "build automatically", select "build (if required) before launching", set a "workspace save interval" (with any "validator" triggered on save), set a "clearcase refresh polling interval", also "maven" I think can do this.  In addition things currently block editing such as starting or stopping a server, or any of a myriad of other thigns that take time, all of those will prevent a user from clicking on a file and typing, and many of which when starting in the background grey out the screen and prevent the user who just realized somthing is wrong or who wants to make a quick change, from typing.
Comment 3 Dani Megert CLA 2013-06-11 10:11:32 EDT
(In reply to comment #2)
> Sure, select "build automatically", select "build (if required) before
> launching", set a "workspace save interval" (with any "validator" triggered
> on save), set a "clearcase refresh polling interval", also "maven" I think
> can do this.  In addition things currently block editing such as starting or
> stopping a server, or any of a myriad of other thigns that take time, all of
> those will prevent a user from clicking on a file and typing, and many of
> which when starting in the background grey out the screen and prevent the
> user who just realized somthing is wrong or who wants to make a quick
> change, from typing.

Looks like I misunderstood. You're not running into a lock while typing, but, some actions block the UI while running and you can't continue typing in the meantime? Correct?
Comment 4 Dani Megert CLA 2013-06-21 08:42:17 EDT
It can happen if plug-ins (ClearCase, Maven,...) take a too coarse grained lock. Those problems need to be fixed there.
Comment 5 Greg Bishop CLA 2013-06-21 12:53:55 EDT
No, this does NOT need to be fixed in the individual components.  A fix should NOT reply on fixing those components.  As part of defensive coding the eclipse UI must prevent other components from interfering with the UI.  This can't be solved by replying on every thrid party program and implementor doing their jobs properly.  I am reopening this bug.
Comment 6 Greg Bishop CLA 2013-06-21 12:54:48 EDT
No, this does NOT need to be fixed in the individual components.  A fix should NOT rely on fixing those components.  As part of defensive coding the eclipse UI must prevent other components from interfering with the UI.  This can't be solved by replying on every thrid party program and implementor doing their jobs properly.  I am reopening this bug.
Comment 7 Dani Megert CLA 2013-06-21 12:57:11 EDT
Sorry, the editor just needs the lock on its single file. We won't invest to change this. Using uppercase or posting the same thing twice won't change this.
Comment 8 Dani Megert CLA 2013-06-22 01:56:47 EDT
(In reply to comment #7)
> Sorry, the editor just needs the lock on its single file.

Just to clarify: the lock is only taken on save and for that case we have bug 329657. If some other component locks the UI, then there is really nothing the editor can do. However, if there is a case where the UI goes into a lock due to typing, then that would be a bug in the editor that we have to investigate.
Comment 9 Greg Bishop CLA 2013-12-20 10:02:19 EST
Sorry, did not mean to double post, but you should really reconsider your response.  The IDE should defend itself from being locked in this one specific case, were the user wants to type changes in.