-
Notifications
You must be signed in to change notification settings - Fork 4k
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
THRIFT-5794 netstd fix syntax error in deepcopy() method for v0.20.0 #2993
Conversation
Testcase? |
@Jens-G you looking at the wrong place. I updated the PR text,to point to the error-location. It's the 1st instruction after the method-header. regarding testcase: I need to check what test are running for the project / how tests are organized. But I wonder why this syntax-error was not seen by tests already. As it's syntax error it pops up directly, as long ad deepcopy() is not disabled. |
Well, it is hard not to look at the right place. I applied your patch and got the errors shown above. The compiler stops there. So what other place would that be? that I should tell the C# compiler to look instead?
Correct. As in my picture above. If you look carefully, you will find the newly added semicolon, and it is the exact reason that breaks the code after applying your patch.
Possibly because they had the same reproducible test case as I do - still none. Please provide one or I close the PR. |
8e6269e
to
6eb1579
Compare
6eb1579
to
08029e4
Compare
Sorry for the confusion, but I sorted it out now. Finally I just updated the PR to mark the change only relevant for v0.20.0. |
When using the "netstd:wcf,union,serial,net8" options, the syntax will not fail.
And yet we still don't have a test case ... ok, thanks anyway for your efforts EDIT: Ah restcase its in the patch now ... |
Yes, I put some hours in adding GitHubAction for netstd (#2995) and added a testcase with separate commit. Feel free to cherry-pick these commits into master. Is it planned to make a v0.20.1 for this fix or will this version stay not-usable for us and we need to wait for 0.21.0? |
Client: netstd Patch: Sven Roederer This closes #2993
I integrated the changes for convenience into the 0.20.0 branch, however there will be most likely no 0.20.1 release just because of this. There is a workaround, you have a patch and it is all open source. The Windows compiler EXE is a convenience build anyway. PS: Unusable to me is when an update of some closed-source OS leads you into a state where the entire docker engine effectively and reproducibly stalls when you try to run two docker compose sets on it, and you can't get out of that lockup state until you reboot the entire machine and waste four hours on trying to spot the issue in your own code until it dawns on you that it might not be your fault at all - oh wait, exactly that just happened (still unsolved BTW). |
Just seen that @Jens-G created a Jira issue for this. EDIT: all commits of the test |
The ending ";" was missing when creating instance of class which caused a syntax error.
This was introduced when adding .net8 support (4115e952b5bed2887113af053b63acd3a03c6e19)
example of generated broken code
This issue was fixed in master inside 4f18395. This PR only picks the relevant fix into v0.20.0 without adding the feature of this commit.