问题
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:
- Click Dart Editor (menu item) -> About Dart Editor.
- Click the Download Update button.
- After the update has downloaded, install/apply the update.
- After the installation is complete, go to Tools (menu item) -> Pub Install.
- 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