using "packages" folder in DART -



using "packages" folder in DART -

in app, i've pubspec.yaml file as:

class="lang-yaml prettyprint-override">name: server dependencies: oracledart:

and after running pub get, got folder "packages" updated correctly.

i wanted create sub folders testing functions individually, created folder: test/boms.dart, is:

class="lang-dart prettyprint-override">import 'dart:async'; import 'package:oracledart/oracledart.dart'; void main() { ... }

but 1 time running it, got error msg:

unhandled exception: uncaught error: filesystemexception: cannot open file, path = 'g:\app\bin\test\packages\oracledart\oracledart.dart' (os error: scheme cannot find path specified.

do need re-create 'packages' folder each sub folder have function "main", or there way connect it!

at to the lowest degree top-level folders packages link should created automatically. seek run pub get or pub upgrade or create test folder within darteditor (i don't know creates symlinks created automatically in top-level folders far remember). in subfolders of top-level folders bin, test, ... had create them manually creating new symlink packages link in bundle root.

in linux like:

class="lang-bash prettyprint-override">ln -s ../packages/ packages

don't know how in windows.

dart dart-pub

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -