Sign in Join

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

Mailing lists / lazarus / 2003-06

Package installing...

13 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Tony Maro
to Tony Maro: I'm attempting to convert CBT components into a package format. I've started with just a…

NM... figured out where to set it in the project file on the Options + Usage tab.

Thanks,
Tony

Tony Maro wrote 22 lines
I'm attempting to convert CBT components into a package format. I've started with just a few units. checkbook.pas includes about 4 files and references one other custom unit. When I compile the package it compiles fine, but when I go to install it into Lazarus it can't find the associated includes and units. Have I missed a path setting somewhere or something? All the files are in the same directory with the package file. Thanks, Tony _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Tony Maro

I'm attempting to convert CBT components into a package format.

I've started with just a few units. checkbook.pas includes about 4 files and references one other custom unit.

When I compile the package it compiles fine, but when I go to install it into Lazarus it can't find the associated includes and units.

Have I missed a path setting somewhere or something? All the files are in the same directory with the package file.

Thanks,
Tony

Reply by email

Mattias Gaertner
to Tony Maro
Show quoted text 12 lines
Okay I've completely eliminated my code from the mix. All this time I thought it was my code. Open Lazarus (not opening last project) NO custom packages installed. No custom components installed. Project+New Project From File Select some .lpr that you have... doesn't matter what. BTW: Don't save... unless you want to. Look at your palette tabs. About half or more of the components are gone. Similar but less dramatic effects by just opening a project.

Don't worry. They were not gone. Just invisible. The IDE hides all TControl components, when a TDataModule is selected. The "bug" was, that they were also hidden, when no form was selected. I changed that.

Mattias

Reply by email

Unknown author
to Tony Maro: I'm attempting to convert CBT components into a package format. I've started with just a…
Show quoted text 8 lines
However, if I open the CBT project that references these components, some of the components will actually disappear from the palette in Lazarus (not clickable, and empty space left where they were) and the order of all the components in the palette changes. - note that when I describe this. I just double checked and I lose: One component from the SynEdit tab. Two components from the CheckBook tab, and three components from the TMPack tab. Those are my last three palette tabs, in order. Other components don't seem affected.

Update...

Happens to all tabs depending on situation. Attempting to recreate a project from the .lpr file seems to cause the most damage to the palette. It's not directly related to CBT, because it happens on other brand spankin' new projects as well, when you LOAD them.

It could be something in my component packages, but considering I've been using those files for months without problems until I loaded them into a package, I dunno what would cause it. I will send the package tgz's on request to anyone who wants to try to reproduce it.

Thanks,

-Tony

Reply by email

Marc Weustink
to Unknown author: Okay I've completely eliminated my code from the mix. All this time I thought it was my…

+ From:
+ Sent: vrijdag 6 juni 2003 5:30
+
+ Okay I've completely eliminated my code from the mix. All this time I
+ thought it was my code.
+
+ Open Lazarus (not opening last project) NO custom packages installed.
+ No custom components installed.
+
+ Project+New Project From File
+ Select some .lpr that you have... doesn't matter what.
+ BTW: Don't save... unless you want to.
+ Look at your palette tabs. About half or more of the components are gone. +
+ Similar but less dramatic effects by just opening a project.

Hey... I've the same. Yesterday I was playing with X servers under win32 and I noticed it also. I thought it was the server, but apperently not.

Marc

Reply by email

Unknown author
to Tony Maro: I'm attempting to convert CBT components into a package format. I've started with just a…
Mattias Gaertner wrote 5 lines
Hmm. Strange. Where did the compiler know the include path?

Got me. Here's another odd one for you...

I took all my custom components and turned them into two packages. I then removed them from the components/custom directory and removed the compiler flag for custom components.

I then compiled and installed my two packages.

I can create a brand new project, drop any of these components on the form and compile and run immediately. No problems... even without having to add paths to the compiler setup.

However, if I open the CBT project that references these components, some of the components will actually disappear from the palette in Lazarus (not clickable, and empty space left where they were) and the order of all the components in the palette changes. - note that when I describe this. I just double checked and I lose: One component from the SynEdit tab. Two components from the CheckBook tab, and three components from the TMPack tab. Those are my last three palette tabs, in order. Other components don't seem affected.

I had other problems until I moved the "interfaces" unit to be first in the project file uses (it was later down the list.) CBT will also not compile, saying it has no sources for "checkbook.pas" yet if I CTRL-click the entry in uses, it takes me right to it.

Since CBT was started back last September before much of the IDE existed as it is today, no doubt it has become quite a bear and needs to be recreated from scratch... that's one of the reasons I've component-ized most of it lately and designed it to work with the packages. But can you give me a tip of what I might look for that's causing the strange behavior? Nothing out of the ordinary is dumped to the console by Lazarus when the components vanish from the palette.

Before I put "interfaces" as first in the project file, it seemed the dropped items from the palette would sometimes change based upon what form I had open. Now it doesn't do that anymore... it's static across all forms in the app.

I tried recreating the project file from the .lpr, but it recreates the problem right with it.

Thanks,

-Tony

Reply by email

Tony Maro
to Tony Maro: I'm attempting to convert CBT components into a package format. I've started with just a…
Mattias Gaertner wrote 12 lines
On Thu, 05 Jun 2003 14:02:48 -0500 Tony Maro wrote: >NM... figured out where to set it in the project file on the Options + >Usage tab. > > You probably mean the package options.

That's right... the package options.

Show quoted text 8 lines
I'm wondering how you were able to compile it before setting the paths. Can you give more details? Mattias

Uh... well I just created a new package, added the files, and clicked "Compile".

It wasn't until I hit "Install" that it failed...

-Tony

Reply by email

Mattias Gaertner
to Tony Maro: I'm attempting to convert CBT components into a package format. I've started with just a…
NM... figured out where to set it in the project file on the Options + Usage tab.

You probably mean the package options.

I'm wondering how you were able to compile it before setting the paths. Can you give more details?

Mattias

Show quoted text 38 lines
Thanks, Tony Tony Maro wrote: > I'm attempting to convert CBT components into a package format. > > I've started with just a few units. checkbook.pas includes about 4 > files and references one other custom unit. > > When I compile the package it compiles fine, but when I go to install > it into Lazarus it can't find the associated includes and units. > > Have I missed a path setting somewhere or something? All the files > are in the same directory with the package file. > > Thanks, > Tony > > > > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Tony Maro: I'm attempting to convert CBT components into a package format. I've started with just a…
Show quoted text 6 lines
Mattias Gaertner wrote: > >Hmm. Strange. Where did the compiler know the include path? > Got me.

Not really. If I understand right:
You created a new package, saved it somewhere, added some .pp/.pas files and clicked compile in the package editor and it compiles. Then you clicked install, and the IDE didn't compile.

Either this is a bug in lazarus, or you have some .ppu files in the source directory of the package.

Mattias

Reply by email

Unknown author
to Tony Maro: I'm attempting to convert CBT components into a package format. I've started with just a…

Okay I've completely eliminated my code from the mix. All this time I thought it was my code.

Open Lazarus (not opening last project) NO custom packages installed. No custom components installed.

Project+New Project From File
Select some .lpr that you have... doesn't matter what. BTW: Don't save... unless you want to.
Look at your palette tabs. About half or more of the components are gone.

Similar but less dramatic effects by just opening a project.

Thanks,
Tony

Reply by email