-
Notifications
You must be signed in to change notification settings - Fork 158
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
Formatting crashes on C# assembly with event #271
Comments
I never saw this (maybe because I don't do much C# with events). For one-time events I use task (which is safer in multi thread environments) and For the exception: This looks like a FCS bug/limitation (I have a FCS only repro here). |
This particular case is COM (vb6) -> .net interop and as such I have to use events, |
In this case I don't see any "quick" fix, you can try to work around this in F# Formatting by checking for an event and don't calling the |
The problem was mentioned here before: #208 (comment) |
As a workaround: Adding
|
… a single member and write an error, workaround for #271 (and future FCS bugs).
Alternatively you can try to use 2.11.0-alpha2 which has improved error handling and can recover from this. Can you report this to FCS to fix the root issue? FSF will still print out the error message and the event will be missing from the generated documentation. |
Thanks, I'm trying my luck with FCS. Do you know of any known issues in the alpha releases of FSF, or should I not expect much trouble updating? |
There are no known issues. Its just a quick way for me to make and test a release even before @tpetricek had some time to review, comment or discuss the changes. |
See comment about events here: #208 (comment) |
I think this can be closed now. |
The following c# code crashes Fsharp.formatting:
I believe @matthid mentioned some issues with events during his work on improving C# support earlier..
Error:
stack trace:
The text was updated successfully, but these errors were encountered: