[Laszlo-dev] look familiar? Unknown type for PUSH: false

Benjamin Shine ben at laszlosystems.com
Fri Jan 19 16:20:11 PST 2007


I'm hung up on this error, while trying to rewrite lzsc in java. Does  
this look familiar to either of you? It arises later in execution of  
the script compiler than my parsing of options, inside  
Compiler.compile. (This is where we hit Tucker's awesome comment  
FIXME: use a language with dynamic dispatch.)

How can I figure out more about what's causing this?

test-lzsc-v:
      [java] got arg -v
      [java] got arg --default=sc/tests/test.js
      [java] Got --default (which means scriptfile to compile) sc/ 
tests/test.js
      [java] got arg -osc/tests/test.out
      [java] Got -o for outputfilename sc/tests/test.out
      [java] using outfile sc/tests/test.out
      [java] init compiler options{scriptfile=sc/tests/test.js,  
runtime=swf7, flashCompilerCompatability=true, compileTimeConstants= 
{$dhtml=false, $as3=false, $js1=false, $swf9=false, $swf7=true,  
$profile=false, $swf8=false, $runtime=swf7, $svg=false, $as2=true,  
$debug=false, $j2me=false}, obfuscate=false,  
printCompilerOptions=true, cacheCompiles=true,  
generateFunction2ForLZX=true, progress=true, processIncludes=true,  
profile=false, outputfile=sc/tests/test.out, generateFunction2=true,  
allowRoot=true, createActivationObject=false,  
conditionalCompilation=true}
      [java] resolve called with sc/tests/test.js
      [java] going to open file ./sc/tests/test.js
      [java] Assembling...
      [java] Exception compiling scriptfile: Unknown type for PUSH:  
false
      [java] Unknown exception compiling in lzsc: Unknown type for  
PUSH: false
      [java] org.openlaszlo.sc.CompilerException: Unknown type for  
PUSH: false
      [java]     at org.openlaszlo.sc.Instructions 
$PUSHInstruction.writeArgs(Instructions.java:942)
      [java]     at org.openlaszlo.sc.Instructions 
$ConcreteInstruction.writeBytes(Instructions.java:354)
      [java]     at org.openlaszlo.sc.Assembler.emit(Assembler.java:216)
      [java]     at org.openlaszlo.sc.Optimizer.flush(Optimizer.java:37)
      [java]     at org.openlaszlo.sc.Optimizer.emit(Optimizer.java:123)
      [java]     at org.openlaszlo.sc.Optimizer.assemble 
(Optimizer.java:50)
      [java]     at org.openlaszlo.sc.Compiler.compile(Compiler.java: 
374)
      [java]     at org.openlaszlo.sc.lzsc.compile(lzsc.java:265)
      [java]     at org.openlaszlo.sc.lzsc.scriptcompile(lzsc.java:115)
      [java]     at org.openlaszlo.sc.LFCCompiler.compile 
(LFCCompiler.java:6)
      [java]     at org.openlaszlo.sc.Main.main(Main.java:10)
      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0 
(Native Method)





Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
ben at laszlosystems.com





More information about the Laszlo-dev mailing list