197
questions
1
vote
1
answer
1k
views
From given two lists, how to extract all the elements from one list that are not available in the other list in Dart?
I have two lists in Dart as below,
final List availableIssueComponents = [
{'id': 1, 'componentName': 'Cash Acceptor'},
{'id': 2, 'componentName': 'Printer'},
{'id': 3, 'componentName': '...
1
vote
2
answers
3k
views
Does dartpad not support I/O?
Recently I was trying out some code snippets from "Dart For Absolute Beginners" on DartPad.
Specifically:
import 'dart:math';
import 'dart:io';
void main()
{
int guess;
Random rand ...
0
votes
1
answer
313
views
Why is output of {42.05 + 0.05 } like this on Dart Lang? [duplicate]
When i try this on DartPad output is like this. Anyone can explain ?
5
votes
1
answer
14k
views
Abstract methods in Dart
I'm implementing an inheritance hierarchy in which derived-class construction consists only of a call to the base-class constructor. The base-class constructor then calls method(s) implemented only in ...
1
vote
1
answer
47
views
Weird DartEditor behavior / bug?
I'm working on a little website using dart.
I have one project for the server, and another for the client app (see picture below)
In the server app I serve the client app from the client project like ...
1
vote
1
answer
102
views
Dart Editor freezes when saving files?
Everytime I hit Ctrl + S in Dart Editor the application freezes for several seconds, sometimes up to half a minute. After that it says Build completed successfully in the Tools Output.
I have a habit ...
1
vote
0
answers
85
views
Executing a dart application prints errors to console
I am using Dart Editor|
Dart Editor version 1.10.0.dev_01_01 (DEV)
Dart SDK version 1.10.0-dev.1.1
I open polymer_snippet and run the app and it executes as expected.
I attempted to run epimss_app ...
0
votes
1
answer
82
views
How to make Dart Editor find referenced packages
In the Dart Editor (x64), I create a new project from the "Polymer Web Application" template.
Immediately after creation, Dart Editor runs pub get command, executes building workspace.
Then for ...
0
votes
0
answers
236
views
How to reinstall Dart Editor
I've been trying Dart x64 for a month (under Windows 8).
Unfortunately, I've removed the "\Users\$user\AppData\Roaming\Pub\" folder. After that any Dart/Polymer project (including shipped samples ...
0
votes
1
answer
217
views
How to configure formatting rules in Google Dart Editor
I want configure the Dart Editor for the formatting a such source code without a breaking the first line on parameter list.
Result of formatting.
String _expand(
List fragments, Map<String, ...
0
votes
1
answer
149
views
Unable to import dart library for command line app
When initiating a command line utility in dart, I get the following directory structure:
happy/
bin/
main.dart
lib/
happy.dart
user.dart
Where happy.dart, and user.dart are identical ...
1
vote
1
answer
73
views
Can not get the repeat to work in a dart polymer webapp
Created a default polymere web app
Delete a few lines of main_app.html to this
<link rel="import" href="../../packages/polymer/polymer.html">
<polymer-element name="main-app">
&...
3
votes
1
answer
705
views
dart: proxy annotation usage
Documentation for the @proxy annotation states:
If a class is annotated with @proxy, or it implements any class that is annotated, then the class is considered to implement any interface and any ...
2
votes
1
answer
528
views
How do i tell the Dart Editor to use the PATH location of the SDK?
I would like to store my dart-sdk outside of the folder where i keep the editor. For sake of brevity lets say its stored in C:/dart-sdk/bin
C:\Users\John> echo %PATH%
..;..;C:\dart-sdk\bin
C:\...
2
votes
2
answers
272
views
Symbol with private identifier argument
I want to create a symbol equal to that of a private MethodMirror's simplename. However, Symbol's documentation states the argument of new Symbol must be a valid public identifier. If I try and create ...
1
vote
1
answer
87
views
Dart editor debugger is not working
Is just nor working, it Works if I run the proyect as JavaScript but not if a run it on Dartium, I removed all the extensions from Chrome, I reinstalled Dart and I still have the same problem.
Edit: ...
2
votes
1
answer
71
views
Start Dartium with a flag from Dart Editor
Is it possible to start Dartium from Dart Editor with certain flag? The flag I want to use is --enable-speech-dispatcher. In the terminal, I pass the flag like this: dartium --enable-speech-dispatcher....
1
vote
1
answer
97
views
Dart editor “source not available” in linux?
When I try to debug a dart application on Linux Mint 17 using Dart Editor 1.8.5.release (STABLE) with Dart SDK version 1.8.5, it shows me the message "Source not Available for ". This occurs for any ...
0
votes
1
answer
88
views
Is there the way to reanalyze only current project in Google Dart Editor?
By the command Reanalyze sources the Google Dart Editor always reanalyzes all opened projects for the editing but not only the current active project.
Reanalyzing all the opened project can take a ...
2
votes
1
answer
514
views
Run Chartjs Dart example
I'm trying to run the chartjs example of the dart port but It seems not to work.
See screenshot with error message.
Any Idea where is the problem? Thanks
the source code for the example can be ...
1
vote
1
answer
215
views
how to setup a unittest for a web-project
I have problems to properly configure my first unittest in the DartEditor(1.8.5).
I wrote a web-app with Dart that is located in the web-folder.
Now i added a test-folder parallel to web with a file ...
0
votes
2
answers
147
views
Dart-Editor: Dart not invoked?
For some reason i don't know, my DartEditor suddenly does not run the dart code anymore when i run an HTML file in Dartium. Nothing happends on chromium and nothing is displayed in the console output.
...
0
votes
0
answers
148
views
Dart Editor does not activate after upgrade
I upgraded Dart Editor today and now the Editor will not activate.
Instead I receive the following error in the "Tools Output" window:
"pub list-package-dirs failed: exit code 1"
None of the below ...
0
votes
2
answers
188
views
How do you access the command line in Dart Pub package manager
I am trying to explore using Dart's Pub package manager on the command line. Unfortunately, I don't know how to do this, and all the documentation I have read, presupposes that this is known. What ...
1
vote
1
answer
212
views
DartEditor Pub Build google app engine
I've coded a webapp in Dart. On server side I'm using DartForce MVC framework and on client side I'm using AngularDart. If I build in DartEditor I received this error
[Info from Dart2JS]:
Compiling ...
0
votes
1
answer
184
views
Custom polymer element doesn't show text
I am using Dart with the Dart Editor to create a custom polymer element. The element is a button and I would like to use it like this:
<my-button>text</my-button>
Just like you would use ...
0
votes
0
answers
34
views
What causes "flushing %s elements"?
I'm experimenting with custom polymer elements in Dart using the Dart Editor. I haven't been able to figure out why, but I often get this printed in the output:
flushing %s elements (http://localhost:...
11
votes
1
answer
2k
views
Async/Await feature in Dart 1.8
Is it in the 1.8 release as an experimental feature like enum or is it not? And how can I use it in the Dart Editor? Is there a nice article or example app that can get me started with this?
When it ...
1
vote
2
answers
171
views
Dart editor "source not available"
I have the following basic code:
import 'package:jwt/json_web_token.dart';
main() {
final jwt = new JsonWebTokenCodec(secret:'***');
print(jwt.isValid('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9....
6
votes
1
answer
8k
views
Dart import packages not working
Having an issue with importing packages in Dart now, the project was working yesterday but has stopped today and I have no clue why, the code hasn't changed all weekend and I don't recall running any ...
3
votes
3
answers
1k
views
Breakpoints in Dartium not working
So if I add break points in .dart files that are located in /web directory of my project, it works fine. For example I'm using AngularDart and the main.dart file works. However when I try to put a ...
2
votes
2
answers
171
views
I would like to run and debug the polymer-tutorial in the DartEditor
I would like to run and debug the polymer-tutorial ( https://www.polymer-project.org/docs/start/getting-the-code.html ) in the DartEditor but the code is not setup to do so. I am a beginner with ...
2
votes
1
answer
454
views
Could not find pubspec.yaml in unittest 0.11.0+5
I'm running pub get and its reporting that it can't find a pubspec.yaml file in unittest package, anyone seen this before? Im on Dart Editor version 1.8.0.dev_00_00 (DEV) Dart SDK version 1.8.0-dev.0....
0
votes
1
answer
107
views
Unable to launch web project through dart editor
Just starting up on Dart and I am unable to launch web project from dart editor, command line projects work fine.
I get this exception while trying to start web project
Running pub get on C:\Users\...
1
vote
1
answer
84
views
how to define a variable of type "function"? (using optional typing)
In Dart, functions are first class.
The documentation tells us that you can create a variable that is a function like this:
var loudify = (msg) => '!!! ${msg.toUpperCase()} !!!';
to create a ...
0
votes
1
answer
398
views
dart-polymer: failed to load resource using core-elements
I want to use the core-scaffold element from the core-elements package. I imported
<link rel="import" href="packages/core_elements/core-scaffold.html">
<link rel="import" href="packages/...
0
votes
1
answer
65
views
Dart-Editor Hide / Remove Toolbars
since dart really is built around this horrendous dart-editor, I would at least like to make it as emacs-like as possible.
I already use a gtk file to set everything to minimal, but I can't figure ...
2
votes
1
answer
584
views
Dart editor run error "could not start pub serve or connect to pub" on it's sample web application project
I just installed Dart Editor and created a simple web application and when I click on run it shows this error and nothing happens.
"could not start pub serve or connect to pub"
How is the ...
1
vote
2
answers
148
views
Dart Editor not launching referenced project
In project a's pubspec, I have this code to import stuff from project b:
dependencies:
project_b:
path: /home/vilix/Program Files/Dart/workspace/project_b
project_b is a library and so ...
1
vote
1
answer
115
views
Server-side app unable to locate dart.js
I'm trying make an application with both client and server-side code. The server code is in a directory called 'bin', the html- with corresponding css- and dart-files are in a directory called 'web'. ...
0
votes
0
answers
42
views
Why am I getting an outdated pub package dialogue?
I am using the current version of Dart 1.7.0_dev. When I attempt to add a pub package I am getting the attached dialogue - an old version.
Even with a new install of Dart, I am getting it. I would ...
1
vote
2
answers
109
views
What is the /packages/$sdk/ folder inside a Google Dart build for?
After building a Google Dart web app in Dart Editor (the Pub Build (Generates JS) option) the folder layout is like this. My app imports both dart:html and dart:async but It seems I can upload ...
2
votes
1
answer
44
views
How in Dart Editor revert back (turn off) an option "Don't Analyze" script?
How in Dart Editor revert back (turn off) an option "Don't Analyze" script?
I turn on this option on a script but I don't know how to turn it off on this script (allow to analyze).
1
vote
0
answers
367
views
cannot run my application on dart 1.6 release-stable and dart 1.7.0.dev_00_01
My application was being developed with 1.6.0-dev.09_07 and starting my application was done with no issue.
I switched to the 1.6.0.release-stable received the following error:
--- 8:03:25 AM ...
1
vote
2
answers
93
views
Dart editor can not locate java vm
I would like to check out Dart. Got the windows 7 & 8 zip. Unziped it and fired up the editor.
complained that it needed a java vm. Downladed and installed it and set the reference in the ini.file ...
2
votes
1
answer
249
views
How to check for type errors in dart
Is there a way to check for type errors in Dart without going through Javascript transpilation? What if I don't want to make it Javascript and only run dart code? The Dart Editor gives me warnings, ...
1
vote
1
answer
95
views
Warnings in Dart Editor when creating a "Sample web application using the polymer library"
I updated my version of the Dart Editor recently. At the same time, I upgraded Polymer to 0.12.0 in my main project.
I fixed the Polymer elements by adding the imports to the Polymer library as ...
2
votes
1
answer
62
views
Set the dart-editor server responses
My apache server is setup to respond to any request with the index.html. The idea behind this is to let the web app we are creating handle the routing. The dart-editor test environment does not do ...
2
votes
1
answer
140
views
Is it possible to add javascript syntax highlighting in the dart-editor?
I have an javascript web-app which i will be porting to dart but in the dart editor there isn't any javascript syntax highlighting. I wanted to add the package since the editor is eclipse base ( i ...
2
votes
1
answer
543
views
Calling my JavaScript from Dart
This should be simple, but I just can't seem to wrap my head around it.
So I have my dartFile.dart and then I have my javaScriptFile.js. How do I link these two so that I can call JavaScript ...