Recent

Author Topic: [Regression?] Can't get exe info, was: Laz trunk or my settings messed up?  (Read 5392 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Hi all,

Demo program
https://bitbucket.org/reiniero/fpc_laz_patch_playground/downloads/fileinfotest.zip
barfs on my Laz trunk+FPC trunk x86 Windows. It cannot find unit lineinfo when right-clicking and show declaration.

Code for finfo.lpr:
Code: [Select]
program finfo;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes,
  fileinfo;

begin
  // fpc trunk:
  // $(fpcdir)\packages\fcl-base\src\win\fileinfo.pp
  writeln('empty program; see program source for questions.');

  {
  In Lazarus trunk+FPC trunk, right-clicking the fileinfo unit I get
  project1.lpr(10,11) Error: unit not found: fileinfo

  In Lazarus 1.0.6+FPC 2.6.0, right-clicking the fileinfo unit does show the fileinfo unit
  }
end.

Works on regular Laz 1.0.6+FPC 2.6.0


Could somebody on trunk confirm this happens for them, too (perhaps my config is messed up).
More details in the demo projec.t

Thanks,
BigChimp

Edit: when trying to upload file, I get a "could not upload your file" error; yet a 0 byte file is created as evidenced by the guys below. Moved to external link
« Last Edit: March 17, 2013, 07:23:03 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

lainz

  • Guest
Re: Laz trunk or my settings messed up?
« Reply #1 on: March 16, 2013, 09:01:24 pm »
I can't download the attached file, it say 0kb..

What's happening with the attachments!  %)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12984
  • FPC developer.
Re: Laz trunk or my settings messed up?
« Reply #2 on: March 16, 2013, 09:11:31 pm »
Downloads fine here.

lainz

  • Guest
Re: Laz trunk or my settings messed up?
« Reply #3 on: March 16, 2013, 09:33:30 pm »
Oh maybe something wrong on my system?! I can't download. I've tried with IE, Firefox and Chrome and always say 0KB.

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: Laz trunk or my settings messed up?
« Reply #4 on: March 16, 2013, 09:37:59 pm »
Hmm.  I can download it but I get 0kb also so I can't open it.
Lazarus Trunk / fpc 2.6.2 / Win32

vfclists

  • Hero Member
  • *****
  • Posts: 1165
    • HowTos Considered Harmful?
Re: Laz trunk or my settings messed up?
« Reply #5 on: March 16, 2013, 09:48:16 pm »
Same here
Hmm.  I can download it but I get 0kb also so I can't open it.
Lazarus 3.0/FPC 3.2.2

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12984
  • FPC developer.
Re: Laz trunk or my settings messed up?
« Reply #6 on: March 16, 2013, 09:48:23 pm »
Hmm.  I can download it but I get 0kb also so I can't open it.

My bad. I only downloaded it, not check it. It is indeed 0kb here too.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: [Download updated] Laz trunk or my settings messed up?
« Reply #7 on: March 17, 2013, 07:27:01 am »
Sorry guys, had trouble uploading as well. I've put the download somewhere else, and updated the first post.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: [Download updated] Laz trunk or my settings messed up?
« Reply #8 on: March 17, 2013, 12:58:56 pm »
Ok: Laz trunk+FPC 2.6.0 works ok as well.
lineinfo is in
C:\Development\fpc\packages\fcl-base\src\win\fileinfo.pp

On my laz trunk+FPC 2.7 where right-click etc gives unit not found, lineinfo is in
C:\Development\fpctrunk\packages\fcl-base\src
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: [Download updated] Laz trunk or my settings messed up?
« Reply #9 on: March 17, 2013, 02:29:33 pm »
Edit:

<embarrassed>Oops, a rescan FPC directory fixed it.</embarrassed>
... not that I expected that to be necessary after rebuilding FPC+Lazarus but well... the menu is there for a reason...

Thanks for your time, guys.


Still doesn't work right. Laz seems to pull in the wince version of fileinfo instead of the windows one.
Compiling a slightly more complicated demo program with fpc trunk didn't work either

Opened bug
http://bugs.freepascal.org/view.php?id=24066
« Last Edit: March 17, 2013, 02:49:15 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified


BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: [BUG] Laz trunk or my settings messed up?
« Reply #11 on: March 17, 2013, 07:22:36 pm »
Thanks a lot Marco,

Can't believe I overlooked that.
Edit: just noticed Michael added that wiki section this afternoon - that must be it ;)

However, I've found out that 2.6.x suppports default windows exes while trunk apparently doesn't (could be my faulty coding)

Raised
http://bugs.freepascal.org/view.php?id=24068
(reasoning: even if it is my faulty coding perhaps some more details for workaround would need to be posted in the user changes trunk section)

Thanks,
BigChimp
« Last Edit: March 17, 2013, 08:29:54 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018