IntelliJ突然为Dart网络应用程序返回403s和404s

时间:2014-03-14 03:16:30

标签: intellij-idea dart polymer

我正在使用IntelliJ IDEA开发Dart客户端应用程序13.昨天,我将Polymer.dart升级到0.10.0-pre.2。从那时起,事情就变得棘手了。我已降级到0.9.5,因为我不再需要新功能,但我仍然遇到同样的问题。当我从IntelliJ在Dartium中启动我的应用程序时,出现以下错误:

GET http://localhost:63342/webatara/web/packages/observe/src/bindable.dart 404 (Not Found)
An error occurred loading file: package:observe/src/bindable.dart
GET http://localhost:63342/webatara/web/packages/observe/src/observer_transform.dart 404 (Not Found)
An error occurred loading file: package:observe/src/observer_transform.dart
GET http://localhost:63342/webatara/web/packages/template_binding/src/mustache_tokens.dart 404 (Not Found)
An error occurred loading file: package:template_binding/src/mustache_tokens.dart
GET http://localhost:63342/webatara/web/packages/smoke/smoke.dart 404 (Not Found)
An error occurred loading file: package:smoke/smoke.dart

我不知道引用这些东西是什么。

$ grep -r bindable.dart packages web ~/.pub-cache
$

我已尝试删除./packages./pubspec.lock~/.pub-cache,但我遇到了同样的问题。我已尝试升级到13.1 EAP并更新Dart插件,但这并没有帮助。这是我的pubspec.yaml:

name: webatara
description: A sample Polymer application
dependencies:
  barback: any
  browser: any
  polymer: any
transformers:
- polymer:
    entry_points: web/index.html
threadsafe: yes

结果是pubspec.lock:

# Generated by pub
# See http://pub.dartlang.org/doc/glossary.html#lockfile
packages:
  analyzer:
    description: analyzer
    source: hosted
    version: "0.10.5"
  args:
    description: args
    source: hosted
    version: "0.9.0"
  barback:
    description: barback
    source: hosted
    version: "0.11.1"
  browser:
    description: browser
    source: hosted
    version: "0.9.1"
  collection:
    description: collection
    source: hosted
    version: "0.9.1"
  custom_element:
    description: custom_element
    source: hosted
    version: "0.9.2"
  html5lib:
    description: html5lib
    source: hosted
    version: "0.9.2"
  html_import:
    description: html_import
    source: hosted
    version: "0.9.0"
  logging:
    description: logging
    source: hosted
    version: "0.9.1+1"
  mutation_observer:
    description: mutation_observer
    source: hosted
    version: "0.9.0"
  observe:
    description: observe
    source: hosted
    version: "0.9.3"
  path:
    description: path
    source: hosted
    version: "1.0.0"
  polymer:
    description: polymer
    source: hosted
    version: "0.9.5"
  polymer_expressions:
    description: polymer_expressions
    source: hosted
    version: "0.9.1"
  shadow_dom:
    description: shadow_dom
    source: hosted
    version: "0.9.2"
  source_maps:
    description: source_maps
    source: hosted
    version: "0.9.0"
  stack_trace:
    description: stack_trace
    source: hosted
    version: "0.9.2"
  template_binding:
    description: template_binding
    source: hosted
    version: "0.9.1"
  unmodifiable_collection:
    description: unmodifiable_collection
    source: hosted
    version: "0.9.2+1"
  utf:
    description: utf
    source: hosted
    version: "0.9.0"
  yaml:
    description: yaml
    source: hosted
    version: "0.9.0"

0 个答案:

没有答案