Skip to content

Commit

Permalink
printed a help message for people wanting to take screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Oct 30, 2023
1 parent 2f9445e commit 53fbc38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lang/rascal/tutor/repl/TutorCommandExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,18 @@ protected Evaluator constructEvaluator(InputStream input, OutputStream stdout, O
else {
this.service = null;
this.driver = null;
printInfoMessage();
}
}

private void printInfoMessage() {
System.err.println("INFO: tutor screenshot feature is currently disabled. To enable:");
System.err.println("\t* add the folder holding `chromedriver` to your PATH;");
System.err.println("\t* add the foldering holding `chrome` or `Google Chrome for Testing` to your PATH;");
System.err.println("\t* or use: `-Dwebdriver.chrome.browser=/path/to/chrome -Dwebdriver.chrome.driver/path/to/chromedriver`");
System.err.println("INFO: chrome and the chromedriver need to be aligned exactly. See https://googlechromelabs.github.io/chrome-for-testing/");
}

private String inferChromeBrowserBinaryLocation() throws IOException {
ISourceLocation pathBrowser = URIUtil.correctLocation("PATH", "", "Google Chrome for Testing");

Expand Down

0 comments on commit 53fbc38

Please sign in to comment.