Skip to content

Commit 4b49b2d

Browse files
committed
Finishes new languages
1 parent 5d98e6f commit 4b49b2d

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Use a minimal base image
22
FROM ubuntu:latest
33

4+
ARG DEBIAN_FRONTEND=noninteractive
45
RUN apt-get update && apt-get install -y \
56
python3 \
67
openjdk-17-jdk \
78
gcc \
89
g++ \
910
bash \
1011
golang-go \
11-
mono-complete \
12+
mono-devel \
1213
rustc \
1314
&& rm -rf /var/lib/apt/lists/*
1415

src/components/problemview.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,14 @@ export default function ProblemView({
209209
height={`${(80 * codeSize) / 100}vh`}
210210
extensions={[
211211
loadLanguage(
212-
language as "java" | "python" | "csharp" | "cpp" | "c" | "rust" | "go",
212+
language as
213+
| "java"
214+
| "python"
215+
| "csharp"
216+
| "cpp"
217+
| "c"
218+
| "rust"
219+
| "go",
213220
)!,
214221
]} //Typescript shenanigans
215222
basicSetup={{

src/server/api/routers/code.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,12 @@ export const codeRouter = createTRPCRouter({
206206
},
207207
rust: {
208208
ext: "rs",
209-
compile: `rustc ${codePath}.rs`,
209+
compile: `rustc --out-dir ${codePathFolder} ${codePath}.rs`,
210210
run: `./${ctx.userId}${input.name}`,
211211
},
212212
go: {
213213
ext: "go",
214-
run: `go run ${codePath}.go`,
214+
run: `go run ${ctx.userId}${input.name}.go`,
215215
},
216216
};
217217
const langObject = langSearch[input.lang] ?? "Error"; //We have the appropriate necessities for our language stored in this object

0 commit comments

Comments
 (0)