Compiler error running ootb web_ui sample

送分小仙女□ 提交于 2019-12-23 04:29:45

问题


i'm trying to compile the ootb web_ui sample. (Using Generate Sample Content - Web Application (using the web_ui library)

I have updated to latest editor 0.0.0_r18915 and have run pub update but am getting

Internal error:

'http://127.0.0.1:3030/C:/Users/me/dart/WebApplication/web/packages/logging/logging.dart':   
Error: line 250 pos 24: wrong number of type arguments in type 'Comparable'
class Level implements Comparable<Level> {

                   ^

Anyone have any ideas?


回答1:


Got the same problem here, and after some time, i've decided to pay attention at the stack trace... It says "Wrong number of type arguments in type 'Comparable'". Then, i just opened "logging.dart" and changed this:

class Level implements Comparable<Level> {

to this:

class Level implements Comparable {

Don't know if i did right, but worked fine for me. If someone knows the right way to do it, please, let us know ;)




回答2:


  1. Click Dart Editor (menu item) -> About Dart Editor.
  2. Click the Download Update button.
  3. After the update has downloaded, install/apply the update.
  4. After the installation is complete, go to Tools (menu item) -> Pub Install.
  5. Go to Tools (menu item) -> Pub Update.

After doing those five steps, I am able to compile the code.



来源:https://stackoverflow.com/questions/15086309/compiler-error-running-ootb-web-ui-sample

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!