Recent

Author Topic: [SOLVED] JvCLlaz - Duplicate file unit1.lfm/Duplicate file unit1.lfm  (Read 661 times)

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 323
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
This isn't affecting my compile but warnings I haven't seen before.  This is a project I was working on 4-5 months ago.  I can find these files but not sure whether I should delete them.
In Messages, Warnings: 2, Hints: 2 Duplicate unit "unit1" in JvCoreLazR 1.0.8, source C:\Users\ ... \JvClaz\packages\unit1 also unit1.ppu, unit1.lfm

Appear in JvCoreLazR 1.0.8 for duplicate unit "unit1" and "unit1.lfm".  Would it be best to remove the Jvcl components and reinstall them?
« Last Edit: February 13, 2025, 02:53:53 pm by 1HuntnMan »

dsiders

  • Hero Member
  • *****
  • Posts: 1377
Re: JvCLlaz - Duplicate file unit1.lfm/Duplicate file unit1.lfm
« Reply #1 on: February 10, 2025, 09:53:26 pm »
This isn't affecting my compile but warnings I haven't seen before.  This is a project I was working on 4-5 months ago.  I can find these files but not sure whether I should delete them.
In Messages, Warnings: 2, Hints: 2 Duplicate unit "unit1" in JvCoreLazR 1.0.8, source C:\Users\ ... \JvClaz\packages\unit1 also unit1.ppu, unit1.lfm

Appear in JvCoreLazR 1.0.8 for duplicate unit "unit1" and "unit1.lfm".  Would it be best to remove the Jvcl components and reinstall them?

It's best not to add your units to the JVCL packages.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

wp

  • Hero Member
  • *****
  • Posts: 12685
Re: JvCLlaz - Duplicate file unit1.lfm/Duplicate file unit1.lfm
« Reply #2 on: February 10, 2025, 10:27:19 pm »
This isn't affecting my compile but warnings I haven't seen before.  This is a project I was working on 4-5 months ago.  I can find these files but not sure whether I should delete them.
In Messages, Warnings: 2, Hints: 2 Duplicate unit "unit1" in JvCoreLazR 1.0.8, source C:\Users\ ... \JvClaz\packages\unit1 also unit1.ppu, unit1.lfm

Appear in JvCoreLazR 1.0.8 for duplicate unit "unit1" and "unit1.lfm".  Would it be best to remove the Jvcl components and reinstall them?
There is definitely no "unit1.pas" in the jvcllaz/packages folder - yes, you can delete it, or better rename it, because it may be that it belongs to your project and was stored in the jvcllaz folder by incidence.

At first you should do a clean rebuild of the IDE ("Tools" > "Configure build Lazarus" > check "Clean all" and "Switch after building to automatically" > "Build"). Then do a clean build of your project "Run" > "Clean up and build". When an error is reported in the first step (rebuilding JVCL) it is quickest to reinstall the jvlclaz packages. When an error is reported in the second step (rebuilding project) you must copy the renamed "unit1.*" files back into your project folder. And you should also re-add unit1 to the project ("Project" > "Project Inspector" > "Add" > "Add...", select the copied unit1).

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 323
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: JvCLlaz - Duplicate file unit1.lfm/Duplicate file unit1.lfm
« Reply #3 on: February 11, 2025, 04:29:09 pm »
Thanks WP, I did all that and deleted them for the component dir and also in my source dir.  That fixed it.

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 323
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: JvCLlaz - Duplicate file unit1.lfm/Duplicate file unit1.lfm
« Reply #4 on: February 13, 2025, 02:53:20 pm »
Then deleted JvcLaz and reinstalled it. Thanks all for your suggestions

 

TinyPortal © 2005-2018