Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

multi version package support

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello list,

One of the best things in Ruby gems is the ability to have multiple versions of the same package and write in code what is the exact version of the package we wish to use, or just let it to decide for us. I find it very helpful, because I'm not always interested in the newest version, or the current used version, and I want to use something specific. For example prior of API changes, or rewriting for a newer version will take too much work, and not really needed.

Lazarus have packages with version numbers with them, but you can not use them for installing multiple versions of the package, only to explicitly write what version you are requiring.
Does feature such as multiple version installation sounds useful for others as well ?

If so, I hope that on October my work load cycle will drop (like every year), and I wish to add such support.

Thanks,

Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110809/ccc0f077/attachment.html>

Reply by email

Felipe Monteiro de Carvalho
to ik

For packages which install into the IDE this is impossible, because they will conflict with one another.

But it should be possible to implement this for packages which don't install into the IDE.

Felipe Monteiro de Carvalho

Reply by email

Mattias Gaertner
to ik: One of the best things in Ruby gems is the ability to have multiple versions of the same…
Show quoted text 13 lines
Hello list, One of the best things in Ruby gems is the ability to have multiple versions of the same package and write in code what is the exact version of the package we wish to use, or just let it to decide for us. I find it very helpful, because I'm not always interested in the newest version, or the current used version, and I want to use something specific. For example prior of API changes, or rewriting for a newer version will take too much work, and not really needed. Lazarus have packages with version numbers with them, but you can not use them for installing multiple versions of the package, only to explicitly write what version you are requiring.

If you mean with "installing a package", installed into the IDE, then the answer:
The IDE links them statically, so you can have only one at a time.

If you mean to have several projects on your computer that uses different versions of a package, then just put them somewhere. The IDE remembers different versions of lpk files. When you open a project which requires version 1 the IDE searches for an lpk with version 1, opens it automatically and will compile the project with version 1. When you open a second project requiring version 2, the IDE will close version 1 and opens version 2 and compiles the project with version 2.
lazbuild does the same.

Does feature such as multiple version installation sounds useful for others as well ?

What do you miss?

If so, I hope that on October my work load cycle will drop (like every year), and I wish to add such support.

Mattias

Reply by email

ik
to Mattias Gaertner
Mattias Gaertner wrote 34 lines
On Tue, 9 Aug 2011 16:38:51 +0300 ik wrote: > Hello list, > > One of the best things in Ruby gems is the ability to have multiple versions > of the same package and write in code what is the exact version of the > package we wish to use, or just let it to decide for us. > I find it very helpful, because I'm not always interested in the newest > version, or the current used version, and I want to use something specific. > For example prior of API changes, or rewriting for a newer version will take > too much work, and not really needed. > > Lazarus have packages with version numbers with them, but you can not use > them for installing multiple versions of the package, only to explicitly > write what version you are requiring. If you mean with "installing a package", installed into the IDE, then the answer: The IDE links them statically, so you can have only one at a time. If you mean to have several projects on your computer that uses different versions of a package, then just put them somewhere. The IDE remembers different versions of lpk files. When you open a project which requires version 1 the IDE searches for an lpk with version 1, opens it automatically and will compile the project with version 1. When you open a second project requiring version 2, the IDE will close version 1 and opens version 2 and compiles the project with version 2. lazbuild does the same.

Great, so it is supported half way :)

Show quoted text 20 lines
> Does feature such as multiple version installation sounds useful for others > as well ? What do you miss? > If so, I hope that on October my work load cycle will drop (like every > year), and I wish to add such support. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110817/db21468c/attachment.html>

Reply by email