rust-netbeans icon indicating copy to clipboard operation
rust-netbeans copied to clipboard

Please make a release

Open Chris2011 opened this issue 8 years ago • 16 comments

It would be great, if we can have a pre-build nbm file here and if it is still usable and releasable please upload it to the plugin portal of NetBeans.

Regards

Chris

Chris2011 avatar Jul 07 '17 21:07 Chris2011

Working on it! I'm currently updating it to work with newest Rust and NetBeans versions.

drrb avatar Sep 28 '17 08:09 drrb

Only to ask, I wanted to build the plugin and it needs ruby, is there a specific reason why? Thx.

Chris2011 avatar Sep 29 '17 07:09 Chris2011

Yes, it's for generating sources while I'm updating the Rust parser. I'll probably remove it once the parser is more stable. Meanwhile, you should be able to build it without Ruby like this:

$ mvn package -Dexec.skip -DskipTests

Don't expect too much at the moment. The parser is about 1/3 complete, so you'll probably see exceptions in the UI.

drrb avatar Sep 30 '17 03:09 drrb

No problem. Thx :) Will test it later.

Chris2011 avatar Sep 30 '17 07:09 Chris2011

I can't install the plugin, because of this error:

image

Chris2011 avatar Oct 01 '17 02:10 Chris2011

We're currently depending on a pretty old implementation version of the Common Test Runner API that came with NetBeans 8.0.x. From memory, the Common Test Runner API required pinning to a specific implementation version so that we could access the API. I'll take another look into it when I update the plugin for more recent NetBeans versions. Opened #18 to track the CTR API issue, and #19 to track porting to newer versions of NetBeans.

drrb avatar Oct 01 '17 08:10 drrb

Great, thx :) Would be cool to test it soon. I know that there is not that much inside but, a bit is better than nothing.

Chris2011 avatar Oct 04 '17 11:10 Chris2011

There's a NetBeans 8.2 branch now (https://github.com/drrb/rust-netbeans/tree/netbeans-8.2). One test is still having problems, but you should be able to build that branch for use with NetBeans 8.2.

drrb avatar Oct 07 '17 00:10 drrb

Great thx :)

Chris2011 avatar Oct 07 '17 07:10 Chris2011

Great it works :) Should I create more tickets for that what is not working now or should I wait?

Chris2011 avatar Oct 07 '17 19:10 Chris2011

Good to hear. You're welcome to create tickets if you like. For things like the parser where there's a lot missing, please keep tickets high-level (e.g. "Some language features not supported by parser", rather than, e.g. "Impls in source files don't work"). I'm happy for you create pull requests too.

drrb avatar Oct 08 '17 03:10 drrb

Because of the broken parser, did you created the javacc grammar file, by your own? Maybe antlr can do it better? See this grammar, maybe it will help: https://github.com/jbclements/rust-antlr

Kind of old, but maybe better. Only guessing. I know then you have to switch to ANTLR, I did this for my C# plugin for NetBeans too. Because there was no javacc grammar file for C#.

Chris2011 avatar Oct 13 '17 14:10 Chris2011

Yes, the grammar is still in progress, because I'm writing it myself. I initially did use jbclements/rust-antlr (in 2013), and then switched to using the native parser from rustc, and now to building a JavaCC parser myself. It's partly because the rust-antlr is quite old and slow to parse large documents, and partly because I'm interested in writing the parser myself to learn. My plan is to gradually support all of Rust using the JavaCC parser.

drrb avatar Oct 14 '17 21:10 drrb

ok, thx for the info :)

Chris2011 avatar Oct 15 '17 11:10 Chris2011

Hi, what is still missing to make a first alpha release? I will check back the plugin again. Are you still working on it?

Chris2011 avatar Feb 05 '18 14:02 Chris2011

I would like to catch this project up again, it get's more interesting for me. So can you please help here @drrb and maybe add a discussion section for what needs to be done? What the progress of the parser is. Do we really need it or we switch to textmate lexer and use language server for Rust, etc?

Chris2011 avatar Oct 13 '21 11:10 Chris2011