dart-pub

Cannot find referenced source: packages

自古美人都是妖i 提交于 2019-12-01 06:56:23
I have this pubspec.yaml name: Dart Pages description: The Dart platform. dependencies: web_components: any mongo_dart: any then I run Tools > Pub Install, the operation completes successfully. When I run the application I get the following error: dart --enable-checked-mode web\page.dart Unable to open file: C:/Users/Samer/Documents/GitHub/dart/web/packages/mongo_dart/mongo_dart.dart'file:///C:/Users/Samer/Documents/GitHub/dart/web/page.dart': Error: line 1 pos 1: library handler failed #import("package:mongo_dart/mongo_dart.dart"); I'm using Windows 7 64bit & Latest Dart Editor version 0.2.1

Cannot find referenced source: packages

我只是一个虾纸丫 提交于 2019-12-01 05:01:19
问题 I have this pubspec.yaml name: Dart Pages description: The Dart platform. dependencies: web_components: any mongo_dart: any then I run Tools > Pub Install, the operation completes successfully. When I run the application I get the following error: dart --enable-checked-mode web\page.dart Unable to open file: C:/Users/Samer/Documents/GitHub/dart/web/packages/mongo_dart/mongo_dart.dart'file:///C:/Users/Samer/Documents/GitHub/dart/web/page.dart': Error: line 1 pos 1: library handler failed

Flutter Pub: Expected a key while parsing a block mapping. path:

可紊 提交于 2019-11-30 12:39:15
问题 I searched it on Stackoverflow but regarding flutter, I do not find any relevant solution, here and here may be the same question but they are not for flutter. I'm using JSON file and register in Pubspec.ymal but showing error and also when I use an image and register it, the same error also occurs. Maybe there is a formatting mistake in it, but don't know what the problem is.this is the doc I followed. Error on line 29, column 5 of pubspec.yaml: Expected a key while parsing a block mapping .

Dart - How does one dart project import code from another dart project without using pub?

霸气de小男生 提交于 2019-11-30 07:01:52
Suppose I have two dart projects Project A contains code that uses web component to create bunch of UI widget (similar to https://github.com/kevmoo/widget.dart ) Project B contains my front end code that would reuse the UI widget I created in project A. If I dont want to publish my project A to pub, is there anyway to link project B to project A without manually copying files from project A into B? Thanks Take a look at this section in the pub documentation: Path Dependencies: http://pub.dartlang.org/doc/dependencies.html#path-packages Suppose project_a had a library file called myprojecta

Flutter Pub: Expected a key while parsing a block mapping. path:

强颜欢笑 提交于 2019-11-30 03:10:35
I searched it on Stackoverflow but regarding flutter, I do not find any relevant solution, here and here may be the same question but they are not for flutter. I'm using JSON file and register in Pubspec.ymal but showing error and also when I use an image and register it, the same error also occurs. Maybe there is a formatting mistake in it, but I don't know what is the problem with it.this is the documentation I followed. Error on line 29, column 5 of pubspec.yaml: Expected a key while parsing a block mapping . assets: ^ This is my pubspec.yaml file name: jsondata description: A new Flutter

Dart - How does one dart project import code from another dart project without using pub?

♀尐吖头ヾ 提交于 2019-11-29 08:19:08
问题 Suppose I have two dart projects Project A contains code that uses web component to create bunch of UI widget (similar to https://github.com/kevmoo/widget.dart) Project B contains my front end code that would reuse the UI widget I created in project A. If I dont want to publish my project A to pub, is there anyway to link project B to project A without manually copying files from project A into B? Thanks 回答1: Take a look at this section in the pub documentation: Path Dependencies: http://pub

In Dart and Pub, should I add pubspec.lock to my .gitignore?

杀马特。学长 韩版系。学妹 提交于 2019-11-29 01:53:31
Should I add this generated file to my .gitignore so that it doesn't show up in my repository? Should pubspec.lock be included in my repository? Juniper Belmont This answer has two parts, similarly to the question and answer in this question about Ruby bundler . Application packages If you are working on an application package , then you should keep the pubspec.lock file in your repository as a snapshot of your dependencies. From the Pub glossary: Application packages should check their lockfiles into source control, so that everyone working on the application and every location the

dart pub fail behind a proxy - is there a way to install the packages manually?

馋奶兔 提交于 2019-11-28 09:30:30
There is a known issue with using Pub dart in a corporate network using a proxy (on windows machine at least). You cannot even run the samples as they make use of pub to get the packages. if you run the samples first from a network without a proxy, it works perfectly fine (the packages have been installed) when you run them from behind the proxy. My question is: how can I install the packages manually? I can of course get them from git for example, but what do I have to do afterward to "install them" I am confused with what goes in the Dart install directory, the user directory and the

Run Dart WebApp on Apache Server

a 夏天 提交于 2019-11-28 01:37:20
I want to server a Dart application on an Apache server. I added the line application/dart dart to the mime.type file in the Apache configuration. Still I get the error Resource interpreted as Script but transferred with MIME type text/plain: "http://localhost/~d022051/mastermind/web/mm-game.dart". Another issue is the link to the packages directory. I do not want to have symlinks in the documents directory of the server. Is there a smart way to copy the required packages in the correct version? This message has nothing to do with Apache. It's a while that I worked with Apache, but as far as I

Could not find a file named “pubspec.yaml” in

 ̄綄美尐妖づ 提交于 2019-11-27 07:39:53
问题 I'm new with Dart. I create a simple Web application but when I want to run it I got this message in "Tools Output" : Could not find a file named"pubspec.yaml"in"/home/reza/.pubcache/hosted/pub.dartlang.org/browser-0.10.0+2". How can I fix this problem ? I use Ubuntu 14.04LTS 64bit and DartDditor 1.7.2 回答1: This has happened to me several times: What's ultimately solved things for me (OS X) is deleting pub's cache: sudo rm -Rf /Users/<username>/.pub-cache Also delete the packages directory in