Recent

Author Topic: lazarus project  (Read 765 times)

crownfield

  • New Member
  • *
  • Posts: 19
lazarus project
« on: February 17, 2026, 09:03:57 pm »
I take a valid project file.
I copy and paste it into a new directory.

start lazarus, and try to open tie file in the new directory.

I can not do it because lazarus can not see the file, but the win file manager can see it. I would expect if it ends in .LPI, that lazarus would at least list it and try to open it.. I tried open all files, and lazarus said it is not a project file.

what am I missing?   file = URLTest   (here is a .LPI at the end.)

again, thanks!

dseligo

  • Hero Member
  • *****
  • Posts: 1674
Re: lazarus project
« Reply #1 on: February 17, 2026, 09:17:17 pm »
Try to open files with some text editor and see if files are correct.
Try to open in Lazarus in menu File and then Open.

Post results.
Probably something happened during copying or you have access rights problems.

crownfield

  • New Member
  • *
  • Posts: 19
Re: lazarus project
« Reply #2 on: February 18, 2026, 03:34:00 am »
both the program / project file and the pascal file show error if I put error like xxx into the file, before copy to new directory.

how does lazarus project inspector decide not to show a file like X,lpi ??
windows file manger did the copy

can it be that only files copied or saved by project inspector can be valid?
I find that it says 'can not read' when the path to an old file altered, but it knows the file should be there.

CM630

  • Hero Member
  • *****
  • Posts: 1652
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: lazarus project
« Reply #3 on: February 18, 2026, 07:41:12 am »
.lpi files are not standalone, they reference the other files of the project. When there is nothing but an .lpi file in a folder, you shall get errors messages that the referenced files cannot be read.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

BlueIcaro

  • Hero Member
  • *****
  • Posts: 834
    • Blog personal
Re: lazarus project
« Reply #4 on: February 18, 2026, 09:51:41 am »
I take a valid project file.
I copy and paste it into a new directory.

start lazarus, and try to open tie file in the new directory.

I can not do it because lazarus can not see the file, but the win file manager can see it. I would expect if it ends in .LPI, that lazarus would at least list it and try to open it.. I tried open all files, and lazarus said it is not a project file.

what am I missing?   file = URLTest   (here is a .LPI at the end.)

again, thanks!
Hi, If you want move your project to other folder, You can try to use publish project. Menu Proyect->Publish Project
https://wiki.lazarus.freepascal.org/IDE_Window:_Publish_Project_Package
/BlueIcaro

Zvoni

  • Hero Member
  • *****
  • Posts: 3315
Re: lazarus project
« Reply #5 on: February 18, 2026, 10:14:51 am »
...or he has borked his IDE-Options......
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018