Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identifier 'mdv.bindModel' cannot be resolved #12227

Closed
sethladd opened this issue Aug 4, 2013 · 9 comments
Closed

identifier 'mdv.bindModel' cannot be resolved #12227

sethladd opened this issue Aug 4, 2013 · 9 comments
Assignees
Labels
P0 A serious issue requiring immediate resolution

Comments

@sethladd
Copy link
Contributor

sethladd commented Aug 4, 2013

Consider this code:

import 'dart:html';
import 'package:fancy_syntax/syntax.dart';

main() {
  TemplateElement template = query('#tmpl');
  template.bindingDelegate = new FancySyntax();
  template.model = '11';
}

<!DOCTYPE html>

<html>
  <head>
    <title>index</title>
    <script src="packages/polymer/boot.js"></script>
  </head>
 
  <body>
    <polymer-element name="my-element" extends="div" attributes="volume">
      <template>
        <h1>Hello from the custom element. The volume is {{volume}}</h1>
      </template>
      <script type="application/dart">
        import 'package:polymer/polymer.dart';
        
        @­CustomTag('my-element')
        class MyElement extends PolymerElement with ObservableMixin {
          @­observable String volume;
        }
      </script>
    </polymer-element>
    
    <!-- How to set a custom attribute with a literal value?
         Here I need to bind an object to a template first. I'd
         rather just do volume="11". -->
    
    <template id="tmpl" bind>
      <my-element volume="{{}}"></my-element>
    </template>
    
    <script type="application/dart" src="index.dart"></script>
  </body>
</html>

Gives this error:

Invalid CSS property name: -webkit-touch-callout
Internal error: 'package:polymer/polymer_element.dart': Error: line 140 pos 27: identifier 'mdv.bindModel' cannot be resolved
      Timer.run(() => mdv.bindModel(root, this));
                          ^

Using Dart Editor version 0.1.2_r25741

  polymer:
    description: polymer
    source: hosted
    version: "0.5.2+1"

(I'm probably using an editor that is too new.)

@sethladd
Copy link
Contributor Author

sethladd commented Aug 5, 2013

Or, I'm using an editor that is too old. It certainly doesn't work with the editor build from last week.

@sethladd
Copy link
Contributor Author

sethladd commented Aug 5, 2013

But then I just tried Dart Editor version 0.1.2_r25759 (aka latest continual build) and still got the error. :(

@sethladd
Copy link
Contributor Author

sethladd commented Aug 5, 2013

Removed Priority-Unassigned label.
Added Priority-High label.

@DartBot
Copy link

DartBot commented Aug 5, 2013

This comment was originally written by @zoechi


The problem occured just after the update to 0.6.14 (0.6.13 worked fine)

@DartBot
Copy link

DartBot commented Aug 5, 2013

This comment was originally written by joh...@johnmccutchan.com


This is new. I worked around it by commenting out the line in polymer_element.dart

@jmesserly
Copy link

Hey everyone, sincere apologies on this. Apparently there was a miscommunication and the SDK was released before many features were tested.

Here's what we're doing:

  • working on the fix now for web_ui and polymer pkgs

* moving Polymer package source code and tests into our main repository, so they are tested via the Dart build bots: http://buildbot.dartlang.org

* changing web_ui's WebComponent class so it is not broken every time Node or Element changes in dart:html

@jmesserly
Copy link

Set owner to @jmesserly.
Removed Priority-High label.
Added Priority-Critical label.

@sethladd
Copy link
Contributor Author

sethladd commented Aug 5, 2013

Thanks for the update! Really appreciate the fixes.

@jmesserly
Copy link

fyi, fixes were landed -- pkgs just need to be uploaded


Added Fixed label.

@sethladd sethladd added Type-Defect P0 A serious issue requiring immediate resolution labels Aug 5, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 A serious issue requiring immediate resolution
Projects
None yet
Development

No branches or pull requests

3 participants