MBulli / SmartCommandlineArgs

A Visual Studio Extension which aims to provide a better UI to manage your command line arguments
GNU General Public License v2.0
99 stars 35 forks source link

Command line arguments are not loaded from json file. Json file is deleted instead. #173

Open EricCreusen opened 7 months ago

EricCreusen commented 7 months ago

I'm trying to save the command line arguments to a json file. In my setup, the solution file is generated by CMake in a build directory. Since this build directory tends to be deleted regularly, I want to save the command line arguments somewhere else.

I use these settings: image

When I create some command line settings, these are stored nicely in a json file at C:\workspace\.args.json. Opening this json file shows the correct values as well.

However, if I restart visual studio and open the same solution, these values are not loaded. I.e. the command line argument window will be empty. Shortly after opening the solution, the file at C:\workspace\.args.json is deleted. At this point, inputting new command line arguments will create a new .args.json file, which is then also deleted upon restarting.

I'm using Visual Studio 2017.

Irame commented 7 months ago

Thanks for using our extension and reaching out to us with you problem. Yes, this was an issue with the latest version. Could you try the latest prerelease v3.0.2 and report back if the issue persists?

KirstenWF commented 1 month ago

FYI I am on Version 3.1.0 and still have the above issue

Irame commented 1 month ago

Hi, version 3.1.0 is the same as 2.6.0. I had to do this because I needed to roll back the release of 3.0 and the VS Market Place does not allow the removal of a version, so I needed to upload a newer version.

If you want to try the fix use v3.0.3.1.