Reset API plugin configuration

Custom indicators, trading strategies, data export and recording and more...
zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Reset API plugin configuration

Post by zcsoka » Wed Jan 29, 2020 8:39 am

Greetings,

As I develop my plugins further, with the new versions Bookmap emits warnings like:
20200129 07:58:34.725(UTC) WARN: Configuraion menu already has entry for com.bookmap.api.....

I suppose it is due to the fact, that the indicator with the same name has already existed and the configuration has changed (I have added new items). 
I believe it is not only a warning, but a kind of error, since it seems, that the new configuration parameters are not getting added/saved.

Is there a way to remove the already existing config items? I have tried to rename the bookmap_config_v7.json (in that file I saw a lot of configs), but the settings have remained. Where are the plugin settings stored? (I am developing on MacOS, so please reveal on both platform the location).

Is there any other way to handle that compatibility problem? 

First I thought that increasing the currentVersion 
@StrategySettingsVersion(currentVersion = 2, compatibleVersions = {})

would handle it, but did not work.

Many thanks in advance.

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Reset API plugin configuration

Post by Andry API support » Wed Jan 29, 2020 8:47 am

Hi! Rename the Config folder (the folder bookmap_config_v7.json is in). Bookmap will create a new one.

zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Re: Reset API plugin configuration

Post by zcsoka » Wed Jan 29, 2020 11:02 am

It did not help, it still has the config from somewhere

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Reset API plugin configuration

Post by Andry API support » Wed Feb 05, 2020 5:35 pm

Can you give me your log pls.

zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Re: Reset API plugin configuration

Post by zcsoka » Tue Feb 18, 2020 7:44 am

Hi AndreyR,

I am sorry for the late answer, I was on holiday.
The rename did not work, I had to delete it from the folder, remove the indicators and restart Bookmap to get rid of the configs. It is fine now, many thanks for your help.

Post Reply