<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Clément,<br></div><div><br>On Dec 22, 2017, at 2:29 AM, Clément Bera <<a href="mailto:bera.clement@gmail.com">bera.clement@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><span></span></div></blockquote><blockquote type="cite"><div><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi,<div><br></div><div>What is the status of the FilesAttributesPlugin ? I would like to make it available by default on pharo VMs.</div><div><br></div><div>Questions:</div><div><br></div><div>1) Is it already merged with another plugin ?</div><div><br></div><div>2) If not, for integration, should I move the FilesAttributesPlugin from its external smalltalkhub repository to VMMaker-Plugins package ?</div><div><br></div><div>3) What is the right way to generate a plugin ? I use this:</div><div><br></div><div><div><font face="monospace, monospace">(VMMaker</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap">             </span>makerFor: StackInterpreter</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap">                </span>and: nil</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap">          </span>with: #()</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap">         </span>to: (FileDirectory default pathFromURI: '../src')</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap">         </span>platformDir: (FileDirectory default pathFromURI: '../platforms')</font></div><div><font face="monospace, monospace"><span style="white-space:pre-wrap">          </span>including: #(FileAttributesPlugin)</font></div><div><font face="monospace, monospace">) generateExternalPlugin: FileAttributesPlugin</font></div></div></div></div></div></div></blockquote><div><br></div>That looks right to me.  Header files have to be written by hand.  They define the internal interface the plugin uses, not the external interface of the plugin.<div><br></div><div>You can see how plugins are generated "officially" by following what generateVMPlugins does.  It is also sent by generateAllConfigurationsUnderVersionControl which is the master generator.</div><div><br></div><div>For convenience I open a VMMakerTool to build plugins, with</div><div>    Interpreter class name = StackInterpreter</div><div>    Path to platforms source = as appropriate for your directories, e.g. ../platforms</div><div>    Platform name = Cross</div><div>    Path to generated sources <span style="background-color: rgba(255, 255, 255, 0);">= as appropriate for your directories, e.g. ../src </span></div><div><span style="background-color: rgba(255, 255, 255, 0);">Drag plugins to the right hand list and use the pop up menu to generate the one you select.</span></div><div><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>Is that correct ?</div><div>It seems it generates only the C file but no header file.</div><div><br></div><div>Thanks,</div><div> </div><div>-- <br><div class="m_-6841166888088337699gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Clément Béra<div><a href="https://clementbera.wordpress.com/" target="_blank">https://clementbera.wordpress.<wbr>com/</a><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:16px;background-color:rgb(255,255,255)">Bâtiment B 40, avenue Halley 59650 </span><em style="font-weight:bold;font-style:normal;font-family:arial,sans-serif;line-height:16px;background-color:rgb(255,255,255)">Villeneuve d'Ascq</em></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br></div><br>
</div>
</div></blockquote></div></body></html>