Skip to content

Conversation

@Gold856
Copy link
Contributor

@Gold856 Gold856 commented Sep 8, 2025

This refactors the very verbose and repetitive Promise-based code that handled template creation across Java and C++ into a set of utility functions that use async/await. Since this was pulled from #772, fs/promises was used, and I wanted to avoid using the async wrappers that we have, so I checked the Node version that was used for the version of the VS Code engine we specify and found out bumping to Node 14 was possible and has fs/promises.

@github-actions github-actions bot added the 2027 label Sep 8, 2025
@Gold856 Gold856 force-pushed the dedupe-file-generation branch 3 times, most recently from 79a9a36 to 6507ac9 Compare September 12, 2025 21:38
@Gold856 Gold856 force-pushed the dedupe-file-generation branch from e63975c to a7140af Compare September 19, 2025 20:33
@sciencewhiz
Copy link
Contributor

I made a new command template project and the packages were not replaced to match the project

@Gold856
Copy link
Contributor Author

Gold856 commented Oct 4, 2025

Retested against Rapid React Command Bot, Command template, Romi Command template, and Timed Robot for C++/Java. Tested the Command/class generation as well for C++/Java. All the files are in the right places and have their contents replaced when needed.

@sciencewhiz
Copy link
Contributor

I'm not qualified to comment on the code, but I was able to create projects, import projects (including replacements), and create command classes, which seems to be the stuff impacted by this PR.

@PeterJohnson PeterJohnson merged commit 82eebc3 into wpilibsuite:2027 Oct 17, 2025
5 checks passed
@Gold856 Gold856 deleted the dedupe-file-generation branch October 20, 2025 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants