Hi, my name is stephane and I'm a French student in computer science. This year, we've learn how to create simple plugin for eclipse and as I was looking at your forum, it looks like you don't have an eclipse plugin for Fan. So I've decided to try to create one with simple functions like syntax highlighting to begin.
This is what I've done for the moment :
Creation of the project
Inside of the "new" menu, you can select the new Fan project option which allow you to create... a new Fan project (I know that's amazing :D) thanks to a wonderful wizard
Nature and Builder
Then, the project is created and a "Fan nature" is associated with it. Thanks to that nature, the "Fan Project Builder" is linked to that project.
Syntax highlighting
Then, you can create a new ".fan" file in your project. when you create a ".fan" file, a Fan Editor is used. That editor will provide syntax highlighting for Fan.
TODO
Finally, I'm working at the moment at some improvements of my builder in order to check ".fan" files to see if they are valid, if there is a mistake an error marker will be put at the line of the mistake (same thing for warning or information). for the moment, I've just finished a test with the markers to see how to put marker easily.
I still need to figure out how to "plug" the Fan compiler in my program, in order to create a big "compile & execute" button, I will create a perspective for Fan inspired by the Java perspective and I want to try something with autocomplete (I haven't try to use that yet, but it can't be more difficult than syntax highlighting). I also need to do a "real" wizard for the creation of the project :P
To conclude, I would say that I'm not an expert with eclipse but I know a few things and I have some free time on my hands so why not :D
Edit of the original messageThe project is hosted here. On this page, you will found links to wiki pages (on the right) in which I will explain each new function of the plugin. there are already several improvements (cough... cough... wizard...) compare to the screenshots in this message.
PS :
It seems that "flux" can't work on a 64bits JVM (sys::Err: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM) so in order to work with Fan, I need my own plugin for eclipse :D (and yes, I need a 64bits virtual machine for something else and I'm to lazy to change anything)
Sorry for the English mistakes :)
brianSat 13 Jun 2009
Very cool! Hopefully we can get some mature plugins for all the major IDEs - we're on our way there.
tompalmerSat 13 Jun 2009
It seems that "flux" can't work on a 64bits JVM
Probably need to drop in some 64-bit SWT. My understanding is that it's purposely omitted from the main download for size reasons (among others).
brianSat 13 Jun 2009
Probably need to drop in some 64-bit SWT. My understanding is that it's purposely omitted from the main download for size reasons (among others).
Actually it is omitted just because I can't test it. If someone tests it out, I have no problem rolling it into the master distro. Right now I've been trying to stick witha simple one-size-fits-all distro that is easy to use out the box. Probably won't work forever, but we are still only at 13MB download.
Dyhorus Fri 12 Jun 2009
Hi, my name is stephane and I'm a French student in computer science. This year, we've learn how to create simple plugin for eclipse and as I was looking at your forum, it looks like you don't have an eclipse plugin for Fan. So I've decided to try to create one with simple functions like syntax highlighting to begin.
This is what I've done for the moment :
Creation of the project
Inside of the "new" menu, you can select the new Fan project option which allow you to create... a new Fan project (I know that's amazing :D) thanks to a wonderful wizard
Nature and Builder
Then, the project is created and a "Fan nature" is associated with it. Thanks to that nature, the "Fan Project Builder" is linked to that project.
Syntax highlighting
Then, you can create a new ".fan" file in your project. when you create a ".fan" file, a Fan Editor is used. That editor will provide syntax highlighting for Fan.
TODO
Finally, I'm working at the moment at some improvements of my builder in order to check ".fan" files to see if they are valid, if there is a mistake an error marker will be put at the line of the mistake (same thing for warning or information). for the moment, I've just finished a test with the markers to see how to put marker easily.
I still need to figure out how to "plug" the Fan compiler in my program, in order to create a big "compile & execute" button, I will create a perspective for Fan inspired by the Java perspective and I want to try something with autocomplete (I haven't try to use that yet, but it can't be more difficult than syntax highlighting). I also need to do a "real" wizard for the creation of the project :P
To conclude, I would say that I'm not an expert with eclipse but I know a few things and I have some free time on my hands so why not :D
Edit of the original message The project is hosted here. On this page, you will found links to wiki pages (on the right) in which I will explain each new function of the plugin. there are already several improvements (cough... cough... wizard...) compare to the screenshots in this message.
PS :
brian Sat 13 Jun 2009
Very cool! Hopefully we can get some mature plugins for all the major IDEs - we're on our way there.
tompalmer Sat 13 Jun 2009
Probably need to drop in some 64-bit SWT. My understanding is that it's purposely omitted from the main download for size reasons (among others).
brian Sat 13 Jun 2009
Actually it is omitted just because I can't test it. If someone tests it out, I have no problem rolling it into the master distro. Right now I've been trying to stick witha simple one-size-fits-all distro that is easy to use out the box. Probably won't work forever, but we are still only at 13MB download.