<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to missing namespace in autodeclaration of a datatype declared inside a library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5f50251119/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5f50251119/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5f50251119/</id><updated>2020-07-13T08:38:04.790000Z</updated><subtitle>Recent posts to missing namespace in autodeclaration of a datatype declared inside a library</subtitle><entry><title>missing namespace in autodeclaration of a datatype declared inside a library</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5f50251119/?limit=25#5dbd" rel="alternate"/><published>2020-07-13T08:38:04.790000Z</published><updated>2020-07-13T08:38:04.790000Z</updated><author><name>alejho</name><uri>https://forge.codesys.com/u/alejho/</uri></author><id>https://forge.codesys.comeb671d050460c875e681512abefa67f4f4b74478</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
I created a library and imported it in my application.&lt;br/&gt;
Everything is working fine &lt;strong&gt;if I instantiate a FB&lt;/strong&gt; from the library...as shown in the first picture&lt;strong&gt; the namespace is automatically added before the FB type name&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/AutoDeclarationBug_1.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;But &lt;strong&gt;when I add a variable as input for the FB the auto declare feature doesn't add automatically the namespace&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/AutoDeclarationBug_2.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This leads to a compilation error&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Not a big issue (if you know that it's enough to add manually the namespace)...but it's quite misleading for the user.&lt;/p&gt;
&lt;p&gt;I'm missing something in the library definition or this is just the way it works?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>