Closed jaumard closed 5 years ago
Hi Remi, is this on your radar at all, I have a similar package conflict with analyzer (I'm finally back using flutter again!)
You can submit a PR of you want to. I'm currently a bit tired to be honest
:+1: no problem, I should have time tomorrow. (a walk in the countryside is a good refresh, btw, many thanks for your talk in London)
Apologies for the delay, I just tried to do this now. I cloned the repository locally, made the changes, created a new branch locally, when publishing the branch I get Git: Permission to rrousselGit/functional_widget.git denied to twistedinferno. Is this the right approach, is it as simple as requiring permission? Cheers
You must fork the project instead then make a pull request
ok!
done, btw I have my project referenced to a path version of this project so I can continue now without re-publishing the package
Hi Remi, I thought I had it working yesterday but I think I didn't properly pull both functional_widget and my dart package that uses another version of analyzer into the project. I'm getting the following message in my flutter project that references both functional_widget
and another project that uses an updated version of analyzer. I'm not getting any compile issues and I can't see where any of the classes below are referenced in the functional_widget code. Any ideas off the top of your head? There is a resolveCompilationUnit function but it has a different signature to both the signatures specified below.
Error running FunctionalWidgetGenerator
NoSuchMethodError: Class 'RestrictedAnalysisContext' has no instance method 'resolveCompilationUnit' with matching arguments.
Receiver: Instance of 'RestrictedAnalysisContext'
Tried calling: resolveCompilationUnit(Instance of 'FileSource', Instance of 'LibraryElementImpl')
Found: resolveCompilationUnit(Source, LibraryElement) => CompilationUnit
Hi Remi @rrousselGit, second attempt and thanks to help from natebosch it compiles my code too so I can continue with this local version and be happy. There is a problem with the CI build that I couldn't understand so the pull request checks have failed. If you can spot anything and want me to make a change let me know. Cheers
Sure, I'll take a look as soon as I can :)
The pull request issue is that there's a file (findBeginToken.dart) that isn't correctly formated
it seems ok in vs code, I haven't used travis ci before and couldn't find the failure message. I've done alt + shft + f vs code and the file is the same. Can you see what the formatting problem is? findBeginToken.dart contains a single function that does the same as the deprecated computeNode
There was no new line after the function body, I doubt that was the problem but I've just pushed again just in case
ha, it was that!
Should be good to go.
have you merged it?
Yes