Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26148

CommandLocationBinary: only searches once (wont retry if it fails, forcing me to restart Eclipse once I corrected a broken link)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.6.0.AM3
    • openshift
    • None

      CommandLocationBinary allows to lookup a command (on the $PATH, etc.). But it'll only do so once:

      CommandLocationBinary
      	public String findLocation(int timeout) {
      		if (foundLoc != null || searchFailed)
      			return foundLoc;
      
      		String searched = CommandLocationLookupStrategy.get().search(this, timeout);
      		if (searched == null) {
      			searchFailed = true;
      		}
      		foundLoc = searched;
      		return searched;
      	}
      

      Once the lookup failed, it'll store this in the var searchFailed and wont do it a 2nd time.
      What if I update my ex. correct a broken link to oc while I keep Eclipse running?
      I'd think that one should be able to repeat the lookup if it fails since the user could modify it's system while he keeps Eclipse running. Afaics the current impl forces me to restart Eclipse.

            rob.stryker Rob Stryker (Inactive)
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: