ToughTechs151 / robot-template

Template for Tough Techs robots.
Other
1 stars 0 forks source link

The reformat button doesn't work without the Gradle for Java extension #62

Open blu28 opened 10 months ago

blu28 commented 10 months ago

We have the "reformat" button at the bottom of the VSCode window to make it super easy to always run the spotless task to keep the files formatted correctly. However, this button only works when Gradle for Java is defined. This is because it invokes the spotlessApply task via the command prompt mechanism, as "gradle: spotlessApply". Unfortunately, this task is supplied via the Gradle for Java extension. Since it doesn't find the command to run, it pops up a dialog field to ask what to run. But it doesn't give a message or anything so that can be confusing. We need to change how the button runs the task so Gradle for Java is not required.

We will recommend that Gradle for Java be installed for other reasons, see Issue #61