Uh oh!
There was an error while loading. Please reload this page.
Don't show completions on nested module identifier - #13089
Conversation
dsyme
commented
May 8, 2022
Code looks ok but the new test is still failing |
kerams
commented
May 8, 2022
I know and I have described why that is. Any clue on how to go about what I'm asking for? |
kerams
commented
May 17, 2022
Would it be necessary to add For the sole reason that this nested module would appear in the syntax tree namespaceNmoduleNested |
kerams
commented
Oct 27, 2022
Bump? |
psfinaki
commented
Oct 31, 2022
/azp run |
vzarytovskii
commented
Oct 31, 2022
/run fantomas |
Ran fantomas: https://github.com/dotnet/fsharp/actions/runs/3361542341 |
psfinaki
commented
Oct 31, 2022
@kerams if you want I might help with that later this week. |
kerams
commented
Nov 1, 2022
Well, first I want to know whether we're OK with extending the syntax tree just for this use case. If that isn't the case, the PR can be closed. Otherwise I only need a tip on the preferred approach with regards to modelling the error case. |
psfinaki
commented
Nov 1, 2022
Well from what I understand @dsyme is fine with that and nobody is against in general :) |
kerams
commented
Feb 9, 2023
I've added recovery for incomplete nested modules. Before: After: @auduchinok, @nojaf , before I add tests and extend this to signature files, can you please check if the changes look sound to you? |
Ugh, it doesn't work with ML compatibility mode #indent "off"moduleMletSimpleSample()=1Is there a way to simulate a pattern guard in yacc? | opt_attributes opt_access moduleIntro // when not mlSupportOr maybe it's time this long-deprecated syntax was finally removed in .NET 8 SDK? :) |
nojaf
commented
Feb 10, 2023
I think this looks fine, though I'm less familiar with recovery. I'll let @auduchinok take this one. |
auduchinok
commented
Feb 10, 2023
If all is working by itself with |
kerams
commented
Feb 11, 2023
The Moon and the stars have aligned, ready for review. |
nojaf
commented
Feb 11, 2023
As you changed the |
nojaf
commented
Feb 11, 2023
Thanks @kerams 🙏 |
auduchinok
left a comment
There was a problem hiding this comment.
@kerams I wonder if changes to LexFilter are still needed after you've changed recovery to use the builtin logic?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
T-Gro
commented
Feb 16, 2023
(updating to get the "short ranges" string representation in) |
psfinaki
commented
Mar 10, 2023
@kerams this is ready to merge, right? |
kerams
commented
Mar 10, 2023
Yup. |



A simple fix.This test is failing because without the equals sign
Nestdoes not appear in the syntax tree at all. What exactly would it take to make this happen? I'm assuming something in the parser. Unfortunately, I am not yet familiar with that part of the compiler.