-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add custom build folder by conf setting #668
Conversation
5c0dbd2
to
8ee8c6b
Compare
So using this feature I could make the code build to a RAM disk? |
I was able to make it build to a different folder, but not to another drive. On Windows 11. |
This build folder is still relative to the location of the project directory. Resulting build directory is |
Yeah, that would be awesome. Building to a RAM disk is faster and it doesn't wear my SSD writing files I don't need to keep. |
The absolute coolest would be if I could specify the build directory anywhere and then copy the distribution files to a different folder after the build. This way I could build to a RAM disk and keep the .bin and .elf files under the project in a dist folder. |
Could you try this vsix installer ? |
Sorry, I just got a break in things to try this. It doesn't appear to work and always builds to the workspace build folder no matter what I put in the setting. The vsix installer says it installed the extension. It still has 1.5.0 as the version so ??
or
Both build into the 'Build' folder, even if I make the 'build 1' folder manually. |
You still can't use spaces in the build path unfortunately... Did you tried without spaces ? |
Nope. Still defaulting to build no matter what I use as the idf.buildDirectoryName ('build_test', 'build1'). I'm guessing I must be using the new extension as it wont build to alternative folders anymore. |
Maybe there is a project settings.json |
I don't think so I can't build to anywhere else even with only the Hello_World example project open in VSCode |
This MR is just to change the name of the build folder within your current project. Let's say The MR with the custom absolute build path is here |
I defiantly have the change in this MR. If I type "idf.buildDir... " then it autocompletes with "idf.buildDirectoryName": "${workspaceFolder}/build". This change was made in your comit. |
There are a lot of changes in the commit. I'm not up to speed on everything in there but I notice you have two names for the build directory. I'm guessing there is an inconsistency related to that. example the change in src/coverage/coverageService.ts. The build path is removed in the join statement but the parameter below remains the same (buildDirName). Elsewhere such as in src/build/buildCmd.ts the idf.buildDirectoryName is mapped to the variable buildDirPath |
I'll post in the MR and continue our conversation there. |
Add
idf.buildDirectoryName
to specify a custom build folder for the extension commands. By default isbuild