#953 Fanp can't find a pod in a custom ${FAN_REPO}

msl Tue 2 Feb 2010

Hi all,

If I attempt to run fanp on a pod that's not under ${FANTOM_HOME}/lib/fan but instead under my local repository ${FAN_REPO}/lib/fan I get the following:

FPod.reading [file:./dev/fantom-1.0.49/lib/fan/sys.pod]...
compiler::CompilerErr: Pod not found 'pod_name'
  compiler::CNamespace.resolvePod (CNamespace.fan:203)
  compiler::Fanp.fpod (Fanp.fan:68)
  compiler::Fanp.printer (Fanp.fan:57)
  compiler::Fanp.printPod (Fanp.fan:30)
  compiler::Fanp.execute (Fanp.fan:23)
  compiler::Fanp.run (Fanp.fan:138)
  compiler::Fanp.main (Fanp.fan:162)
  java.lang.reflect.Method.invoke (Method.java:597)
  fan.sys.Method.invoke (Method.java:536)
  fan.sys.Method$MethodFunc.callList (Method.java:182)
  fan.sys.Method.callList (Method.java:147)
  fanx.tools.Fan.callMain (Fan.java:135)
  fanx.tools.Fan.executeType (Fan.java:102)
  fanx.tools.Fan.execute (Fan.java:38)
  fanx.tools.Fanp.main (Fanp.java:23)

Short of symlinking my pods into ${FANTOM_HOME}/lib/fan (and needing to remember to do that each time I upgrade) is there any way to have them picked up by fanp?

brian Tue 2 Feb 2010

Promoted to ticket #953 and assigned to brian

brian Tue 2 Feb 2010

Ticket resolved in 1.0.50

Fanp will now delegate to Env.findPodFile to resolve the pod file.

So when using a PathEnv (replacement for FAN_REPO) it will search correctly.

If you plug in some Env that fetches pods automatically from the web, that should work too!

Login or Signup to reply.