"Add Argument" in Visual Studio Code doesn't seem to work

If you Edit your build configuration and then add and argument using this button:

it doesn't seem to work. I've tried doing File->Save and using the Build Configuration button, but if you then close the build configuration and re-open it, your new argument is gone (and I can see in the build commands when you build, the argument is not in the command line to the compiler.)

SDK 2.6.1

  • Hi Simon,

    Yes, it might be at our end here. But this does happen with some video files attached by users and that' when we ask them to zip the video in a folder and attach the zip file. The previous video is visible, and according to that, you only press the OK and do not "Build Configuration", and then leave the page, which clears the options you entered, which is a expected behavior. 

    The second video I am not able to view, and the attachments that you have attached, when I download, I get an empty download.

     

    Anyway, this is how you should be doing:

    First enter you CMake arguments, then click OK and then before closing that Add Build Configuration page, you need to Build Configuration in order to reflect the change.

  • I see what I was doing "wrong". After entering the new CMake Argument, I was hitting "Build" under the actions on the left side of the window instead of the "Build Configuration" button (which is normally off the bottom of the screen and you have to scroll down to it.) Seems this is a bug. As per any normal Windows application behaviour, you shouldn't be able to lose your changes without a "are you sure you want to close without saving" type of window popping up. Please report this to your developers.

  • Thank you very much for the feedback. I will let them know about this.

    -Priyanka

Related