I’m trying to write an Atom linter based on Scala’s SBT build tool. I’m spawning child processes that call the sbt CLI utility directly. However, SBT always fails with an out-of-memory exception, running out of heap space:
@cwd = atom.project.path command = @executablePath + '/' + @cmd console.log('[linter-sbt] executing command=[' + command + ']') sbt = spawn(command, ['-v', 'compile']) sbt.stdout.on('data', (data) -> console.log('[linter-sbt] stdout: ' + data) ) sbt.stderr.on('data', (data) -> console.log('[linter-sbt] stderr: ' + data) )
When I run the same command from command line directly, or from a vanilla Nodejs script it runs fine.
Am I doing something wrong?