Swift repls fail with Disk quota exceeded apparently during compilation

Problem description:
Created trivial Swift REPL using your template, used your sample code as well as a simple line of my own - same behaviour.

Upgraded from free account to Hacker status - still same.

Expected behavior:
Program runs and prints a few lines

Actual behavior:
Repl Resources tab shows RAM exceeded with “At limit” warning

Console shows:

 swiftc -o main main.swift
nix error: building nix env: exit status 100
Output has been trimmed to the last 20 lines
cp: cannot create directory ‘llvm-project/compiler-rt’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/debuginfo-tests’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/flang’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/libc’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/libclc’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/libcxx’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/libcxxabi’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/libunwind’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/lld’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/lldb’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/llvm’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/mlir’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/openmp’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/parallel-libs’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/polly’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/pstl’: Disk quota exceeded
cp: cannot create directory ‘llvm-project/utils’: Disk quota exceeded
builder for ‘/nix/store/jh230i8crfhj13fq7cbvmxg2d5frj09c-swift-5.4.2.drv’ failed with exit code 1
error: build of ‘/nix/store/jh230i8crfhj13fq7cbvmxg2d5frj09c-swift-5.4.2.drv’ failed

Steps to reproduce:

  1. Create a repl using Swift template
  2. Enter a simple Swift expression eg print("Hello replers")
  3. Run

Bug appears at this link:
https://replit.com/@AndyDentPerth/TayWest02#main.swift

also someone else’s Swift repl from a couple of months ago fails with same error
https://replit.com/@MosheHadad/Swift-testing?v=1

Browser/OS/Device:
Chrome 103.0.5060.134/macOS 12.6.1/iMac 27"

3 Likes

This is happening for all my Swift repls this morning - they were working yesterday but now none of them are working.

Hey @AndrewMolyneux and @AndyDentPerth, welcome to the forums!

I’m sure this we get fixed soon!

2 Likes

Same here! None of my projects are working. :sob:

Same for me too. None of my Swift repls are working. A bit frustrating.

Hey everyone,

Sorry for the delay and the downtime.

The issue has been mitigated now. We patched Swift for:

  • New Swift Repls
  • Old Swift Repls, however, running someone’s broken Swift Repl from cover page or if someone has a server running with Swift it’ll stay broken until the owner of the Repl opens it in the workspace
2 Likes

New Swift repls seem to be OK but my old repls still seem to be broken, eg: https://replit.com/@AndrewMolyneux/AdventOfCode2022Day6#main.swift

Have you tried this?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.