Recent

Author Topic: Does anyone ever check the examples ?  (Read 1816 times)

jaz2014

  • Newbie
  • Posts: 2
Does anyone ever check the examples ?
« on: March 26, 2018, 11:22:21 am »
Does anyone ever check the example projects even compile?

I've just been looking and a large number don't compile (at least on linux)
How are we supposed to learn if the documentation is poor and the example
projects don't work?


wp

  • Hero Member
  • *****
  • Posts: 6650
Re: Does anyone ever check the examples ?
« Reply #1 on: March 26, 2018, 11:29:32 am »
Which version are you using? I checked all examples before the release of Laz 1.8.0 on Windows, and I think Juha did the same on Linux.

Checking a hundred sample projects really is no fun. So, if you find something which is not working in the current release or in trunk please file a specific bug report, and it will be fixed. It will not be fixed, however, if users are lamenting about poor documentation and non-working examples in a general way.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Handoko

  • Hero Member
  • *****
  • Posts: 3281
  • My goal: build my own game engine using Lazarus
Re: Does anyone ever check the examples ?
« Reply #2 on: March 26, 2018, 11:36:55 am »
I guess what OP mean is when running the examples (Tools > Example Projects) on Linux will cause compilation error. Because those files are in the unwritable folder.

Thaddy

  • Hero Member
  • *****
  • Posts: 9425
Re: Does anyone ever check the examples ?
« Reply #3 on: March 26, 2018, 11:46:59 am »
At least the FPC documentation examples should always compile.
Note that very rarely an example hides under the radar because of new language features or implementation changes that may break compatibility. But that is rare and you mention many....
I guess you may follow up on Handoko's remark and copy the examples to another directory and set the proper access rights.
« Last Edit: March 26, 2018, 11:49:41 am by Thaddy »
also related to equus asinus.