Skip to content

Commit

Permalink
PATH env must store the directory of the node and not the node exe). See
Browse files Browse the repository at this point in the history
  • Loading branch information
angelozerr committed Jul 7, 2017
1 parent 8330ee5 commit 6e544a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,6 @@ public void run() {

}

private String getNodeFilePath() {
File nodeFile = TypeScriptResourceUtil.getWorkspaceNodejsInstallPath();
return nodeFile != null ? FileUtils.getPath(nodeFile) : null;
}
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*******************************************************************************/
package ts.eclipse.ide.ui.wizards;

import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.net.URI;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -74,9 +75,11 @@
import org.eclipse.ui.statushandlers.StatusManager;
import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;

import ts.eclipse.ide.core.utils.TypeScriptResourceUtil;
import ts.eclipse.ide.terminal.interpreter.CommandTerminalService;
import ts.eclipse.ide.terminal.interpreter.LineCommand;
import ts.eclipse.ide.ui.TypeScriptUIPlugin;
import ts.utils.FileUtils;

/**
* Standard workbench wizard that creates a new TypeScript project resource in
Expand Down Expand Up @@ -549,6 +552,11 @@ private static boolean confirmPerspectiveSwitch(IWorkbenchWindow window, IPerspe
return result == IDialogConstants.YES_ID;
}

protected String getNodeFilePath() {
File nodeFile = TypeScriptResourceUtil.getWorkspaceNodejsInstallPath();
return nodeFile != null ? FileUtils.getPath(nodeFile.getParentFile()) : null;
}

protected abstract IRunnableWithProgress getRunnable(final IProject newProjectHandle,
final IProjectDescription description, IPath projectLocation);
}

0 comments on commit 6e544a6

Please sign in to comment.