dart-archive / polymer-dart

Polymer support for Dart
https://pub.dartlang.org/packages/polymer
BSD 3-Clause "New" or "Revised" License
181 stars 33 forks source link

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

Open dentra opened 7 years ago

dentra commented 7 years ago

This blocks interop with the latest angular2 build

Dependencies that need to be updated:

zoechi commented 7 years ago

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

dentra commented 7 years ago

@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?

southpawflo commented 7 years ago

@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

dam0vm3nt commented 7 years ago

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.