[jbosstools-issues] [JBoss JIRA] (JBIDE-21315) CDK: Missing PATH for vagrant and VBoxManage on Mac

Martin Malina (JIRA) issues at jboss.org
Mon Dec 14 05:58:00 EST 2015


Martin Malina created JBIDE-21315:
-------------------------------------

             Summary: CDK: Missing PATH for vagrant and VBoxManage on Mac
                 Key: JBIDE-21315
                 URL: https://issues.jboss.org/browse/JBIDE-21315
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: openshift
    Affects Versions: 4.3.1.Beta1
            Reporter: Martin Malina
            Assignee: Rob Stryker


It seems there is no JIRA to track this specifically yet.

The problem is that CDK tooling relies on PATH to find vagrant. And the "vagrant up" command in turn depends on PATH to find e.g. VBoxManage.

On Mac, when you start your Eclipse / JBDS as an app by double-clicking an icon on your Desktop or in Finder, the Eclipse instance will have no PATH env variable.

One workaround is to start your Eclipse from command line by going inside the package:
{code}
cd Eclipse.app/Contents/MacOS
./eclipse
{code}
But this is definitely not the recommended way to start Eclipse - I'm not sure if eclipse.ini is located properly in this case. But at least PATH is correct then.

There is actually one more workaround. To add your PATH to the Environment tab in Launch config. That works for me.

So that might be a potential solution to this problem - have a predefined PATH for each OS in case there is none defined in the Eclipse process.

Previous related JIRAs:
JBIDE-21175 [CDK] Require better logic to find vagrant.exe / vagrant command
JBIDE-21172 CDK server in Starting state and cannot be stopped with wrong path to vagrant



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list