Being unfamiliar with Eclipse (I use IntelliJ IDEA @ work), I'm not sure if I have a configuration problem or if this is an actual bug.
I tried some of the examples using gfx and I get a red x in eclipse and an error that says "Pod not found gfx" and "Using gfx which is not a declared dependancy for MyProject", but the gfx.pod is under the folder fanlib which is in my project. I'm not sure what else I need to do for it to work.
BTW, other more simple examples do work, so at least my bare bones setup is correct.
ivanThu 12 Aug 2010
champt0n,
Build of fantom projects in F4 is very similar to building fantom pods from console - it is build.fan controlled. So you have to declare the dependency to gfx.pod in build.fan which is located in project root. If I misunderstood you or you still experience problems, please mail to [email protected] or create an issue in F4 Jira (you'll need to register).
champt0nThu 12 Aug 2010
Ivan,
Thanks for the quick response. That was indeed what I was missing. I actually thought I might need the dependencies in build.fan at one point, but then I saw an fwt example where the build.fan didn't have them listed so that was a bit confusing to me.
I've been programming more than twenty years, but there's nothing like a new language and a new IDE to make you feel like a first year noob! :)
Thanks Again!
andyThu 12 Aug 2010
@champt0n - The examples mostly all run as scripts - where the dependencies are determined from the imports (since there is no build/pod for them) - see HelloWorld for more details on scripts vs pods.
mooney_jFri 11 Feb 2011
This is how I updated the build.fan -- I guessed the version numbers. How do I query a pod file to tell the version?
depends = ["sys 1.0","gfx 1.0","fwt 1.0"]
tcolarFri 11 Feb 2011
Right now all fantom pods are version 1.0, so you can use that.
Also you might want to use 1.0+ to allow for future versions.
If you want to find a pod dependencies, you can try:
champt0n Thu 12 Aug 2010
Being unfamiliar with Eclipse (I use IntelliJ IDEA @ work), I'm not sure if I have a configuration problem or if this is an actual bug.
I tried some of the examples using gfx and I get a red x in eclipse and an error that says "Pod not found gfx" and "Using gfx which is not a declared dependancy for MyProject", but the
gfx.pod
is under the folderfanlib
which is in my project. I'm not sure what else I need to do for it to work.BTW, other more simple examples do work, so at least my bare bones setup is correct.
ivan Thu 12 Aug 2010
champt0n,
Build of fantom projects in F4 is very similar to building fantom pods from console - it is build.fan controlled. So you have to declare the dependency to gfx.pod in build.fan which is located in project root. If I misunderstood you or you still experience problems, please mail to [email protected] or create an issue in F4 Jira (you'll need to register).
champt0n Thu 12 Aug 2010
Ivan,
Thanks for the quick response. That was indeed what I was missing. I actually thought I might need the dependencies in build.fan at one point, but then I saw an fwt example where the build.fan didn't have them listed so that was a bit confusing to me.
I've been programming more than twenty years, but there's nothing like a new language and a new IDE to make you feel like a first year noob! :)
Thanks Again!
andy Thu 12 Aug 2010
@champt0n - The examples mostly all run as scripts - where the dependencies are determined from the imports (since there is no build/pod for them) - see HelloWorld for more details on scripts vs pods.
mooney_j Fri 11 Feb 2011
This is how I updated the build.fan -- I guessed the version numbers. How do I query a pod file to tell the version?
tcolar Fri 11 Feb 2011
Right now all fantom pods are version 1.0, so you can use that.
Also you might want to use
1.0+
to allow for future versions.If you want to find a pod dependencies, you can try: