升级的dart,现在在我的Web UI自动生成的代码中获得noSuchMethod异常
我刚刚升级到Dart Editor 0.2.8R15948,现在我的代码在升级之前正常工作,当我尝试在Dart浏览器中运行它时,抛出以下异常。看起来_e11是我的模板中的未知元素集: 以下是我在Dartium Launch中收到的错误消息:升级的dart,现在在我的Web UI自动生成的代码中获得noSuchMethod异常,dart,dartium,dart-webui,Dart,Dartium,Dart Webui,我刚刚升级到Dart Editor 0.2.8R15948,现在我的代码在升级之前正常工作,当我尝试在Dart浏览器中运行它时,抛出以下异常。看起来_e11是我的模板中的未知元素集: 以下是我在Dartium Launch中收到的错误消息: Exception: NoSuchMethodError : method not found: 'get:parentNode' Receiver: Instance of 'UnknownElement' Arguments: [] Stack Tra
Exception: NoSuchMethodError : method not found: 'get:parentNode'
Receiver: Instance of 'UnknownElement'
Arguments: []
Stack Trace: #0 Element.noSuchMethod (file:///E:/b/build/slave/dartium-win-full-trunk/build/src/build/Release/obj/global_intermediate/webkit/bindings/dart/dart/html/Element.dart:317:7)
1 init_autogenerated.<anonymous closure> (http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.dart:316:43)
2 watchAndInvoke (http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/packages/web_ui/watcher.dart:114:13)
3 init_autogenerated (http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.dart:283:47)
4 main (http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.html_bootstrap.dart:7:30)
异常:NoSuchMethodError:找不到方法:“get:parentNode”
接收方:“UnknowneElement”的实例
论点:[]
堆栈跟踪:#0 Element.noSuchMethod(file:///E:/b/build/slave/dartium-win full trunk/build/src/build/Release/obj/global_intermediate/webkit/bindings/dart/dart/html/Element.dart:317:7)
1初始化自动生成。(http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.dart:316:43)
2观察和唤醒(http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/packages/web_ui/watcher.dart:114:13)
3初始化自动生成(http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.dart:283:47)
4主要(http://127.0.0.1:3030/C:/Users/Jonathan/dart/MapWebComponent/web/out/MapWebComponent.html_bootstrap.dart:7:30)
你知道发生了什么事吗?我认为这可能是一个bug,因为在升级到Dartium版本0.2.8_r15948之前,一切正常。请查看我的github问题和开发人员给我的回复: 尝试固定web_ui的0.2.9版 我们正在准备再次推出SDK,所以我上传了版本0.2.10以使用最新的trunk:版本16102 一些额外的背景资料。每次有一个新的push-in-trunk时,我们都要准备最新的包,我们要做一个新的push-to-pub,这样我们就可以测试这个版本,然后我们最终推出trunk版本 不幸的是,在push-to-pub和发布之间的这段时间内,任何使用诸如web_-ui:任何进行pub安装或pub更新的依赖项的人,都可能会得到一个对他们的SDK来说太新的包 最终,我们将有一种方法告诉pub特定版本的软件包需要哪个版本的SDK(http://code.google.com/p/dart/issues/detail?id=6285)一旦有可能,这种中断就不应该再发生了
您可以在README.md中找到有关如何锁定特定版本的更多详细信息。我刚刚更新了CHANGELOG.md,以说明版本0.2.10需要哪个版本的SDK。尝试删除out文件夹并重新编译我尝试删除out文件夹。一切都重新生成了,但结果都一样。只是想让你知道,我的pubspec.yaml文件有依赖项:web_ui:现在使用js-interop时,我身上发生了任何相同的事情。你能在这个问题上取得任何进展吗?发表评论会更合适。嗨,Jonathan,发布链接时的标准StackOverflow做法是添加内容概述-这样,如果链接出现问题,未来用户不会完全失去答案。@Jeff说得更好。我将来也会改进我的评论建议。顺便问一下,有人能在stackoverflow中编辑任何人的答案吗?能够编辑别人的答案似乎有点奇怪。在这种情况下,它很有用:)