Build Preset values change slash to backslash

I have made several Build-Configurations for my device. These are using "Extra Kconfig fragments" and everything works a it should. 

Now I saved the Build configuration as preset. But if I make a new build-configuration with this preset, it is not possible to push the "Generate and Bild" button. Nothing happens.

After checking the settings I saw, that the path of the "Extra Kconfig fragments" is written with \ instead of /. If I clear this setting and select the same file in the dropdown-list, it is written with / and the Build can be done successful. 

I checked the "CMakePreset.json". Here are the paths with "/" so it seems to be correct.

Is there any reason why this / is changed with the \ ?

Maybe it´s a Windows-problem? I´m using Visual Studio Code 1.109.4 (OS: Windows_NT x64 10.0.26200)

Parents
  • Hi,

    Are you seeing the backslash being applied but in the build command it's changing to the right format so the build is able to pass? If not, can you please provide the build logs?

    Have you also made sure that the file from the preset isn't missing?

    Best Regards,

    Samruddhi

  • If I add a new build configuration and choose one of the presets, then it is not possible to use the "Generate and Build" button. So there is no output. 

    As soon as I edit the file selection to the same file (select this from the list in the filename-field), it is possible to click the button and everything builds as it should.

    Could you clarify which part is doing the conversion from the CMakePreset file to the settings which are set in the "add build-configuration" window? Is this a part of the nrfSDK (NCS) or is this part of the visual Studio extension?  

Reply
  • If I add a new build configuration and choose one of the presets, then it is not possible to use the "Generate and Build" button. So there is no output. 

    As soon as I edit the file selection to the same file (select this from the list in the filename-field), it is possible to click the button and everything builds as it should.

    Could you clarify which part is doing the conversion from the CMakePreset file to the settings which are set in the "add build-configuration" window? Is this a part of the nrfSDK (NCS) or is this part of the visual Studio extension?  

Children
Related