Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pub run build_runner serve stack trace and hangs w/ angular_components_example #902

Closed
kevmoo opened this issue Jan 24, 2018 · 4 comments
Closed
Labels
P3 A lower priority bug or feature request

Comments

@kevmoo
Copy link
Member

kevmoo commented Jan 24, 2018

This commit - dart-archive/angular_components_example@96460a7

pub get – to get identical dependencies.

Get the following output. CTRL-C does nothing ... but kill -TERM pid does kill it

pub run build_runner serve
[INFO] Entrypoint: Generating build script completed, took 376ms
[INFO] Watch: Setting up file watchers completed, took 28ms
[INFO] Watch: Waiting for all file watchers to be ready completed, took 196ms
[INFO] BuildDefinition: Initializing inputsRangeError: Value not in range: -1
#0      _StringBase.substring (dart:core-patch/dart:core/string_patch.dart:369)
#1      _Loader._listGeneratedAssetIds (package:build_runner/src/generate/build_definition.dart:365:33)
<asynchronous suspension>
#2      _Loader._findCacheDirSources (package:build_runner/src/generate/build_definition.dart:167:7)
#3      _Loader.prepareWorkspace (package:build_runner/src/generate/build_definition.dart:80:33)
<asynchronous suspension>
#4      BuildDefinition.prepareWorkspace (package:build_runner/src/generate/build_definition.dart:62:12)
#5      WatchImpl._run.<anonymous closure> (package:build_runner/src/generate/watch_impl.dart:254:48)
<asynchronous suspension>
#6      WatchImpl._run (package:build_runner/src/generate/watch_impl.dart:273:6)
#7      new WatchImpl (package:build_runner/src/generate/watch_impl.dart:150:9)
#8      runWatch (package:build_runner/src/generate/watch_impl.dart:109:9)
#9      watch (package:build_runner/src/generate/watch_impl.dart:88:7)
<asynchronous suspension>
#10     watch (package:build_runner/src/generate/build.dart:118:5)
#11     _ServeCommand.run (package:build_runner/src/entrypoint/options.dart:282:25)
<asynchronous suspension>
#12     CommandRunner.runCommand (package:args/command_runner.dart:194:27)
<asynchronous suspension>
#13     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109:29)
#14     new Future.sync (dart:async/future.dart:222)
#15     CommandRunner.run (package:args/command_runner.dart:109:11)
#16     run (package:build_runner/src/entrypoint/run.dart:15:17)
#17     main (file:///Users/kevmoo/source/github/angular_components_example/.dart_tool/build/entrypoint/build.dart:44:22)
<asynchronous suspension>
#18     _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:274)
#19     _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:164)

@kevmoo
Copy link
Member Author

kevmoo commented Jan 24, 2018

Figured out the file: .DS_Store 😄

@kevmoo
Copy link
Member Author

kevmoo commented Jan 24, 2018

I opened the directory on my mac – so file system 💩 was added.

We could at least catch here and print the file if we're confused...

@kevmoo kevmoo added the P3 A lower priority bug or feature request label Jan 24, 2018
@jakemac53
Copy link
Contributor

ah ya it looks like we have a built in assumption that there are no files directly under the generated dir, only package directories

@kevmoo
Copy link
Member Author

kevmoo commented Feb 1, 2018

Verified fixed with build_runner 0.7.9 – thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

2 participants