-
Notifications
You must be signed in to change notification settings - Fork 61
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
unexpected behavior for await call in while header when compiling in release mode / with flag optimize=true #132
Comments
hello! I never got around to/managed reproduce this when I last heard about it, I think its a blazor bug, has something to do with the linker. |
I can reproduce this consistently. The workaround in #97 is still working. I'm more thinking the Optimization step in release mode. Perhaps something is wrong the async invocation and the c# generated from the .razor file. |
Confirmed, it's the optimizer. Problem is still present with linker turned off. Problem is no longer present when optimizer is turn off:
|
I have a full minimal repro example. This is definitely a framework bug in the optimizer, not related to this library. |
Thanks a lot. The workaround is indeed working. |
This has been corrected in runtime but is not yet released, I'll keep this open until then |
Fixed in Blazor 5rc1 |
Hi, first, thanks for a nice blazor plugin.
Using Blazor wasm app (NET standard 2.1) and the BlazorFileReader in the following code snippet (shortened, in my app it is divided into a .razor file and a .razor.cs file but shortened and put together here for the sake of simplicity):
Running this code locally (Ctrl+F5 in visual studio 2019 16.6 preview) reads any text file just fine. But when uploading this to Azure, it reads the correct number of lines but each line is empty. (as in
string.Empty
).I do not know if this is a problem with BlazorFileReader or with blazor/azure....(?)
EDIT: Realizing it is probably not in the BlazorFileReader I will try to ask on SO...
EDIT2: I realized it probably has to do with
StreamReader.ReadLineAsync()
in "release" mode.The text was updated successfully, but these errors were encountered: