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 Support | Status |
File type recognition |
...
X | |
Project type | X |
Semantic syntax highlighting | X |
Formatting | X |
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.
...
Language Feature Support | Status |
File type recognition | X |
Project type | X |
Semantic syntax highlighting | X |
Formatting | X |
Braces matching | X |
Error Hints/Fixes/Suggestions | |
Code completion | |
Code templates | |
Refactoring | |
Debugging |
...