Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static void validateRebarPath(String rebarPath, Consumer<String> consume

String escriptPath = RebarRunningStateUtil.findEscriptExecutable();
ExtProcessUtil.ExtProcessOutput escript = ExtProcessUtil.execAndGetFirstLine(3000, escriptPath, rebarPath, "--version");
String versionWithEscript = rebar.getStdOut();
String versionWithEscript = escript.getStdOut();

if (versionWithEscript.startsWith("rebar")) {
updateUI(consumer, versionWithEscript);
Expand Down
2 changes: 1 addition & 1 deletion src/org/intellij/erlang/sdk/ErlangSdkRelease.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public final class ErlangSdkRelease {
public static final ErlangSdkRelease V_17_0 = new ErlangSdkRelease("17", "6.0");
public static final ErlangSdkRelease V_18_0 = new ErlangSdkRelease("18", "7.0");

private static final Pattern VERSION_PATTERN = Pattern.compile("Erlang/OTP (\\S+) \\[erts-(\\S+)]");
private static final Pattern VERSION_PATTERN = Pattern.compile("OTP (\\S+), erts-(\\S+)");

private final String myOtpRelease;
private final String myErtsVersion;
Expand Down