-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Failed to add json file when calling GetConfiguration() #1531
Comments
I will have a look at this one. |
I think the real reason is that |
You're right. When the config file is modified by editors like Notepad, the |
Then the fixes should be in the plugins. |
Then we would need duplicate logic added everywhere func GetConfiguration called in plugins (config file changed, initialization)? |
Agree with @Qiao-Jin , I think that it's better to fix it in the core and avoid duplicate code in modules. |
Look at this: Lines 64 to 81 in 2fad68a
The event is triggered when file is changed. Then it invokes the method And the default Lines 60 to 62 in 2fad68a
As you can see, it does nothing. So you didn't fix anything if you catch the exception in The most logical way is to call the |
@nicolegys please have a test of the new PR:) |
Describe the bug
I tried to update the config file of
RpcServer
while neo-cli was running, but sometimes the neo-cli would throw exception and crash.To Reproduce
Steps to reproduce the behavior:
RpcServer
, such asDisabledMethods
, then save it.Platform:
neo-cli: 5a46401b3635b0f2f6a6b09141c20ea5ab361623
neo: 6eba2ee
neo-vm: f292fed3e9add32a2746e2c4cbb569d8dce6f25a
neo-modules: bbcfa56171a931c1c6f2b50f9289350dd7c052c0
(Optional) Additional context
It seems that the json file wasn't added successfully.
When debugging, if I set a breakpoint, then continue, the file can be added successfully and not throw an excepiton.
The issue was found when testing neo-project/neo-modules#206
The text was updated successfully, but these errors were encountered: