8000 PATH env must store the directory of the node and not the node exe). See · angelozerr/typescript.java@6e544a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e544a6

Browse files
committed
PATH env must store the directory of the node and not the node exe). See
angelozerr/angular-eclipse#93
1 parent 8330ee5 commit 6e544a6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

eclipse/ts.eclipse.ide.ui/src/ts/eclipse/ide/internal/ui/wizards/NewTypeScriptProjectWizard.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,6 @@ public void run() {
219219

220220
}
221221

222-
private String getNodeFilePath() {
223-
File nodeFile = TypeScriptResourceUtil.getWorkspaceNodejsInstallPath();
224-
return nodeFile != null ? FileUtils.getPath(nodeFile) : null;
225-
}
226222
};
227223
}
228224

eclipse/ts.eclipse.ide.ui/src/ts/eclipse/ide/ui/wizards/AbstractNewProjectWizard.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*******************************************************************************/
1414
package ts.eclipse.ide.ui.wizards;
1515

16+
import java.io.File;
1617
import java.lang.reflect.InvocationTargetException;
1718
import java.net.URI;
1819
import java.nio.charset.StandardCharsets;
@@ -74,9 +75,11 @@
7475
import org.eclipse.ui.statushandlers.StatusManager;
7576
import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;
7677

78+
import ts.eclipse.ide.core.utils.TypeScriptResourceUtil;
7779
import ts.eclipse.ide.terminal.interpreter.CommandTerminalService;
7880
import ts.eclipse.ide.terminal.interpreter.LineCommand;
7981
import ts.eclipse.ide.ui.TypeScriptUIPlugin;
82+
import ts.utils.FileUtils;
8083

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

555+
protected String getNodeFilePath() {
556+
File nodeFile = TypeScriptResourceUtil.getWorkspaceNodejsInstallPath();
557+
return nodeFile != null ? FileUtils.getPath(nodeFile.getParentFile()) : null;
558+
}
559+
552560
protected abstract IRunnableWithProgress getRunnable(final IProject newProjectHandle,
553561
final IProjectDescription description, IPath projectLocation);
554562
}

0 commit comments

Comments
 (0)
0