Skip to content

Instantly share code, notes, and snippets.

@dln
dln / fsc-idea.sh
Created May 4, 2011 08:38
Keep fsc (Fast Scala Compiler) alive so intellij doesn't lock up when fsc shuts down when idle.
#!/bin/bash
JAVA_OPTS="$JAVA_OPTS -Xmx512M -Xms64M" fsc -shutdown
DUMMY=$(mktemp -t fsc-dummy.$USER.XXXXX)
echo "object Dummy { val answer = 42 }" > $DUMMY
trap "rm -f $DUMMY" EXIT
while true; do
echo Compiling dummy...
scala $DUMMY