Comments (10)
from coverage.
Which (exact) version of the VM are you using? The observatory protocol hasn't yet been declared stable, so it changes frequently-ish, sometimes in ways that break coverage.
Side Note: Is --remote-debugging-port necessary?
It was necessary until quite recently. Around v1.9 or 1.10 of Dartium, it was moved to its own port and we eliminated the old chrome-remote-debugging websocket protocol. Given that we've started eliminating support for older observatory protocols in this package, we can remove that from the instructions.
from coverage.
@cbracken I was using 1.11.1, but I just upgraded to 1.11.3 and saw the same issue. I can try the development channel and see if that helps.
from coverage.
@cbracken okay I tried it with the latest dev version (1.12.0-dev.5.1) and still got the same error.
from coverage.
@cbracken @kevmoo any ideas on this? Are either of you able to reproduce what I'm seeing?
from coverage.
@evanweible-wf Did this work in 1.10? I'll take a look quick...
from coverage.
@kevmoo I dug into this a bit more. I stepped back through the commit history and found f5b4ef8 to be the commit that introduces the code that throws the RPC error. Ever since that commit, browser coverage fails due to that error, but I think it's a false negative prior to 1.11.
If I use the commit just before that one (0d8d903), I get the following results:
- 1.10.0: coverage collects successfully
- 1.10.1: coverage collects successfully
- 1.11.0:
SEVERE: 2015-08-13 16:36:29.492: Failed to get JSON response for message 2 The null object does not have a method '[]'.
So it looks like 1.11 is when the protocol communication changes and browser coverage actually stops working.
Also, I erroneously wrote above in the original issue description that I was trying to run dartium with a .dart
file - obviously that doesn't work. It was supposed to be an .html
file that simply loads a .dart
script. I've updated that now.
from coverage.
Interesting...will let you know what I come up w/
On Thu, Aug 13, 2015 at 2:40 PM, Evan Weible [email protected]
wrote:
@kevmoo https://github.com/kevmoo I dug into this a bit more. I stepped
back through the commit history and found f5b4ef8
f5b4ef8
to be the commit that introduces the code that throws the RPC error. Ever
since that commit, browser coverage fails due to that error, but I think
it's a false negative prior to 1.11.If I use the commit just before that one (0d8d903
0d8d903),
I get the following results:
- 1.10.0: coverage collects successfully
- 1.10.1: coverage collects successfully
- 1.11.0: SEVERE: 2015-08-13 16:36:29.492: Failed to get JSON response
for message 2 The null object does not have a method '[]'.So it looks like 1.11 is when the protocol communication changes and
browser coverage actually stops working.Also, I erroneously wrote above in the original issue description that I
was trying to run dartium with a .dart file - obviously that doesn't
work. It was supposed to be an .html file that simply loads a .dart
script. I've updated that now.—
Reply to this email directly or view it on GitHub
#98 (comment).
from coverage.
Closing. User error. Please open an issue about a better error message – it wasn't very clear that resume is only needed if things are paused. 😄
from coverage.
Thanks again! :)
from coverage.
Related Issues (20)
- Speed up --function-coverage
- Filter files using a command line flag HOT 8
- Running coverage in new flutter project HOT 1
- --test param throws error when args are added (--test="test --concurrency=1") HOT 1
- incorrect branch and line coverage with const values HOT 1
- Add `--fail-under` option
- LCOV relative paths HOT 1
- No Coverage Generated
- Fix BRDA syntax in lcov files HOT 3
- Enable firehose for publishing from GitHub actions
- Clean up old SDK/VmService checks
- Tests with `Isolate.run` pause indefinitely. HOT 6
- Ignore like `// coverage:ignore-start` does not work HOT 1
- bug: `format_coverage` does now work when invoked with `dart pub global run`
- cover code for kIsWeb condition true and false both cases
- Test coverage doesn't work when using pattern matching to destructure a record HOT 1
- How to run coverage for multiple packages in a mono_repo HOT 1
- Coverage not reported correctly for too many line hits HOT 1
- test_with_coverage won't exit on flutter 3.22.0
- test_with_coverage not exiting on Windows Github actions with Dart 3.4.0 HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coverage.