ceylon/ceylon-compiler — Issue #307: ceylonc hangs when you run it in a "big" directory
Author: gavinking
Created: 2011-12-22 14:46:05+00:00
State: open
Labels: BUG

Looks like it scans the whole tree:

unknown_60-33-4b-0e-ac-b4:~ gavin$ ./Downloads/ceylon-0.1/bin/ceylonc -src ~ hello.ceylon

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
at java.lang.StringBuilder.append(StringBuilder.java:203)
at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93)
at java.io.File.(File.java:207)
at java.io.File.listFiles(File.java:1056)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:22)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.impl.FileSystemVirtualFile.(FileSystemVirtualFile.java:30)
at com.redhat.ceylon.compiler.typechecker.io.VFS.getFromFile(VFS.java:30)
at com.redhat.ceylon.compiler.tools.LanguageCompiler.ceylonParse(LanguageCompiler.java:238)
at com.redhat.ceylon.compiler.tools.LanguageCompiler.parse(LanguageCompiler.java:185)
at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:887)
at com.redhat.ceylon.compiler.tools.LanguageCompiler.parseFiles(LanguageCompiler.java:261)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:805)
at com.redhat.ceylon.compiler.launcher.Main.compile(Main.java:429)
at com.redhat.ceylon.compiler.launcher.Main.compile(Main.java:353)
at com.redhat.ceylon.compiler.launcher.Main.compile(Main.java:343)
at com.redhat.ceylon.compiler.Main.compile(Main.java:50)
at com.redhat.ceylon.compiler.Main.main(Main.java:69)