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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ COPY client/package.json client/build.gradle.kts /app/client/
RUN ./gradlew shadowJar --paralell --no-daemon --continue || true

COPY . /app
RUN ["./gradlew", "clean"]
RUN [ "./gradlew", "shadowJar", "--parallel", "--no-daemon" ]

FROM ubuntu:latest
Expand Down
3 changes: 3 additions & 0 deletions client/src/composables/useCommonTokenSequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,9 @@ function getIndexFromPosition(text: string, position: monaco.Position): number {
if (position.lineNumber === raws.length + 1 && position.column === 0) {
return indexCount
}
if (raws[0] == "This is a binary file.") {
return 0
}
throw new Error(
`position ${position.toString()} must be less than text which has ${
raws.length
Expand Down