SALT for Rust!Situationally Adaptive Language Tutor (SALT)VS Code Extension Marketplace Link Researchers at the University of California, San Diego are conducting a study on Rust errors, programming paradigms, and how we can help make it easier to learn Rust. We have developed a free Visual Studio Code extension, SALT, which includes features that may be helpful while you’re learning Rust, such as REVIS, a borrowing and ownership error visualizer. If you grant permission, the extension can also send us data about code style choices and the errors you’ve experienced while compiling Rust code; we plan to use that information to evaluate the impact of our extension as well as to give you feedback on your progress. How to participate in the studyAnyone age 18 or older at any level of programming experience may participate in this study, however participation is not necessary to use the tools in this extension. The first time you open a Rust project, you will recieve the consent form in a Webview. The consent form can be accessed at any time via the command Log GenerationCustom logs are generated to minimize privacy concern and are enabled after you agree to participate in the study. A live trace of logs can be viewed in the There are three types of inferences we gather that are explained below: Compiler ErrorsAs part of an ongoing study of errors, we observe data about the diagnostics related to your compiler errors.
Programming ParadigmsAs of Februrary 2025, we have begun a study of usable programming paradigms in Rust! This involves installing our crate The output allows us to identify imperative and functional styles of Rust.
A more detailed description can be found at
Save ActionsSave actions can provide intermediate data about activity when there are no diagnostics or the crate is not active. One of these inferences is whether copilot is installed and enabled in the current workspace.
Current featuresREVISREVIS visualizes lifetime-related Rust compiler errors.
This extension focuses on errors with a "timeline" that can be visualized.
RequirementsThe extension needs the diagnostics information from rust-analyzer.
Install the VSCode extension rust-analyzer and add the following to
The configuration can be automatically set when you use the extension for the first time.
Just click "Allow" when the warning prompt appears.
The configuration will be added to How to use REVISRight-pointing red triangles will be displayed for supported errors after the source file is saved.
To display/hide the visualization, move the text cursor to the line with the red triangle.
To clear all visualizations, execute command Installations NeededAxios: use NoteThis extension is still in an early stage. Please file an issue or contact Molly (mmaclaren@ucsd.edu) if you find any bugs/confusing points. |