Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-08

Status of namespace

13 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen
to Fabio Luis Girardi: Hi all!! Whats the current state of Lazarus when dealing with packages with dotted units…
Fabio Luis Girardi wrote
Whats the current state of Lazarus when dealing with packages with dotted units (namespaces)?

Dotted unit names are supported more or less.

Should I avoid this idea?

No. Instead please work with them and report problems. I found 2 related bug reports:

https://bugs.freepascal.org/view.php?id=24269
- FPDoc. May not be relevant in your case. (?)

https://bugs.freepascal.org/view.php?id=20892
- The original bug is fixed long time ago, but I understood there are 2 others that should be reported separately.
- F12 in designer.
- Codetools issues.
Can you please test and report the remaining issues. I will resolve #20892 then.

Juha

Reply by email

Juha Manninen
to Juha Manninen
Juha Manninen wrote
- The original bug is fixed long time ago, but I understood there are 2 others that should be reported separately. - F12 in designer. - Codetools issues.

... and those may be fixed already, too.

Juha

Reply by email

Marcos Douglas B. Santos
to Juha Manninen
Juha Manninen wrote 7 lines
On Wed, Aug 2, 2017 at 5:46 PM, Juha Manninen wrote: > - The original bug is fixed long time ago, but I understood there are > 2 others that should be reported separately. > - F12 in designer. > - Codetools issues. ... and those may be fixed already, too.

I believe they were already fixed. I'm using it without these problems.

Regards,
Marcos Douglas

Reply by email

Fabio Luis Girardi
to Juha Manninen: On Wed, Aug 2, 2017 at 5:08 PM, Fabio Luis Girardi via Lazarus Dotted unit names are…

Em 2 de ago de 2017 11:46 AM, "Juha Manninen"
escreveu:

No. Instead please work with them and report problems. I found 2 related bug reports:

https://bugs.freepascal.org/view.php?id=24269
- FPDoc. May not be relevant in your case. (?)

No.

https://bugs.freepascal.org/view.php?id=20892
- The original bug is fixed long time ago, but I understood there are 2 others that should be reported separately.
- F12 in designer.
- Codetools issues.
Can you please test and report the remaining issues. I will resolve #20892 then.

My issues are related with Codetools. After insert a component or a control where the class is declared on dotted unit, I can't add a second component/control declared on other dotted unit. But I'll update my Lazarus first and then report my experiences.

Thanks

Fabio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170802/fe97a83c/attachment-0001.html>

Reply by email

Mattias Gaertner
to Juha Manninen: On Wed, Aug 2, 2017 at 5:55 PM, Marcos Douglas B. Santos via Lazarus Thanks. I was lazy…
Show quoted text 6 lines
On Wed, Aug 2, 2017 at 5:55 PM, Marcos Douglas B. Santos via Lazarus wrote: > I believe they were already fixed. I'm using it without these problems. Thanks. I was lazy to test myself now. Ondrej resolved the issue. The dotted names support may be quite perfect now.

In fact, even the -NS switch is supported by the IDE. So when eventually FPC supports it Lazarus is ready.

Mattias

Reply by email

Andreas Frieß
to Fabio Luis Girardi: Em 2 de ago de 2017 11:46 AM, "Juha Manninen" No. Instead please work with them and…

Hi Fabio,

i think, this is the Bug https://bugs.freepascal.org/view.php?id=32247 you mean. It is in also in Lazarus 1.8RC3 with akctual FPC trunk

Andreas

Fabio Luis Girardi wrote 39 lines
Em 2 de ago de 2017 11:46 AM, "Juha Manninen" < <mailto:>> escreveu: No. Instead please work with them and report problems. I found 2 related bug reports: https://bugs.freepascal.org/view.php?id=24269 <https://bugs.freepascal.org/view.php?id=24269> - FPDoc. May not be relevant in your case. (?) No. https://bugs.freepascal.org/view.php?id=20892 <https://bugs.freepascal.org/view.php?id=20892> - The original bug is fixed long time ago, but I understood there are 2 others that should be reported separately. - F12 in designer. - Codetools issues. Can you please test and report the remaining issues. I will resolve #20892 then. My issues are related with Codetools. After insert a component or a control where the class is declared on dotted unit, I can't add a second component/control declared on other dotted unit. But I'll update my Lazarus first and then report my experiences. Thanks Fabio

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170811/9fafe197/attachment.html>

Reply by email

Fabio Luis Girardi
to Andreas Frieß

I'll try reproduce it in Lazarus 1.9...

Em 11 de ago de 2017 01:28, "Andreas Frieß via Lazarus" <

Show quoted text 57 lines
escreveu: Hi Fabio, i think, this is the Bug https://bugs.freepascal.org/view.php?id=32247 you mean. It is in also in Lazarus 1.8RC3 with akctual FPC trunk Andreas Am 03.08.2017 um 00:27 schrieb Fabio Luis Girardi via Lazarus: Em 2 de ago de 2017 11:46 AM, "Juha Manninen" escreveu: No. Instead please work with them and report problems. I found 2 related bug reports: https://bugs.freepascal.org/view.php?id=24269 - FPDoc. May not be relevant in your case. (?) No. https://bugs.freepascal.org/view.php?id=20892 - The original bug is fixed long time ago, but I understood there are 2 others that should be reported separately. - F12 in designer. - Codetools issues. Can you please test and report the remaining issues. I will resolve #20892 then. My issues are related with Codetools. After insert a component or a control where the class is declared on dotted unit, I can't add a second component/control declared on other dotted unit. But I'll update my Lazarus first and then report my experiences. Thanks Fabio -- _______________________________________________ Lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170812/d652fb00/attachment-0001.html>

Reply by email

Graeme Geldenhuys
to Juha Manninen: On Wed, Aug 2, 2017 at 5:55 PM, Marcos Douglas B. Santos via Lazarus Thanks. I was lazy…
Juha Manninen wrote
he dotted names support may be quite perfect now.

So does FPC or Lazarus already support the ability to specify the default namespace that must be applied for a project? If so how and where do you specify the namespace to be applied?

eg:
With Delphi I can write code using the Forms unit, but then at compile time I can specify the VCL or FMX namespace, and the correct <namespace>.Forms.pas unit will be used. This is a key feature of namespaces and dotted units - and very useful in framework type code.

Last time I checked [some months ago] FPC and Lazarus only supported dotted unit names, but the ability to specify a default namespace was not supported yet.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Sven Barth
to Graeme Geldenhuys

Am 13.08.2017 12:18 schrieb "Graeme Geldenhuys via Lazarus" <

Show quoted text 8 lines
: On 2017-08-02 20:39, Juha Manninen via Lazarus wrote: > > he dotted names support may be quite perfect now. So does FPC or Lazarus already support the ability to specify the default

namespace that must be applied for a project? If so how and where do you specify the namespace to be applied?

eg: With Delphi I can write code using the Forms unit, but then at compile

time I can specify the VCL or FMX namespace, and the correct <namespace>.Forms.pas unit will be used. This is a key feature of namespaces and dotted units - and very useful in framework type code.

Last time I checked [some months ago] FPC and Lazarus only supported

dotted unit names, but the ability to specify a default namespace was not supported yet.

Specifying default namespaces (yes, plural) is not yet supported by FPC.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170813/0f4cdf4d/attachment.html>

Reply by email