#871 Fanp bug

tactics Wed 16 Dec 2009

I got curious and tried to fanp on a few pods:

C:\>fanp fwt::Canvas
     FPod.reading [file:/C:/Documents and Settings/malonm/Desktop/fantom-1.0.47/lib/fan/sys.pod]...
     FPod.reading [file:/C:/Documents and Settings/malonm/Desktop/fantom-1.0.47/lib/fan/fwt.pod]...
--fwt::Canvas : fwt::Widget--
    [SourceFile] size=12
       Canvas.fan
    [LineNumber] size=2
       15
    [Facets] size=10
sys::IndexErr: 5
  fan.sys.List.get (List.java:161)
  compiler::FTable.get (FTable.fan:113)
  compiler::FPod.symbolRef (FPod.fan:89)
  compiler::FPod.symbolRefStr (FPod.fan:100)
  compiler::FPrinter.facetsAttr (FPrinter.fan:178)
  fan.sys.Func$Indirect0.call (Func.java:116)
  fan.sys.FanInt.times (FanInt.java:485)
  compiler::FPrinter.facetsAttr (FPrinter.fan:176)
  compiler::FPrinter.attr (FPrinter.fan:159)
  compiler::FPrinter.attrs (FPrinter.fan:147)
  fan.sys.List.each (List.java:522)
  compiler::FPrinter.attrs (FPrinter.fan:147)
  compiler::FPrinter.ftype (FPrinter.fan:85)
  compiler::Fanp.printType (Fanp.fan:40)
  compiler::Fanp.execute (Fanp.fan:24)
  compiler::Fanp.run (Fanp.fan:138)
  compiler::Fanp.main (Fanp.fan:162)
  java.lang.reflect.Method.invoke (Unknown)
  fan.sys.Method.invoke (Method.java:536)
  fan.sys.Method$MethodFunc.callList (Method.java:182)
  2 More...

Here is the list of pods it crashed on:

  • build
  • compiler
  • compilerJava
  • dom
  • email
  • fandoc
  • fwt
  • gfx
  • obix
  • sys
  • testCompiler
  • testSys
  • testWeb
  • web
  • wisp
  • xml

I'm not sure what the cause might be. It works on all the other pods. It's strange that it would fail on just about half of them...

brian Wed 16 Dec 2009

Thanks for reporting that.

I pushed a fix

Login or Signup to reply.