Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile error #93

Merged
merged 5 commits into from
Jun 6, 2022
Merged
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 @@ -7,13 +7,13 @@

import io.github.rosemoe.sora.widget.CodeEditor;
import io.github.rosemoe.sora.lang.styling.Span;
import io.github.rosemoe.sora.lang.styling.SpansUtil;
import io.github.rosemoe.sora.lang.styling.SpansUtils;

import java.util.List;

public class ProblemMarker {

private CodeEditor editor;
private static CodeEditor editor;
private JavacAnalyzer analyzer;

public ProblemMarker(CodeEditor editor) {
Expand Down Expand Up @@ -46,9 +46,9 @@ public void run() {
break;
default:
flag = Span.FLAG_ERROR;
break
break;
}
SpansUtil.markProblemRegion(editor.getStyles().getSpans(), flag, wrapper.getStartLine(), wrapper.getStartColumn(), wrapper.getEndLine(), wrapper.getEndColumn());
SpansUtils.markProblemRegion(editor.getStyles().getSpans(), flag, wrapper.getStartLine(), wrapper.getStartColumn(), wrapper.getEndLine(), wrapper.getEndColumn());
}
} catch (Exception e) {
e.printStackTrace();
Expand All @@ -73,4 +73,4 @@ public static void setLineAndColumn(DiagnosticWrapper diagnostic) {
// unknown index, dont display line number
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class ContentChangeEvent extends Event {
private final CharPosition mStart;
private final CharPosition mEnd;
private final CharSequence mTextChanged;
private Runnable runnable = null;
private static Runnable runnable = null;

public ContentChangeEvent(
CodeEditor editor,
Expand Down