Skip to content

Commit 933300e

Browse files
committed
Remove the rest of the reference to "com.intellij.coverage.*" from the Dart IJ plugin.
These references were causing exceptions in the plugin startup.
1 parent 6dd3f6f commit 933300e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

third_party/src/main/java/com/jetbrains/lang/dart/analyzer/DartAnalysisServerService.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import com.google.dart.server.utilities.logging.Logging;
1313
import com.google.gson.JsonObject;
1414
import com.intellij.codeInsight.CodeInsightSettings;
15-
import com.intellij.coverage.CoverageLoadErrorReporter;
16-
import com.intellij.coverage.DummyCoverageLoadErrorReporter;
1715
import com.intellij.openapi.Disposable;
1816
import com.intellij.openapi.application.ApplicationInfo;
1917
import com.intellij.openapi.application.ApplicationManager;
@@ -1954,15 +1952,10 @@ private void analysis_setSubscriptions() {
19541952
}
19551953

19561954
public @Nullable String execution_createContext(@NotNull String filePath) {
1957-
return execution_createContext(filePath, new DummyCoverageLoadErrorReporter());
1958-
}
1959-
1960-
public @Nullable String execution_createContext(@NotNull String filePath, @NotNull CoverageLoadErrorReporter reporter) {
19611955
final AnalysisServer server = myServer;
19621956
if (server == null) {
19631957
String message = "Dart Analysis Server is not available.";
19641958
LOG.warn(message);
1965-
reporter.reportWarning(message, null);
19661959
return null;
19671960
}
19681961

@@ -1980,7 +1973,6 @@ public void computedExecutionContext(final String contextId) {
19801973
public void onError(final RequestError error) {
19811974
logError("execution_createContext()", fileUri, error);
19821975
String message = getShortErrorMessage("execution_createContext()", fileUri, error);
1983-
reporter.reportError("Execution context creation failed: " + message);
19841976
latch.countDown();
19851977
}
19861978
});
@@ -1989,8 +1981,6 @@ public void onError(final RequestError error) {
19891981

19901982
if (latch.getCount() > 0) {
19911983
logTookTooLongMessage("execution_createContext", EXECUTION_CREATE_CONTEXT_TIMEOUT, fileUri);
1992-
String message = "Execution context creation timed out.";
1993-
reporter.reportWarning(message, null);
19941984
}
19951985
return resultRef.get();
19961986
}

0 commit comments

Comments
 (0)