Open dentra opened 8 years ago
You might be able to use dependency_overrides
to work around until an updated version is available.
@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 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
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.
This blocks interop with the latest angular2 build
Dependencies that need to be updated: