You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The original Rust plugin can be found here. It was written in JavaCC for NetBeans 8.2.

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

  1. Edit pom.xml and comment out dependencies to org-netbeans-modules-gsf-testrunner as well as in org.codehaus.mojo:nbm-maven-plugin.
  2. Optionally you may upgrade old RELEASE82 dependencies to RELEASE123 or later.
  3. Delete src/test directory.
  4. Delete
    • src/main/java/com/github/drrb/rust/netbeans/cargo/test
    • src/main/java/com/github/drrb/rust/netbeans/project/action/TestCommand.java
    • src/main/java/com/github/drrb/rust/netbeans/project/action/TestFileCommand.java
  5. Edit RustProjectActionProvider.java and comment out or delete the errored lines:
    • supportedCommands.add(TestCommand.INSTANCE); 
    • supportedCommands.add(TestFileCommand.INSTANCE);
  6. mvn clean package
  7. Install the produced rust-netbeans-1.0.0-SNAPSHOT.nbm
  8. Click on Tools → Options or NetBeans → Preferences (Mac) and you should see a Rust button. It should automatically pick your Rust environment.

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:

  • File type recognition
  • Sematic syntax highlighting
  • Braces matching, automatic closing of braces

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
Semantic syntax highlightingX
Formatting
Braces matchingX
Error Hints/Fixes/Suggestions
Code completion
Code templates
Refactoring
Debugging
  • No labels