Re: Language Plugin Development - HackLang & possiblyTypeScript
geertjan wielenga <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Organization | Oracle Corporation |
| Message-ID | <[email protected]> |
The starting point is for you to contact Everlaw and discuss with them what features you should work on. Gj On 11-10-2015 2:51, Tim-Hinnerk Heuer wrote: > Just in case you haven't seen it: > https://github.com/Everlaw/nbts/issues/1#issuecomment-147137830 > > I'm happy to contribute however I can. I have invested a significant > amount of time now into learning about the NB Platform and TypeScript, > so I believe I can be a good help in one way or another. Just let me > know how and I'm happy to do as instructed. You can submit issues on > GitHub. I will have a look there every now and then. > > I have submitted some issues. > > Tim > > On Sun, 11 Oct 2015 at 10:37 Tim-Hinnerk Heuer <[email protected] > <mailto:[email protected]>> wrote: > > OK. The reason to use Maven was to automatically pull down > dependencies from the Maven repositories. But I'm flexible and > don't mind either way. All one has to do with Ant is to manually > install the dependencies, which is trivial, yet another step. > > Tim > > On Sun, 11 Oct 2015 at 10:30 geertjan wielenga > <[email protected] > <mailto:[email protected]>> wrote: > > > > I think it is a bad idea. The starting point is for you to > contact Everlaw and discuss with them what features you should > work on. For example, clearly they've already decided to not > use Maven. So, why would you want to put a POM file into their > repository? > > Gj > > > On 10-10-2015 23:26, Tim-Hinnerk Heuer wrote: >> Hi Emilian, >> >> Thanks for that! I was aware of this already. I was proposing >> to merge the projects. However, I had some conversations with >> Geertjan. He has a valid point that just merging is a bad >> idea. He thinks, and I agree that we should clone/fork your >> repository and put in our features one by one until we have a >> code base with little redundancy. I have however already done >> the merge. It's not really wasted time/effort, because first >> of all, I learned a lot about NetBeans and Maven, and second >> of all, I've created a Maven build that should work with your >> code although it may have some redundant dependencies. >> >> I will now fork your repository, put the Maven pom.xml file >> in, try to build which may well still just work and work from >> there putting our features in and making pull requests. >> >> So, unless someone thinks this is a bad idea, I will go ahead >> with this. >> >> Regards, >> Tim >> >> On Sun, 11 Oct 2015 at 03:12 Emilian Bold >> <[email protected] <mailto:[email protected]>> wrote: >> >> Tim, we have a TypeScript plugin now: >> http://blog.everlaw.com/2015/10/06/open-source-typescript-netbeans/ >> >> >> --emi >> >> On Thu, Oct 1, 2015 at 12:00 PM, Tim-Hinnerk Heuer >> <[email protected] <mailto:[email protected]>> wrote: >> >> Hi Geertjan, >> >> I will do what you are happy to give away. >> Unfortunately, I cannot make this project highest >> priority because I have other commitments. At this >> point I'm just happy to be able to contribute to such >> an important piece of software. I believe you will >> have the best grasp on what you want to do and what >> work you would like to share. You seem to know best >> which will result in the highest productivity. >> >> Long story short, I will look into Phase 3, code >> templates etc for now. >> >> Just one more thing: >> If you are working on Phase 4 c, d and 5, please just >> let me know which you are working on so we don't >> double work. But you know that and I'm probably just >> stating the obvious. >> >> Regards, >> Tim >> >> On Wed, 30 Sep 2015 at 00:25 geertjan wielenga >> <[email protected] >> <mailto:[email protected]>> wrote: >> >> >> >> This is the way to do that: >> >> http://wiki.netbeans.org/New_Language_Support_Tutorial_Antlr >> >> But I've done all the infrastructural parts >> already and syntax coloring is working now, just >> a question of making the right choices for colors >> for different syntax elements. >> >> See the new screenshot added to (b) of Phase 4: >> >> https://github.com/GeertjanWielenga/TypeScript >> >> Maybe you'd like to work on Phase 3, i.e., code >> templates, etc. >> >> https://platform.netbeans.org/tutorials/nbm-code-template.html >> >> Gj >> >> >> On 29-9-2015 12:17, Tim-Hinnerk Heuer wrote: >>> yes, i know. i was just wanting to go through >>> the tutorial to get a better grasp on how to do >>> the ANTLR stuff and which classes need to be >>> where and contain what etc. i guess i can do >>> that with 8.0.2. >>> >>> Thanks, >>> Tim >>> >>> On Tue, 29 Sep 2015 at 22:52 geertjan wielenga >>> <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> >>> >>> There's no need to create a new file type. >>> It's already created by me in the TypeScript >>> module. >>> >>> Gj >>> >>> >>> >>> On 29-9-2015 11:34, Tim-Hinnerk Heuer wrote: >>>> Just doing some of the tutorials in NB >>>> 8.1beta, I get the attached exception if I >>>> try to create a new File Type in a NB module. >>>> http://pastebin.com/d0HsbZfe >>>> which kind of hinders learning a bit. >>>> >>>> Anyone have an idea how to work around this >>>> or even better fix it? >>>> >>>> On Tue, 29 Sep 2015 at 21:18 Tim-Hinnerk >>>> Heuer <[email protected] <mailto:[email protected]>> >>>> wrote: >>>> >>>> TypeScript is a strict super set of >>>> ECMAScript 6. You can rename a .js file >>>> to .ts and it is valid TS. ECMAScript 6 >>>> supports classes etc as well. TS just >>>> adds types, annotations and some other >>>> constructs. >>>> Yep, it's a lot of work, I agree! Might >>>> become a part time hobby project for a >>>> while if not more. :-) At least it's >>>> very interesting and fun and I can see >>>> the benefit for a lot of developers out >>>> there, plus i get to work in my >>>> favourite IDE and PL. >>>> >>>> On Tue, 29 Sep 2015 at 21:14 geertjan >>>> wielenga <[email protected] >>>> <mailto:[email protected]>> >>>> wrote: >>>> >>>> >>>> >>>> Are you sure TypeScript and >>>> ECMAScript are the same thing? >>>> >>>> >>>> Gj >>>> >>>> >>>> On 27-9-2015 13:27, Tim-Hinnerk >>>> Heuer wrote: >>>>> OK Found >>>>> https://raw.githubusercontent.com/antlr/grammars-v4/master/ecmascript/ECMAScript.g4 >>>>> >>>>> which i will just use for now and >>>>> then later extend after 4(c) which >>>>> seems to be most sensible to me. >>>>> >>>>> On Sun, 27 Sep 2015 at 23:57 >>>>> Tim-Hinnerk Heuer <[email protected] >>>>> <mailto:[email protected]>> wrote: >>>>> >>>>> I read that but thought 4(c) >>>>> i.e. completion would be more >>>>> interesting/fun and actually >>>>> easier with tss and that the >>>>> benefit of completion is more >>>>> also. But if you want I can go >>>>> back to (b) which I think will >>>>> take longer or even 3(a). >>>>> Your call. >>>>> For now I'll assume going back >>>>> to 4(b) is what you want. >>>>> >>>>> On Sun, 27 Sep 2015 at 23:36 >>>>> geertjan wielenga >>>>> <[email protected] >>>>> <mailto:[email protected]>> >>>>> wrote: >>>>> >>>>> >>>>> >>>>> So, you're working on >>>>> Phase 4, of which (a) has >>>>> been done. The logical >>>>> thing to do would be to >>>>> work on (b) next, i.e., >>>>> syntax coloring: >>>>> https://github.com/GeertjanWielenga/TypeScript >>>>> >>>>> Gj >>>>> >>>>> >>>>> On 27-9-2015 12:27, >>>>> Tim-Hinnerk Heuer wrote: >>>>>> So, I guess i need to >>>>>> implement a >>>>>> CompletionProvider etc >>>>>> like on >>>>>> https://platform.netbeans.org/tutorials/nbm-code-completion.html#intro >>>>>> >>>>>> I started by typing >>>>>> >>>>>> >>>>>> import >>>>>> org.netbeans.api.editor.mimelookup.MimeRegistration; >>>>>> import >>>>>> org.netbeans.modules.javascript2.editor.spi.CompletionContext; >>>>>> import >>>>>> org.netbeans.modules.javascript2.editor.spi.CompletionProvider; >>>>>> >>>>>> @MimeRegistration(mimeType = >>>>>> "text/x-ts", service = >>>>>> TsCompletionProvider.class) >>>>>> public class >>>>>> TsCompletionProvider >>>>>> implements >>>>>> CompletionProvider { >>>>>> //... >>>>>> } >>>>>> >>>>>> However, in the tutorial >>>>>> it says: >>>>>> import >>>>>> org.netbeans.api.editor.mimelookup.MimeRegistration; >>>>>> >>>>>> import >>>>>> org.netbeans.spi.editor.completion.CompletionProvider; >>>>>> >>>>>> import >>>>>> org.netbeans.spi.editor.completion.CompletionTask; >>>>>> >>>>>> But I'm guessing you put >>>>>> the JS Completion* >>>>>> classes in there for a >>>>>> reason. Please explain >>>>>> because using the classes >>>>>> from the tuturial is >>>>>> probably easier for me. >>>>>> >>>>>> >>>>>> >>>>>> On Sun, 27 Sep 2015 at >>>>>> 22:22 Tim-Hinnerk Heuer >>>>>> <[email protected] >>>>>> <mailto:[email protected]>> wrote: >>>>>> >>>>>> Of course! Thanks, it >>>>>> finally works... Had >>>>>> to change back: >>>>>> <explicitValue>org.netbeans.modules.javascript2.editor/1 >>>>>> = >>>>>> 201508041349</explicitValue> >>>>>> to get it working yet >>>>>> again. >>>>>> >>>>>> On Sun, 27 Sep 2015 >>>>>> at 22:06 geertjan >>>>>> wielenga >>>>>> <[email protected] >>>>>> <mailto:[email protected]>> >>>>>> wrote: >>>>>> >>>>>> >>>>>> Not if you >>>>>> uninstall 8.0.2. >>>>>> Just remove it, >>>>>> you don't need it >>>>>> anymore. >>>>>> >>>>>> In the >>>>>> settings.xml of >>>>>> the TypeScript >>>>>> module, you're >>>>>> able to set the >>>>>> location of the IDE: >>>>>> >>>>>> <profile> >>>>>> <id>netbeans-ide</id> >>>>>> <activation> >>>>>> <activeByDefault>true</activeByDefault> >>>>>> </activation> >>>>>> <properties> >>>>>> <netbeans.installation>C:\Program >>>>>> Files\NetBeans >>>>>> 8.1 >>>>>> Beta</netbeans.installation> >>>>>> </properties> >>>>>> </profile> >>>>>> >>>>>> Gj >>>>>> >>>>>> >>>>>> On 27-9-2015 >>>>>> 11:01, >>>>>> Tim-Hinnerk Heuer >>>>>> wrote: >>>>>>> i did but the >>>>>>> ide that starts >>>>>>> up when i click >>>>>>> Run is still >>>>>>> 8.0.2. Can i >>>>>>> change that? >>>>>>> >>>>>>> On Sun, 27 Sep >>>>>>> 2015 at 22:00 >>>>>>> geertjan >>>>>>> wielenga >>>>>>> <[email protected] >>>>>>> <mailto:[email protected]>> >>>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> Stop using >>>>>>> 8.0.2. >>>>>>> >>>>>>> Use 8.1 Beta. >>>>>>> >>>>>>> Gj >>>>>>> >>>>>>> >>>>>>> On 27-9-2015 >>>>>>> 10:57, >>>>>>> Tim-Hinnerk >>>>>>> Heuer wrote: >>>>>>>> a >>>>>>>> mvn clean >>>>>>>> install >>>>>>>> seemed to >>>>>>>> do it as well. >>>>>>>> >>>>>>>> However, >>>>>>>> the HTML 5 >>>>>>>> tab is >>>>>>>> still not >>>>>>>> there in >>>>>>>> 8.0.2. Is >>>>>>>> that only >>>>>>>> on Linux? >>>>>>>> My prod NB >>>>>>>> IDE also >>>>>>>> doesn't >>>>>>>> have that >>>>>>>> tab even if >>>>>>>> i enable >>>>>>>> the plugin. >>>>>>>> I tried to >>>>>>>> make the >>>>>>>> release >>>>>>>> RELEASE81-BETA >>>>>>>> as well but >>>>>>>> then there >>>>>>>> were other >>>>>>>> problems. >>>>>>>> >>>>>>>> On Sun, 27 >>>>>>>> Sep 2015 at >>>>>>>> 21:49 >>>>>>>> geertjan >>>>>>>> wielenga >>>>>>>> <[email protected] >>>>>>>> <mailto:[email protected]>> >>>>>>>> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Whatever works. >>>>>>>> >>>>>>>> Gj >>>>>>>> >>>>>>>> >>>>>>>> On >>>>>>>> 27-9-2015 >>>>>>>> 9:53, >>>>>>>> Tim-Hinnerk >>>>>>>> Heuer >>>>>>>> wrote: >>>>>>>>> To >>>>>>>>> reset >>>>>>>>> the >>>>>>>>> dev >>>>>>>>> ide i >>>>>>>>> did this: >>>>>>>>> Close >>>>>>>>> the >>>>>>>>> project >>>>>>>>> rm -Rf >>>>>>>>> target >>>>>>>>> Re-open the >>>>>>>>> project >>>>>>>>> mvn >>>>>>>>> clean >>>>>>>>> install >>>>>>>>> >>>>>>>>> On >>>>>>>>> Sun, >>>>>>>>> 27 Sep >>>>>>>>> 2015 >>>>>>>>> at >>>>>>>>> 20:27 >>>>>>>>> Tim-Hinnerk >>>>>>>>> Heuer >>>>>>>>> <[email protected] >>>>>>>>> <mailto:[email protected]>> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> OK, seem >>>>>>>>> to >>>>>>>>> have >>>>>>>>> solved >>>>>>>>> that >>>>>>>>> one by >>>>>>>>> putting >>>>>>>>> >>>>>>>>> <!--explicitValue>org.netbeans.modules.javascript2.editor/1 >>>>>>>>> = >>>>>>>>> 201508041349</explicitValue--> >>>>>>>>> <explicitValue>org.netbeans.modules.javascript2.editor/1 >>>>>>>>> = >>>>>>>>> 201505281753</explicitValue> >>>>>>>>> and using >>>>>>>>> the NetBeans >>>>>>>>> 8.1beta >>>>>>>>> version. >>>>>>>>> >>>>>>>>> However, >>>>>>>>> 8.0.2 >>>>>>>>> is >>>>>>>>> still >>>>>>>>> run when >>>>>>>>> I >>>>>>>>> select >>>>>>>>> "Run" >>>>>>>>> (the >>>>>>>>> play >>>>>>>>> button). >>>>>>>>> >>>>>>>>> I >>>>>>>>> will >>>>>>>>> need >>>>>>>>> to >>>>>>>>> select >>>>>>>>> the TypeScript >>>>>>>>> Path >>>>>>>>> to >>>>>>>>> test >>>>>>>>> the extensions >>>>>>>>> that >>>>>>>>> I'm adding. >>>>>>>>> But the >>>>>>>>> HTML5 >>>>>>>>> tab is >>>>>>>>> missing >>>>>>>>> from >>>>>>>>> the Options >>>>>>>>> menu, >>>>>>>>> so >>>>>>>>> I >>>>>>>>> cannot. >>>>>>>>> Trying >>>>>>>>> to >>>>>>>>> resolve >>>>>>>>> this >>>>>>>>> and will >>>>>>>>> post >>>>>>>>> how if/when >>>>>>>>> i >>>>>>>>> do. But >>>>>>>>> please >>>>>>>>> have >>>>>>>>> a >>>>>>>>> look. >>>>>>>>> >>>>>>>>> Also, >>>>>>>>> I >>>>>>>>> don't >>>>>>>>> know >>>>>>>>> how to >>>>>>>>> reset >>>>>>>>> the IDE >>>>>>>>> that >>>>>>>>> is >>>>>>>>> started >>>>>>>>> when >>>>>>>>> Run is >>>>>>>>> selected, >>>>>>>>> which >>>>>>>>> may help >>>>>>>>> solve >>>>>>>>> this >>>>>>>>> and possibly >>>>>>>>> other >>>>>>>>> problems. >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Tim >>>>>>>>> >>>>>>>>> On >>>>>>>>> Sun, >>>>>>>>> 27 >>>>>>>>> Sep 2015 >>>>>>>>> at >>>>>>>>> 17:06 >>>>>>>>> Tim-Hinnerk >>>>>>>>> Heuer >>>>>>>>> <[email protected] >>>>>>>>> <mailto:[email protected]>> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Looks >>>>>>>>> like >>>>>>>>> i need >>>>>>>>> the >>>>>>>>> newest >>>>>>>>> version >>>>>>>>> of >>>>>>>>> the >>>>>>>>> JS >>>>>>>>> editor: >>>>>>>>> >>>>>>>>> <configuration> >>>>>>>>> <moduleDependencies> >>>>>>>>> <dependency> >>>>>>>>> <id>org.netbeans.modules:org-netbeans-modules-javascript2-editor</id> >>>>>>>>> <type>impl</type> >>>>>>>>> <explicitValue>org.netbeans.modules.javascript2.editor/1 >>>>>>>>> = 201508041349</explicitValue> >>>>>>>>> </dependency> >>>>>>>>> </moduleDependencies> >>>>>>>>> </configuration> >>>>>>>>> Will >>>>>>>>> try >>>>>>>>> to >>>>>>>>> find >>>>>>>>> it. >>>>>>>>> If >>>>>>>>> you >>>>>>>>> find >>>>>>>>> the >>>>>>>>> link >>>>>>>>> quickly, >>>>>>>>> please >>>>>>>>> let >>>>>>>>> me >>>>>>>>> know. >>>>>>>>> >>>>>>>>> On >>>>>>>>> Sun, >>>>>>>>> 27 >>>>>>>>> Sep >>>>>>>>> 2015 >>>>>>>>> at >>>>>>>>> 16:31 >>>>>>>>> Tim-Hinnerk >>>>>>>>> Heuer >>>>>>>>> <[email protected] >>>>>>>>> <mailto:[email protected]>> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hi >>>>>>>>> Geertjan, >>>>>>>>> >>>>>>>>> >>>>>>>>> Trying >>>>>>>>> to >>>>>>>>> find >>>>>>>>> why, >>>>>>>>> but >>>>>>>>> maybe >>>>>>>>> you >>>>>>>>> know: >>>>>>>>> >>>>>>>>> Activation >>>>>>>>> failed: >>>>>>>>> Not >>>>>>>>> all >>>>>>>>> requested >>>>>>>>> modules >>>>>>>>> can >>>>>>>>> be >>>>>>>>> enabled: >>>>>>>>> [StandardModule:org.netbeans.TypeScript >>>>>>>>> jarFile: >>>>>>>>> /home/denz/projects/dcoder.nz/TypeScript/target/netbeans_clusters/extra/modules/org-netbeans-TypeScript.jar >>>>>>>>> <http://dcoder.nz/TypeScript/target/netbeans_clusters/extra/modules/org-netbeans-TypeScript.jar>] >>>>>>>>> >>>>>>>>> >>>>>>>>> when >>>>>>>>> I try >>>>>>>>> to >>>>>>>>> load >>>>>>>>> the >>>>>>>>> dev >>>>>>>>> ide. >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Tim >>>>>>>>> >>>>>>>>> On >>>>>>>>> Sun, >>>>>>>>> 27 >>>>>>>>> Sep >>>>>>>>> 2015 >>>>>>>>> at >>>>>>>>> 12:08 >>>>>>>>> Tim-Hinnerk >>>>>>>>> Heuer >>>>>>>>> <[email protected] >>>>>>>>> <mailto:[email protected]>> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> Geertjan! >>>>>>>>> I forked >>>>>>>>> it >>>>>>>>> to >>>>>>>>> https://github.com/geekdenz/TypeScript and >>>>>>>>> will >>>>>>>>> submit >>>>>>>>> pull >>>>>>>>> requests >>>>>>>>> if/when >>>>>>>>> I have >>>>>>>>> improvements. >>>>>>>>> >>>>>>>>> On >>>>>>>>> Sat, >>>>>>>>> 26 >>>>>>>>> Sep >>>>>>>>> 2015 >>>>>>>>> at >>>>>>>>> 22:40 >>>>>>>>> geertjan >>>>>>>>> wielenga >>>>>>>>> <[email protected] >>>>>>>>> <mailto:[email protected]>> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> https://github.com/GeertjanWielenga/TypeScript >>>>>>>>> >>>>>>>>> There's >>>>>>>>> a start, >>>>>>>>> feel >>>>>>>>> free >>>>>>>>> to >>>>>>>>> clone >>>>>>>>> it. >>>>>>>>> >>>>>>>>> Gj >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On >>>>>>>>> 24-9-2015 >>>>>>>>> 11:27, >>>>>>>>> Tim-Hinnerk >>>>>>>>> Heuer >>>>>>>>> wrote: >>>>>>>>>> Thanks >>>>>>>>>> markiewb! >>>>>>>>>> That >>>>>>>>>> might >>>>>>>>>> be >>>>>>>>>> really >>>>>>>>>> helpful. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Another >>>>>>>>>> thought >>>>>>>>>> I had >>>>>>>>>> was >>>>>>>>>> that >>>>>>>>>> writing >>>>>>>>>> a generic >>>>>>>>>> subl2antlr >>>>>>>>>> transformer >>>>>>>>>> might >>>>>>>>>> actually >>>>>>>>>> be >>>>>>>>>> much >>>>>>>>>> harder >>>>>>>>>> than >>>>>>>>>> extending >>>>>>>>>> the >>>>>>>>>> JS >>>>>>>>>> one >>>>>>>>>> to >>>>>>>>>> work >>>>>>>>>> with >>>>>>>>>> TS >>>>>>>>>> keywords >>>>>>>>>> and >>>>>>>>>> constructs. >>>>>>>>>> Maybe >>>>>>>>>> it >>>>>>>>>> would >>>>>>>>>> be >>>>>>>>>> good >>>>>>>>>> to >>>>>>>>>> start >>>>>>>>>> off >>>>>>>>>> with >>>>>>>>>> just >>>>>>>>>> an >>>>>>>>>> ANTLR >>>>>>>>>> TS >>>>>>>>>> file >>>>>>>>>> and >>>>>>>>>> once >>>>>>>>>> learned, >>>>>>>>>> tackle >>>>>>>>>> the >>>>>>>>>> harder >>>>>>>>>> problem >>>>>>>>>> of >>>>>>>>>> writing >>>>>>>>>> the >>>>>>>>>> more >>>>>>>>>> generic >>>>>>>>>> transformation. >>>>>>>>>> >>>>>>>>>> The >>>>>>>>>> other >>>>>>>>>> option >>>>>>>>>> is >>>>>>>>>> we >>>>>>>>>> write >>>>>>>>>> a syntax >>>>>>>>>> highlight >>>>>>>>>> service >>>>>>>>>> with >>>>>>>>>> TS >>>>>>>>>> directly >>>>>>>>>> in >>>>>>>>>> NodeJS/TS >>>>>>>>>> using >>>>>>>>>> the >>>>>>>>>> library >>>>>>>>>> somehow. >>>>>>>>>> That >>>>>>>>>> might >>>>>>>>>> be >>>>>>>>>> easier >>>>>>>>>> and >>>>>>>>>> more >>>>>>>>>> easily >>>>>>>>>> maintained. >>>>>>>>>> >>>>>>>>>> Thoughts? >>>>>>>>>> >>>>>>>>>> Tim >>>>>>>>>> >>>>>>>>>> On >>>>>>>>>> Thu, >>>>>>>>>> 24 >>>>>>>>>> Sep >>>>>>>>>> 2015 >>>>>>>>>> at >>>>>>>>>> 20:44 >>>>>>>>>> markiewb >>>>>>>>>> <[email protected] >>>>>>>>>> <mailto:[email protected]>> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> I propose >>>>>>>>>> not >>>>>>>>>> to >>>>>>>>>> start >>>>>>>>>> the >>>>>>>>>> transformation >>>>>>>>>> with >>>>>>>>>> XLST >>>>>>>>>> if >>>>>>>>>> you >>>>>>>>>> don't >>>>>>>>>> feel >>>>>>>>>> comfortable >>>>>>>>>> using >>>>>>>>>> it. >>>>>>>>>> >>>>>>>>>> Instead >>>>>>>>>> write >>>>>>>>>> equivalent >>>>>>>>>> pojo >>>>>>>>>> classes >>>>>>>>>> to >>>>>>>>>> the >>>>>>>>>> structure >>>>>>>>>> in >>>>>>>>>> the >>>>>>>>>> XML, >>>>>>>>>> annotate >>>>>>>>>> them >>>>>>>>>> with >>>>>>>>>> JAXB >>>>>>>>>> annotations >>>>>>>>>> and >>>>>>>>>> then >>>>>>>>>> load >>>>>>>>>> the >>>>>>>>>> XML >>>>>>>>>> via >>>>>>>>>> JAXB >>>>>>>>>> into >>>>>>>>>> an >>>>>>>>>> object >>>>>>>>>> graph >>>>>>>>>> instance. >>>>>>>>>> Now >>>>>>>>>> you >>>>>>>>>> can >>>>>>>>>> write >>>>>>>>>> the >>>>>>>>>> transformation >>>>>>>>>> using >>>>>>>>>> Java >>>>>>>>>> code. >>>>>>>>>> That >>>>>>>>>> is >>>>>>>>>> much >>>>>>>>>> more >>>>>>>>>> maintainable >>>>>>>>>> and >>>>>>>>>> you >>>>>>>>>> can >>>>>>>>>> use >>>>>>>>>> the >>>>>>>>>> language >>>>>>>>>> you're >>>>>>>>>> best >>>>>>>>>> at >>>>>>>>>> (Java >>>>>>>>>> 😉) >>>>>>>>>> >>>>>>>>>> Best >>>>>>>>>> regards, >>>>>>>>>> markiewb >>>>>>>>>> ------------------------------------------------------------------------ >>>>>>>>>> Från: >>>>>>>>>> Tim-Hinnerk >>>>>>>>>> Heuer >>>>>>>>>> <mailto:[email protected]> >>>>>>>>>> Skickat: >>>>>>>>>> 24.09.2015 >>>>>>>>>> 07:49 >>>>>>>>>> Till: >>>>>>>>>> [email protected] >>>>>>>>>> <mailto:[email protected]> >>>>>>>>>> Ämne: >>>>>>>>>> [nbdev] >>>>>>>>>> Re: >>>>>>>>>> Language >>>>>>>>>> Plugin >>>>>>>>>> Development >>>>>>>>>> - HackLang >>>>>>>>>> & possiblyTypeScript >>>>>>>>>> >>>>>>>>>> Apart >>>>>>>>>> from >>>>>>>>>> having >>>>>>>>>> difficulty >>>>>>>>>> customising >>>>>>>>>> the >>>>>>>>>> editor, >>>>>>>>>> which >>>>>>>>>> should >>>>>>>>>> just >>>>>>>>>> be >>>>>>>>>> a matter >>>>>>>>>> of >>>>>>>>>> doing >>>>>>>>>> my >>>>>>>>>> research... >>>>>>>>>> But >>>>>>>>>> maybe >>>>>>>>>> you >>>>>>>>>> have >>>>>>>>>> a link >>>>>>>>>> handy, >>>>>>>>>> the >>>>>>>>>> HTML >>>>>>>>>> Editor >>>>>>>>>> plugin >>>>>>>>>> tutorial >>>>>>>>>> maybe? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Maybe >>>>>>>>>> there >>>>>>>>>> is >>>>>>>>>> already >>>>>>>>>> a sublime2antlr >>>>>>>>>> converter. >>>>>>>>>> If >>>>>>>>>> not >>>>>>>>>> (i >>>>>>>>>> haven't >>>>>>>>>> found >>>>>>>>>> one >>>>>>>>>> yet), >>>>>>>>>> I'm >>>>>>>>>> between >>>>>>>>>> writing >>>>>>>>>> an >>>>>>>>>> XML >>>>>>>>>> Transformation >>>>>>>>>> and >>>>>>>>>> using >>>>>>>>>> code >>>>>>>>>> with >>>>>>>>>> regular >>>>>>>>>> expressions. >>>>>>>>>> I found >>>>>>>>>> that >>>>>>>>>> writing >>>>>>>>>> XML >>>>>>>>>> Transformations >>>>>>>>>> can >>>>>>>>>> be >>>>>>>>>> quite >>>>>>>>>> hard >>>>>>>>>> and >>>>>>>>>> not >>>>>>>>>> as >>>>>>>>>> flexible >>>>>>>>>> as >>>>>>>>>> using >>>>>>>>>> Regular >>>>>>>>>> Expressions >>>>>>>>>> and >>>>>>>>>> just >>>>>>>>>> "normal" >>>>>>>>>> programming >>>>>>>>>> code. >>>>>>>>>> I'm >>>>>>>>>> actually >>>>>>>>>> more >>>>>>>>>> comfortable >>>>>>>>>> with >>>>>>>>>> regexes >>>>>>>>>> and >>>>>>>>>> programming. >>>>>>>>>> However, >>>>>>>>>> maybe >>>>>>>>>> you >>>>>>>>>> have >>>>>>>>>> a valuable >>>>>>>>>> opinion >>>>>>>>>> as >>>>>>>>>> well. >>>>>>>>>> >>>>>>>>>> Tim >>>>>>>>>> >>>>>>>>>> On >>>>>>>>>> Wed, >>>>>>>>>> 23 >>>>>>>>>> Sep >>>>>>>>>> 2015 >>>>>>>>>> at >>>>>>>>>> 21:54 >>>>>>>>>> geertjan >>>>>>>>>> wielenga >>>>>>>>>> <[email protected] >>>>>>>>>> <mailto:[email protected]>> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On >>>>>>>>>> 23-9-2015 >>>>>>>>>> 11:47, >>>>>>>>>> Tim-Hinnerk >>>>>>>>>> Heuer >>>>>>>>>> wrote: >>>>>>>>>>> Yes, >>>>>>>>>>> that >>>>>>>>>>> seems >>>>>>>>>>> to >>>>>>>>>>> be >>>>>>>>>>> it. >>>>>>>>>>> I was >>>>>>>>>>> planning >>>>>>>>>>> to >>>>>>>>>>> base >>>>>>>>>>> it >>>>>>>>>>> on >>>>>>>>>>> the >>>>>>>>>>> tss >>>>>>>>>>> tool >>>>>>>>>>> for >>>>>>>>>>> now >>>>>>>>>>> for >>>>>>>>>>> code >>>>>>>>>>> completion >>>>>>>>>>> like >>>>>>>>>>> this: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> echo >>>>>>>>>>> completions >>>>>>>>>>> 7 12 >>>>>>>>>>> /tmp/tstest/example.ts| >>>>>>>>>>> tss >>>>>>>>>>> example.ts >>>>>>>>>>> | tail >>>>>>>>>>> -n >>>>>>>>>>> +2| >>>>>>>>>>> head >>>>>>>>>>> -n >>>>>>>>>>> -1|json_pp >>>>>>>>>>> (of >>>>>>>>>>> course >>>>>>>>>>> I would >>>>>>>>>>> open >>>>>>>>>>> a cmd >>>>>>>>>>> process >>>>>>>>>>> with >>>>>>>>>>> Java >>>>>>>>>>> and >>>>>>>>>>> send >>>>>>>>>>> commands >>>>>>>>>>> and >>>>>>>>>>> fetch >>>>>>>>>>> the >>>>>>>>>>> output, >>>>>>>>>>> speed >>>>>>>>>>> may >>>>>>>>>>> be >>>>>>>>>>> a problem, >>>>>>>>>>> but >>>>>>>>>>> tss >>>>>>>>>>> seems >>>>>>>>>>> pretty >>>>>>>>>>> fast >>>>>>>>>>> so >>>>>>>>>>> far >>>>>>>>>>> and >>>>>>>>>>> it >>>>>>>>>>> seems >>>>>>>>>>> to >>>>>>>>>>> be >>>>>>>>>>> easier >>>>>>>>>>> like >>>>>>>>>>> this, >>>>>>>>>>> no >>>>>>>>>>> complex >>>>>>>>>>> code >>>>>>>>>>> writing >>>>>>>>>>> to >>>>>>>>>>> do >>>>>>>>>>> the >>>>>>>>>>> completion >>>>>>>>>>> and >>>>>>>>>>> no >>>>>>>>>>> updates >>>>>>>>>>> necessary, >>>>>>>>>>> let >>>>>>>>>>> the >>>>>>>>>>> TS >>>>>>>>>>> team >>>>>>>>>>> do >>>>>>>>>>> the >>>>>>>>>>> hard >>>>>>>>>>> work) >>>>>>>>>>> >>>>>>>>>>> and >>>>>>>>>>> dismiss >>>>>>>>>>> syntax >>>>>>>>>>> highlighting >>>>>>>>>>> for >>>>>>>>>>> the >>>>>>>>>>> moment >>>>>>>>>>> and >>>>>>>>>>> just >>>>>>>>>>> use >>>>>>>>>>> the >>>>>>>>>>> js >>>>>>>>>>> highlighting >>>>>>>>>>> and >>>>>>>>>>> get >>>>>>>>>>> rid >>>>>>>>>>> of >>>>>>>>>>> errors >>>>>>>>>>> if >>>>>>>>>>> >>>>>>>>>>> echo >>>>>>>>>>> showErrors >>>>>>>>>>> | tss >>>>>>>>>>> example.ts >>>>>>>>>>> results >>>>>>>>>>> in >>>>>>>>>>> >>>>>>>>>>> [] >>>>>>>>>>> I was >>>>>>>>>>> then >>>>>>>>>>> planning >>>>>>>>>>> to >>>>>>>>>>> use >>>>>>>>>>> the >>>>>>>>>>> Sublime >>>>>>>>>>> TS >>>>>>>>>>> Plugin's >>>>>>>>>>> syntax >>>>>>>>>>> highlighting >>>>>>>>>>> XML >>>>>>>>>>> file >>>>>>>>>>> >>>>>>>>>>> https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/TypeScript.tmLanguage >>>>>>>>>>> and >>>>>>>>>>> write >>>>>>>>>>> an >>>>>>>>>>> XSLT >>>>>>>>>>> to >>>>>>>>>>> transform >>>>>>>>>>> it >>>>>>>>>>> to >>>>>>>>>>> ANTLR >>>>>>>>>>> or >>>>>>>>>>> JavaCC, >>>>>>>>>>> whichever >>>>>>>>>>> is >>>>>>>>>>> easier. >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Sure, >>>>>>>>>> if >>>>>>>>>> that >>>>>>>>>> can >>>>>>>>>> be >>>>>>>>>> converted >>>>>>>>>> to >>>>>>>>>> ANTLR >>>>>>>>>> or >>>>>>>>>> JavaCC, >>>>>>>>>> that >>>>>>>>>> would >>>>>>>>>> be >>>>>>>>>> wonderful. >>>>>>>>>> (Plus, >>>>>>>>>> could >>>>>>>>>> be >>>>>>>>>> turned >>>>>>>>>> into >>>>>>>>>> a generic >>>>>>>>>> solution >>>>>>>>>> for >>>>>>>>>> bringing >>>>>>>>>> other >>>>>>>>>> similar >>>>>>>>>> Sublime >>>>>>>>>> files >>>>>>>>>> into >>>>>>>>>> NetBeans.) >>>>>>>>>> >>>>>>>>>> Gj >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> What >>>>>>>>>>> do >>>>>>>>>>> you >>>>>>>>>>> think? >>>>>>>>>>> This >>>>>>>>>>> way >>>>>>>>>>> we >>>>>>>>>>> may >>>>>>>>>>> need >>>>>>>>>>> a lot >>>>>>>>>>> less >>>>>>>>>>> work >>>>>>>>>>> when >>>>>>>>>>> the >>>>>>>>>>> language >>>>>>>>>>> is >>>>>>>>>>> extended >>>>>>>>>>> and >>>>>>>>>>> now. >>>>>>>>>>> >>>>>>>>>>> Regards, >>>>>>>>>>> Tim >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On >>>>>>>>>>> Wed, >>>>>>>>>>> 23 >>>>>>>>>>> Sep >>>>>>>>>>> 2015 >>>>>>>>>>> at >>>>>>>>>>> 19:38 >>>>>>>>>>> geertjan >>>>>>>>>>> wielenga >>>>>>>>>>> <[email protected] >>>>>>>>>>> <mailto:[email protected]>> >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> I doubt >>>>>>>>>>> anyone >>>>>>>>>>> is. >>>>>>>>>>> The >>>>>>>>>>> big >>>>>>>>>>> blocker >>>>>>>>>>> is >>>>>>>>>>> the >>>>>>>>>>> ANTLR >>>>>>>>>>> part, >>>>>>>>>>> or >>>>>>>>>>> how >>>>>>>>>>> to >>>>>>>>>>> get >>>>>>>>>>> the >>>>>>>>>>> tokens >>>>>>>>>>> out >>>>>>>>>>> of >>>>>>>>>>> TypeScript >>>>>>>>>>> and >>>>>>>>>>> into >>>>>>>>>>> NetBeans. >>>>>>>>>>> >>>>>>>>>>> Gj >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On >>>>>>>>>>> 23-9-2015 >>>>>>>>>>> 1:44, >>>>>>>>>>> Tim-Hinnerk >>>>>>>>>>> Heuer >>>>>>>>>>> wrote: >>>>>>>>>>>> I also >>>>>>>>>>>> found >>>>>>>>>>>> this >>>>>>>>>>>> https://netbeans.org/bugzilla/show_bug.cgi?id=233197 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> I might >>>>>>>>>>>> try >>>>>>>>>>>> and >>>>>>>>>>>> find >>>>>>>>>>>> out >>>>>>>>>>>> who >>>>>>>>>>>> is >>>>>>>>>>>> involved >>>>>>>>>>>> with >>>>>>>>>>>> working >>>>>>>>>>>> on >>>>>>>>>>>> this >>>>>>>>>>>> extension >>>>>>>>>>>> already, >>>>>>>>>>>> so >>>>>>>>>>>> that >>>>>>>>>>>> we >>>>>>>>>>>> don't >>>>>>>>>>>> waste >>>>>>>>>>>> time >>>>>>>>>>>> double-implementing >>>>>>>>>>>> things. >>>>>>>>>>>> >>>>>>>>>>>> So, >>>>>>>>>>>> if >>>>>>>>>>>> you >>>>>>>>>>>> are >>>>>>>>>>>> reading >>>>>>>>>>>> this >>>>>>>>>>>> and >>>>>>>>>>>> are >>>>>>>>>>>> working >>>>>>>>>>>> on >>>>>>>>>>>> a plugin, >>>>>>>>>>>> please >>>>>>>>>>>> don't >>>>>>>>>>>> hesitate >>>>>>>>>>>> to >>>>>>>>>>>> contact >>>>>>>>>>>> me. >>>>>>>>>>>> >>>>>>>>>>>> On >>>>>>>>>>>> Wed, >>>>>>>>>>>> 23 >>>>>>>>>>>> Sep >>>>>>>>>>>> 2015 >>>>>>>>>>>> at >>>>>>>>>>>> 00:49 >>>>>>>>>>>> geertjan >>>>>>>>>>>> wielenga >>>>>>>>>>>> <[email protected] >>>>>>>>>>>> <mailto:[email protected]>> >>>>>>>>>>>> wrote: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> This >>>>>>>>>>>> could >>>>>>>>>>>> help >>>>>>>>>>>> too: >>>>>>>>>>>> https://www.youtube.com/watch?v=aOwdeoOlZ7E >>>>>>>>>>>> >>>>>>>>>>>> Gj >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On >>>>>>>>>>>> 22-9-2015 >>>>>>>>>>>> 14:23, >>>>>>>>>>>> Tim-Hinnerk >>>>>>>>>>>> Heuer >>>>>>>>>>>> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> Thanks. >>>>>>>>>>>>> I watched >>>>>>>>>>>>> it. >>>>>>>>>>>>> I'm >>>>>>>>>>>>> keen >>>>>>>>>>>>> to >>>>>>>>>>>>> get >>>>>>>>>>>>> into >>>>>>>>>>>>> it >>>>>>>>>>>>> . But >>>>>>>>>>>>> you >>>>>>>>>>>>> may >>>>>>>>>>>>> need >>>>>>>>>>>>> to >>>>>>>>>>>>> be >>>>>>>>>>>>> a bit >>>>>>>>>>>>> patient >>>>>>>>>>>>> for >>>>>>>>>>>>> completion >>>>>>>>>>>>> as >>>>>>>>>>>>> I am >>>>>>>>>>>>> very >>>>>>>>>>>>> busy >>>>>>>>>>>>> with >>>>>>>>>>>>> work. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On >>>>>>>>>>>>> Wed, >>>>>>>>>>>>> 23 >>>>>>>>>>>>> Sep >>>>>>>>>>>>> 2015 >>>>>>>>>>>>> 12:07 >>>>>>>>>>>>> am geertjan >>>>>>>>>>>>> >>>>>>>>>>>>