问题标签 [dart-editor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
494 浏览

dart - 如何在 Windows 上使用 Dart 和 Webstorm 6(从 Google IO 2013 运行 Codelab)

我搜索但没有找到与我的问题远程相关的任何其他帖子。本质上,我正在尝试遵循我在这里找到的 Google IO 2013 的 Dart Codelab:http: //goo.gl/4E21M

我正在尝试在 Webstorm 6 中使用 Dart 插件,我使用此处的说明进行设置:http: //blog.jetbrains.com/webide/2012/12/dart-support-in-webstorm-6/

最后,我在 Windows 8 上执行此操作。

我的 build.dart 是:

我的 pubspec.yaml 是:

然而,当我尝试运行第 1 步代码时,我在事件日志中看到:运行测试时出错:build.dart:build.dart 中缺少库语句。

所以这看起来很简单......除了我无法弄清楚应该存在哪个库语句而不是......我删除的唯一代码行是:

因为我正试图在 Windows 上运行它,这是针对 UNIX 环境的。

有什么想法吗?我非常感谢您在 Webstorm 中启动和运行这个 Codelab 提供的任何帮助(它比默认的 Dart 编辑器更精致)。换句话说,我更喜欢 Webstorm——如果我能在其中启动并运行它的话。

先感谢您!

0 投票
1 回答
925 浏览

dart - 如何在没有 CORS 的 Dart 编辑器中调试客户端 dart 代码

我有一个服务器/客户端项目,都是用 dart 编写的。现在我的服务器在端口上启动,1337当我使用.Run in dartium3030

问题是这在使用AJAX调用时会导致CORS 。我已正确设置我的服务器以接受其他来源(带有),但是,例如,cookie 不会一起发送。Access-Control-Allow-Origin

现在我想知道:有没有办法用我的服务器(运行1337)来提供我的文件,并且仍然有可能在 dart 编辑器中调试客户端代码?

0 投票
1 回答
162 浏览

dart - Is there a way to disable the CSS preprocessor in dart web_ui?

I'm generating my CSS with twitter bootstrap, and want to simply use that CSS. When the dart CSS preprocessor goes over the already process .less files, it breaks some of the definitions.

Initially I just put the .css file in the out/css/ folder and linked to that, but then the dart editor says that it can't find the imported CSS file.

0 投票
1 回答
2085 浏览

dart - 为什么只能将静态字段声明为“const”?

我刚刚升级了我的 Dart 编辑器 (0.5.16_r23799),没有错误/警告的代码不再存在。

const以有标记和此消息开头的行:

只有静态字段可以声明为 'const'

我读了这个ch02-final-const,那里什么都没有。

这篇文章dart-const-static-fieldsconst modifier implies static,如果我们不能使用constwithout static,我们应该使用final?...但是我错过了什么文档/帖子?打算这样做:

0 投票
1 回答
752 浏览

dart - 生成的 Dart 编辑器 Web 应用程序不工作

我刚刚下载了最新版本的 dart 编辑器并执行了以下操作:

1)创建一个新的网络应用程序。当我尝试运行时,出现以下错误:

2)经过一些研究,我尝试了以下方法 - 认为我可能需要一些依赖项 - Pub install。现在我收到以下错误:

有什么想法可以解决这个问题吗?我不会走得很远。

谢谢,

0 投票
1 回答
1510 浏览

dart - 如何使用 Dart Editor 将 print() 输出直接发送到文件?

我阅读了那些ch04-tools-editor开始并在谷歌上搜索,但我没有找到任何答案。如何使用 Dart Editor 将 print() 输出直接发送到文件?

编辑:我想直接在文件中发送(管道/重定向流)数据(什么 print() 返回),而不是 Dart 编辑器。我正在寻找 Dart 编辑器的功能。

0 投票
1 回答
77 浏览

dart - Dart 编辑器可以使用自定义字体吗?

是否可以将自定义字体添加到飞镖编辑器,因为我想添加和使用inconsolata

0 投票
1 回答
62 浏览

dart - 在 DartEditor 中创建新启动器时,URL 选项有什么作用?

在 DartEditor 中创建新启动器时,URL 选项如何工作。

我知道,在运行启动器时,浏览器会打开指定的 URL。但是“源位置”有什么作用呢?它的目的是什么?

在此处输入图像描述

0 投票
1 回答
62 浏览

dart - Pub Install 一直说更新后我的所有项目都失败了?

嘿,这看起来更像是一个 Dart 问题,但可以肯定的是,

是我的pubspec.yaml文件的样子。我得到的错误是:

发布更新失败,[3]

当我运行时,pub --trace install我得到以下信息:

我在 Windows 8 上,Dart Editor 版本 24275。这是我做错了什么吗?

我的完整代码可以在这里看到:https ://github.com/Plornt/CursorDiscoClient

0 投票
1 回答
130 浏览

dart - 调试 dart web-ui 应用程序时断点不起作用

我正在尝试调试使用 web-ui 的应用程序。应用程序运行正常,但不会在断点处停止。我尝试将它们设置在两个 *.dart 文件中,一个在 web 文件夹中,另一个在 web/out 文件夹中。我正在使用 0.5.20.4_r24275 版本