Skip to content

Commit

Permalink
KotlinSignatureInJavaMarkerProvider: do not report errors on exceptions
Browse files Browse the repository at this point in the history
Fixing it is not in our immediate plans and these exceptions litter our EA and create a bad impression for users, while not really disrupting any workflow
  • Loading branch information
pTalanov committed Jun 8, 2015
1 parent 1a16e3c commit a9663fa
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -20,7 +20,6 @@
import com.intellij.codeInsight.daemon.GutterIconNavigationHandler;
import com.intellij.codeInsight.daemon.LineMarkerInfo;
import com.intellij.codeInsight.daemon.LineMarkerProvider;
import com.intellij.diagnostic.LogMessageEx;
import com.intellij.icons.AllIcons;
import com.intellij.ide.DataManager;
import com.intellij.ide.util.PropertiesComponent;
Expand All @@ -43,7 +42,6 @@
import org.jetbrains.kotlin.idea.caches.resolve.JavaResolveExtension;
import org.jetbrains.kotlin.idea.caches.resolve.ResolvePackage;
import org.jetbrains.kotlin.idea.project.ProjectStructureUtil;
import org.jetbrains.kotlin.idea.util.attachment.AttachmentPackage;
import org.jetbrains.kotlin.load.java.JavaBindingContext;
import org.jetbrains.kotlin.load.java.structure.impl.JavaConstructorImpl;
import org.jetbrains.kotlin.load.java.structure.impl.JavaFieldImpl;
Expand Down Expand Up @@ -109,11 +107,7 @@ private static void markElements(
}
}
catch (AssertionError error) {
LOG.error(LogMessageEx.createEvent(
"Exception while collecting KotlinSignature markers",
ExceptionUtil.getThrowableText(error),
AttachmentPackage.attachmentByPsiFileAsArray(psiFile)
));
LOG.warn("Exception while collecting KotlinSignature markers:\n" + ExceptionUtil.getThrowableText(error));
}
}

Expand Down

0 comments on commit a9663fa

Please sign in to comment.