Sign in Join

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

Mailing lists / lazarus / 2014-08

A lazbuild/project dependency issue

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt

Hi (mostly Mattias, I suppose ;) ),

I am using Lazbuild to compile a project that depends on a package "wwclient". It failed, for no understandable reason.

What am I supposed to do with a message like this:

ERROR: Broken dependency: wwclient 1.0>wwclient 1.0

Besides the fact that the "wwclient 1.0>wwclient 1.0" is obviously wrong, I'd like to see in more detail what is really the matter when I get such a message, so I can fix the problem...

I looked at the sources of lazbuild and packagemanager, but I can't even find the line in the code where this error is generated :(

To fix my problem, I opened the project with the IDE, and found that the "wwclient" package depends on another package ("synasnap") that cannot be found.

To fix this, I had to raise the version of the "wwclient" package dependency of the project. In the new version of the "wwclient" package, the dependency on "synasnap" is changed to the correct dependency "laz_synapse".

After all this, the original project compiled, both in the IDE and using lazbuild.

To say the least, the initial error is completely useless in detecting the actual problem ! Maybe a better/more correct reason can be given than "wwclient 1.0>wwclient 1.0" ?

To raise the version of a dependency of a project is also cumbersome: there is no way to set the version of a dependency once it is added to the project inspector (this is possible in the package editor).
I have removed and re-add it, but it would be better if it was directly settable in the project inspector, as it is in the package editor.

Finally, so as not to appear entirely negative, here a positive thing:

when specifying a 'Minimum version' for the 'wwclient' requirement, the IDE correctly warned me that it could not find the version I specified. I was surprised, and it turned out the IDE was correct, I had still to check out the correct version. That was a nice thing :)

Suggestion for improvement:
As a hint to the user, the edit box for 'minimum' and 'maximum' versions of a dependency could be replaced with a dropdown listing all 'known' versions ?

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 6 lines
[...] To raise the version of a dependency of a project is also cumbersome: there is no way to set the version of a dependency once it is added to the project inspector (this is possible in the package editor). I have removed and re-add it, but it would be better if it was directly settable in the project inspector, as it is in the package editor.

Yes.

Suggestion for improvement: As a hint to the user, the edit box for 'minimum' and 'maximum' versions of a dependency could be replaced with a dropdown listing all 'known' versions ?

Good idea.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 18 lines
On Thu, 28 Aug 2014 16:19:40 +0200 (CEST) Michael Van Canneyt wrote: > [...] > To raise the version of a dependency of a project is also cumbersome: > there is no way to set the version of a dependency once it is added to the project inspector > (this is possible in the package editor). > I have removed and re-add it, but it would be better if it was directly settable in the project inspector, > as it is in the package editor. Yes. > Suggestion for improvement: > As a hint to the user, the edit box for 'minimum' and 'maximum' versions of a dependency could be > replaced with a dropdown listing all 'known' versions ? Good idea.

Yes, I have my moments of clarity ;)
They become more rare with age, but what can you do....

Michael.

Reply by email

Bart
to Michael Van Canneyt
Michael Van Canneyt wrote
Yes, I have my moments of clarity ;) They become more rare with age, but what can you do....

When the decline continues, you're welcome to become a resident in my nursing home (on the psychogeriatric ward).

Bart

Reply by email