polymer-dart icon indicating copy to clipboard operation
polymer-dart copied to clipboard

Polymer 1.0.0-rc.18 is not compatible with analyzer 0.28.*

Open dentra opened this issue 8 years ago • 4 comments

This blocks interop with the latest angular2 build

Dependencies that need to be updated:

  • [ ] reflectable
  • [ ] initialize
  • [ ] web_components

dentra avatar Oct 03 '16 12:10 dentra

You might be able to use dependency_overrides to work around until an updated version is available.

zoechi avatar Oct 03 '16 14:10 zoechi

@zoechi thanks, but dependency_overrides does not help because of:

Error on line 25, column 5 of ../../../.pub-cache/hosted/pub.dartlang.org/initialize-0.6.2+2/pubspec.yaml: Error loading transformer: No constructor 'SdkAnalysisContext' with matching arguments declared in class 'SdkAnalysisContext'.

NoSuchMethodError: incorrect number of arguments passed to method named 'SdkAnalysisContext'
Receiver: Type: class 'SdkAnalysisContext'
Tried calling: SdkAnalysisContext(...)
Found: SdkAnalysisContext(AnalysisOptions)
    $include: '**/*_test.*'
    ^^^^^^^^^^^^^^^^^^^^^^^^
Error on line 23, column 5 of ../../../.pub-cache/hosted/pub.dartlang.org/polymer_interop-1.0.0-rc.10/pubspec.yaml: Error loading transformer: No constructor 'SdkAnalysisContext' with matching arguments declared in class 'SdkAnalysisContext'.

NoSuchMethodError: incorrect number of arguments passed to method named 'SdkAnalysisContext'
Receiver: Type: class 'SdkAnalysisContext'
Tried calling: SdkAnalysisContext(...)
Found: SdkAnalysisContext(AnalysisOptions)
    $include: test/**_test{.*,}.html
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error on line 27, column 5 of ../../../.pub-cache/hosted/pub.dartlang.org/web_components-0.12.3/pubspec.yaml: Error loading transformer: No constructor 'SdkAnalysisContext' with matching arguments declared in class 'SdkAnalysisContext'.

NoSuchMethodError: incorrect number of arguments passed to method named 'SdkAnalysisContext'
Receiver: Type: class 'SdkAnalysisContext'
Tried calling: SdkAnalysisContext(...)
Found: SdkAnalysisContext(AnalysisOptions)
    $include: '**/*_test.html'
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Maby it is possible to do something to pass this errors?

dentra avatar Oct 06 '16 08:10 dentra

@dentra I am getting the same thing as you. trying to start playing with polymer using an empty project, new to dart and web programming altogether. kind of a showstopper at the moment

southpawflo avatar Jan 19 '17 18:01 southpawflo

hello, I expect soon some big news about polymer and dart that will fix most of these problems.

In the meanwhile you can try using the following - yet to be released - repositories in your ovverrides for dart and polymer (or check-out the PR's that are still not merged if you prefer) ::

polymer:
    hosted:
      name: polymer
      url: "http://pub.drafintech.it:5001"
    version: "1.0.0-rc.19.unofficial.1"
polymer_interop:
    hosted:
      name: polymer_interop
      url: "http://pub.drafintech.it:5001"
    version: "1.0.0-rc.10.exp.20161031.2"
polymer_elements:
    hosted:
      name: polymer_elements
      url: "http://pub.drafintech.it:5001"
    version: "1.0.0-rc.11+4"

You will get support for polymer-1.7.1 as long as latest versions of polymer_elements.

EDIT : you can also put those dependencies as normal dependencies and do a pub upgrade. You should be able to upgrade to a more recent version of analyzer then.

dam0vm3nt avatar Jan 20 '17 09:01 dam0vm3nt