SALT for Rust!Situationally Adaptive Language Tutor (SALT)VS Code Extension Marketplace Link Researchers at the University of California, San Diego are conducting a research study on Rust errors 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 regarding 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. Current featuresREVISREVIS visualizes lifetime-related Rust compiler errors. This extension focuses on errors with a "timeline" that can be visualized. Error LoggingCustom error logs are generated to minimize privacy concern and only start after you provide consent. A live trace of errors being logged can be viewed in the A log entry is created every time a Rust project is built, following the JSON object format of:
Logs are stored locally and are sent in intervals for analysis. After enough data has been gathered, we plan to provide users with evaluations of their progress in encountering and debugging errors! 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 join 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. After agreeing, you'll be asked to complete a short survey about your experience in programming. Both the consent form and the survey can be accessed at any time via the commands 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 and 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. |