Closed zomdir closed 5 years ago
Sorry for not seeing this earlier.
I'm afraid this is a known issue, it's to do with unicode in some places of HTML, and it's blocked on https://github.com/dart-lang/html/issues/70. I did not realize it's as widespread as being on wordpress.org, though. :/
@filiph the upstream issue is fixed, do you think it's possible to release a version with the dependency pinned to https://github.com/dart-lang/html/commit/2b392a4b8d739edeac3552dff3f614219a733955?
This is amazing news! Unfortunately, I cannot publish a version on pub that depends on a git-only version. https://github.com/dart-lang/html/pull/109 needs to first make it onto pub.
One complication could be that package:html
is also a transitive dependency of source_span
(through which the unicode bug actually manifests). And that package may also need updating. But we'll worry about it when we get there, I guess.
@filiph I published an updated version. html v0.14.0+3
Thank you @nshahan!
I just published version 2.0.11 of linkcheck that no longer has the unhandled exception issue.
Hi Filip,
Again compliments. Linkcheck is the fastest linkchecker I'm aware of. Here are some issues I've found.
Best regards, Hans
$ linkcheck wordpress.org Crawling: 459INTERNAL ERROR: Sorry! Please open https://github.com/filiph/linkcheck/issues/new in your favorite browser and copy paste the following output there:
Invalid argument(s): Text "" must be 73 characters long.
736INTERNAL ERROR: Sorry! Please open https://github.com/filiph/linkcheck/issues/new in your favorite browser and copy paste the following output there:
Invalid argument(s): Text "" must be 128 characters long.
$ linkcheck https://autorijschoolokido.nl/ Crawling: 96Unhandled exception: NoSuchMethodError: The getter 'primaryType' was called on null. Receiver: null Tried calling: primaryType
0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
1 DestinationResult.updateFromResponse (package:linkcheck/src/destination.dart:327:48)
2 checkPage (package:linkcheck/src/worker/worker.dart:127:11)