Skip to content

Commit

Permalink
adding requested changes (espressif#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaaa authored Apr 5, 2022
1 parent acaac8c commit b154453
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ protected IStatus run(IProgressMonitor monitor)
handleToolsInstallPython();
monitor.worked(1);


monitor.setTaskName("Installing websocket_client");
monitor.setTaskName(Messages.InstallToolsHandler_InstallingWebscoketMsg);
handleWebSocketClientInstall();
monitor.worked(1);

Expand All @@ -92,7 +91,6 @@ protected IStatus run(IProgressMonitor monitor)

return Status.OK_STATUS;
}

};
Preferences scopedPreferenceStore = InstanceScope.INSTANCE.getNode(UIPlugin.PLUGIN_ID);
scopedPreferenceStore.putBoolean(INSTALL_TOOLS_FLAG, true);
Expand All @@ -105,7 +103,6 @@ protected IStatus run(IProgressMonitor monitor)
Logger.log(e);
}
installToolsJob.schedule();

}

private void copyOpenOcdRules()
Expand Down Expand Up @@ -205,10 +202,9 @@ protected void handleWebSocketClientInstall()
IPath pipPath = new org.eclipse.core.runtime.Path(pythonExecutablenPath); //$NON-NLS-1$
String pipPathLastSegment = pipPath.lastSegment().replace("python", "pip"); //$NON-NLS-1$ //$NON-NLS-2$
pipPath = pipPath.removeLastSegments(1).append(pipPathLastSegment);

if (!pipPath.toFile().exists())
{
console.println("pip executable not found. Unable to run `pip install websocket-client`");
console.println(String.format("%s executable not found. Unable to run `%s install websocket-client`", pipPathLastSegment, pipPathLastSegment)); //$NON-NLS-1$
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class Messages extends NLS
public static String InstallToolsHandler_ConfiguredCMakeMsg;
public static String InstallToolsHandler_ExportingPathsMsg;
public static String InstallToolsHandler_InstallingPythonMsg;
public static String InstallToolsHandler_InstallingWebscoketMsg;
public static String InstallToolsHandler_InstallingToolsMsg;
public static String InstallToolsHandler_ItWilltakeTimeMsg;
public static String InstallToolsHandler_ToolsCompleted;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ InstallToolsHandler_ConfiguredBuildEnvVarMsg=Configured CDT Build Environment va
InstallToolsHandler_ConfiguredCMakeMsg=Configured CMake toolchain. You can check Preferences > C/C++ > CMake
InstallToolsHandler_ExportingPathsMsg=Exporting and processing tools paths
InstallToolsHandler_InstallingPythonMsg=Installing Python
InstallToolsHandler_InstallingWebscoketMsg=Installing websocket_client
InstallToolsHandler_InstallingToolsMsg=Installing tools...
InstallToolsHandler_ItWilltakeTimeMsg=This can take a while. Please be patient.
InstallToolsHandler_ToolsCompleted=Install tools completed.
Expand Down

0 comments on commit b154453

Please sign in to comment.