#2336 pod concept. Explanations needed.

rasa Wed 27 Aug 2014

Me and @SlimerDude have started Q/A discussion in this topic concept, but will continue here as this discussion deserves its own topic.

  1. First, I don't understand the concept of Fantom environment. Why is it important and what is it in reality?
  2. fanr query * doesn't work. The error I get is: ERROR: query command failed fanr::RemoteErr: Cannot parse response as JSON [404] use -errTrace for full stack trace
  3. How can I install and use multiple versions of pods? If I understood @SlimerDude well, it is impossible to instal more than one pod into /lib/fan folder due to a name conflict. So, how can I use two different versions?
  4. Is there any GUI tool for using repos?

p.s.

  • Perhaps this concepts is familiar for Linux users, but it is not for Win users, nor is for Java users. Docs are not quite clear about this.
  • Note that blockquote and "indent two or more spaces for preformatted" doesn't work inside lists.

SlimerDude Wed 27 Aug 2014

I'll answer the easy ones... :p

  1. ...
  2. You need to specify a repository to query! Try the Status302 Repository:
    fanr query -r http://repo.status302.com/fanr/ "*"
  3. Think of a Fantom environment as an execution environment, a single Fantom program will only ever need a single version of a pod. If two different Fantom programs need different versions of the same pod, then you'll need two different Fantom / execution environments.
  4. Nope. Not that I'm aware of. (It's nice project idea though!)

p.s.

Note that blockquote doesn't work inside lists.

I disagree - see above. Try this:

1. list
1. list
    preformat
1. list

Add 2 spaces for list, then add another 2 for preformat.

rasa Wed 27 Aug 2014

  1. Then docs have to be updated. See this.
  2. What? You gotta be kidding! What does it mean in practice? Instead of installing a single pod with different version, I have to install/copy the whole new Fantom environment wit all other pods, libs, configs etc? Is that what you meant?

p.s. I wanted to insert an ERROR from the initial post into blockquote, but it didn't work.

SlimerDude Wed 27 Aug 2014

What? You gotta be kidding!

Incredulous!!! Actually, in practice I find it rare to need different versions of the same pod - I usually keep everything up to date.

I have to install/copy the whole new Fantom environment...

That is the simplest way, yes.

You can also use PathEnv and environment variables to specify multiple directories in which to keep your pods, or different versions thereof. If you need more complex behaviour you can even write your own Env implementation that looks up the location of different pods and versions. It's very customisable.

But considering you're just starting off, I'd imagine the standard / default behaviour will work fine for now.

Login or Signup to reply.