diff --git a/Dockerfile b/Dockerfile index 29e0f61..eab926a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/client/src/composables/useCommonTokenSequence.ts b/client/src/composables/useCommonTokenSequence.ts index 69c898b..42b6c88 100644 --- a/client/src/composables/useCommonTokenSequence.ts +++ b/client/src/composables/useCommonTokenSequence.ts @@ -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