[
https://issues.jboss.org/browse/JBIDE-26148?page=com.atlassian.jira.plugi...
]
Andre Dietisheim edited comment on JBIDE-26148 at 7/23/18 11:38 AM:
--------------------------------------------------------------------
[~rob.stryker] Ack on that but how often and when would that happen? Only when one starts
the adapter up or maybe in the preferences. Situations where I'd think that the user
expects heavier loads in Eclipse?
I believe that the $PATH is only loaded at vm startup, missing updates to it anyhow. So
the only case that we can catch is where one corrects a missing link while keeping Eclipse
running. I'd think that this is worth it, but arguable.
was (Author: adietish):
[~rob.stryker] Ack on that. And then I believe that the $PATH is only loaded at vm
startup, missing updates to it anyhow.
CommandLocationBinary: only searches once (wont retry if it fails,
forcing me to restart Eclipse once I corrected $PATH)
------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-26148
URL:
https://issues.jboss.org/browse/JBIDE-26148
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.6.0.AM3
Reporter: Andre Dietisheim
Assignee: Rob Stryker
[
CommandLocationBinary|https://github.com/adietish/jbosstools-openshift/bl...]
allows to lookup a command (on the $PATH, etc.). But it'll only do so once:
{code:title=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;
}
{code}
Once the lookup failed, it'll store this in the var *searchFailed* and wont do it a
2nd time.
What if I update my PATH 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 once I changed my $PATH.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)