Recent

Author Topic: [SOLVED] Question : How to edit the ide unit path ?  (Read 1128 times)

josh

  • Hero Member
  • *****
  • Posts: 713
[SOLVED] Question : How to edit the ide unit path ?
« on: December 18, 2017, 01:54:10 pm »
Hi

I have been getting an issue, with duplicate unit found; so need a way to remove the duplicate from the ide as the error message is telling me.

I have crawled through the Options screen but am unable to find an option that lists the ide search path for installed units.

I cannot remove the duplicate item from package uninstall, due to the duplicate error showing.

Thanks.

Using Latest SVN of LAZ and FPC
« Last Edit: December 18, 2017, 02:51:21 pm by josh »
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5109
    • wiki
Re: Question : How to edit the ide unit path ?
« Reply #1 on: December 18, 2017, 02:09:52 pm »
you may just have a duplicate .ppu file.

Before you go and do a search:
Do a clean build.
Also try to rebuild the IDE with "clean all".
Or rebuild packages "clean"

That may already fix the issue.

---------
Otherwise, in project options > custom options: add -va

then when you get the error, right click and "copy" > "copy all and original messages"

paste in an editor. It will give you for every file/unit where it was found.

josh

  • Hero Member
  • *****
  • Posts: 713
Re: Question : How to edit the ide unit path ?
« Reply #2 on: December 18, 2017, 02:50:21 pm »
Hi Martin,

Thanks Doing a rebuild and clean all seems to have fixed the duplicate error.

Is there  reason why the 2 lines that displays the conflicting unit does not dispaly the full path name to the conflicting ppu file.
I was getting a message similar to below

T:\Laz_Components\Testing_Components\..........\kcontrols.ppu
is duplicated
T:\Laz_Components\Testing_Components\..........\kcontrols.ppu

As you can see this makes it near impossible to locate such file.


Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.