Package com.intellij.openapi.compiler

Examples of com.intellij.openapi.compiler.CompilerMessageCategory


        for (GHCMessage ghcMessage : ghcMessages) {
            if (FileUtil.filesEqual(new File(ghcMessage.getFileName()), mainFile)) {
                LineColRange lcRange = ghcMessage.getRange();
                TextRange range = lcRange.getRange(psiFile);
                String message = ghcMessage.getErrorMessage();
                CompilerMessageCategory category = ghcMessage.getCategory();

                Annotation out = null;
                switch (category) {
                case ERROR:
                    out = annotationHolder.createErrorAnnotation(range, message);
View Full Code Here


        int newLineIndex = ghcError.indexOf(newLine);
        fileName = ghcError.substring(0, newLineIndex);

        int nextNewLineIndex = ghcError.indexOf(newLine, newLineIndex + newLine.length());
        String posString = ghcError.substring(newLineIndex + newLine.length(), nextNewLineIndex);
        CompilerMessageCategory cmc;
        if (posString.startsWith("W")) {
            cmc = CompilerMessageCategory.WARNING;
            posString = posString.substring(1);
        } else if (posString.startsWith("E")) {
            cmc = CompilerMessageCategory.ERROR;
View Full Code Here

    }

    final String path = (lineSeparationIndex == -1) ? pathAndLine : pathAndLine.substring(0, lineSeparationIndex);

    final int errorSeparationIndex = message.indexOf(':', pathSeparationIndex);
    CompilerMessageCategory category = CompilerMessageCategory.ERROR;
    String errorMessage = "";
    if (errorSeparationIndex != -1) {
      errorMessage = message.substring(errorSeparationIndex + 1).trim();
      if (errorMessage.startsWith("Warning : ")) {
        errorMessage = errorMessage.substring("Warning : ".length()).trim();
View Full Code Here

    String warning = matcher.group(3);
    String details = matcher.group(4);

    String path = StringUtil.isEmpty(rootPath) ? relativeFilePath : new File(FileUtil.toSystemIndependentName(rootPath), relativeFilePath).getPath();
    int lineNumber = StringUtil.parseInt(line, -1);
    CompilerMessageCategory category = warning != null ? CompilerMessageCategory.WARNING : CompilerMessageCategory.ERROR;
    assert path != null;
    return new ErlangCompilerError(details, VfsUtilCore.pathToUrl(path), lineNumber, category);
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.compiler.CompilerMessageCategory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.