hop icon indicating copy to clipboard operation
hop copied to clipboard

Error while generating docs on Windows 7

Open vadimtsushko opened this issue 10 years ago • 2 comments

Hi, Kevin.

I'm trying to generate docs with new API. So far I'm getting error with stacktrace:

c:\Projects\mongo_dart>dart tool\hop_runner.dart docs --allow-dirty
docs: Exception thrown by task
docs: Illegal argument(s): Cannot rock on the link at ..\dartdoc-viewer\client\o
ut\web\docs\packages
docs: #0      _copyItem (package:hop_docgen/src/impl.dart:128:5)
      #1      copyDirectory.<anonymous closure> (package:hop_docgen/src/impl.dart:92:25)
      #2      _StreamForEachAsync._moveNext.<anonymous closure>.<anonymous closure> (package:bot/src/bot/expand_stream.dart:48:33)
      #3      Future.Future.<anonymous closure> (dart:async/future.dart:107)
      #4      _rootRun (dart:async/zone.dart:706)
      #5      _ZoneDelegate.run (dart:async/zone.dart:440)
      #6      _CustomizedZone.run (dart:async/zone.dart:650)
      #7      _BaseZone.runGuarded (dart:async/zone.dart:561)
      #8      _BaseZone.bindCallback.<anonymous closure> (dart:async/zone.dart:586)
      #9      _rootRun (dart:async/zone.dart:710)
      #10     _ZoneDelegate.run (dart:async/zone.dart:440)
      #11     _CustomizedZone.run (dart:async/zone.dart:650)
      #12     _BaseZone.runGuarded (dart:async/zone.dart:561)
      #13     _BaseZone.bindCallback.<anonymous closure> (dart:async/zone.dart:586)
      #14     _createTimer.<anonymous closure> (dart:async-patch/timer_patch.dar

As far as I know I have valid viewer in ..\dartdoc-viewer\ directory, it runs as javascript in Chrome for example. Something wrong with symbolic links on windows maybe?

vadimtsushko avatar Mar 28 '14 09:03 vadimtsushko

I've tried to replace sybmolic links with solid directories but nothing changed. It seems that hop tries to copy hop_docgen directory from ..\dartdoc-viewer\client\o ut\web\docs\packages and there is no such package by default. So I've added hop and hop_docgen as dependency in ..\dartdoc-viewer\client\ pubspec but that did not help either.

vadimtsushko avatar Mar 28 '14 09:03 vadimtsushko

Sorry for the lag getting back to you.

If you are using hop_docgen you must have a fully compiled version of dartdoc-viewer in the specified directory.

Have you compiled dartdoc-viewer client into a directory and changed the link to point to that directory?

kevmoo avatar May 25 '14 18:05 kevmoo