Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Using JavaCC

The original Rust plugin can be found here. It was written in JavaCC for NetBeans 8.2. A clone that can be installed in Apache NetBeans 16 can be found here.

To build and successfully deploy to Apache NetBeans follow these steps:

...

There is no New Project wizard but you can open an .rs file from the Favourites window. The first time you use the plugin it will complain about braces matching as errors, but when you restart NetBeans this error is gone. The plugin supports:. You may also open a Rust project from File → Open Project action and pointing to the directory that contains the rust project. NetBeans will recognize that this is a Rust project and it will use the appropriate icon in the Projects tab. You can right-click on the project and select Run to compile and execute it.


Language Feature SupportStatus
File type recognition

...

X
Project typeX
Semantic syntax highlightingX
FormattingX
Braces matching

...

X
Error Hints/Fixes/Suggestions
Code completion
Code templates
Refactoring
Debugging


Using ANTLR4

Antonio Vieiro started development of a new Rust plugin based on latest ANTLR4 and LSP technologies. You can build it using JDK 11.

  • Build command: ant -Dcluster.config=rust
  • Execute: nbbuild/netbeans/bin/netbeans


It is recommended to rewrite/migrate the plugin to ANTLR4 and LSP.

Progress will be reported here.

Language Feature SupportStatus
File type recognitionX
Project type

X

Semantic syntax highlightingX
FormattingX
Braces matchingX
Error Hints/Fixes/Suggestions
Code completion
Code templates
Refactoring
Debugging

...