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

malformed type: line 131: type 'QueueList<LiveTest>' is not loaded #287

Closed
Andersmholmgren opened this Issue Jul 14, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@Andersmholmgren

Andersmholmgren commented Jul 14, 2015

I've been getting a strange error when upgrading dependencies for the atlassian_connect_* projects.

This is what I get

blah:atlassian_connect_shelf aholmgren$ pub run test
'package:test/src/runner/engine.dart': malformed type: line 131: type 'QueueList<LiveTest>' is not loaded
  final _active = new QueueList < LiveTest >();
                      ^
type error.
dart:core                                _TypeError._throwNew
package:test/src/runner/engine.dart 131  Engine.Engine
package:test/src/executable.dart 132     main.<async>

This is an unexpected error. Please file an issue at http://github.com/dart-lang/test
with the stack trace and instructions for reproducing the error.

The strange thing is that I have hit this on each project (3 of them) so far.

  • Running pub cache repair on the first project fixed that project when I run it from the command line
  • But running the test in the latest intellij still gets the same problem. Odd cause i thought it just rang pub run test these days

So then I moved on to the second project

  • same problem again
  • deleting all the local .pub, packages, .packages folders did not fix it
  • but running pub cache repair did, but not within intellij again.

Same thing on the third package

The pubspec.yaml for the first project is

author: Anders Holmgren <aholmgren@atlassian.com>
description: Atlassian Connect extensions for Json Web Token
homepage: https://bitbucket.org/aholmgren/ac-dart
name: atlassian_connect_jwt
version: 0.2.3
dependencies: 
  collection: '>=0.9.1 <0.10.0'
  logging: '>=0.9.1+1 <0.10.0'
  path: '>=1.0.0 <2.0.0'
  quiver: '>=0.18.0 <0.22.0'
  dart_jwt: 
    path: /Users/aholmgren/Projects/dart/connect/jefe-acdart/new-acdart_root/dart_jwt
dependency_overrides: 
dev_dependencies: 
  test: '^0.12.0'
environment: 
  sdk: '>=1.3.0 <2.0.0'

So I realise I haven't given you enough info to solve this problem, but am hoping you have some suggestions for how to debug this

@nex3 nex3 added the bug label Jul 14, 2015

@nex3

This comment has been minimized.

Show comment
Hide comment
@nex3

nex3 Jul 14, 2015

Member

What a mess... it looks like I imported the collection package without actually adding a dependency, and now there are a bunch of published versions with broken dependencies. I'll have to yank a bunch of stuff to fix this 😞.

Member

nex3 commented Jul 14, 2015

What a mess... it looks like I imported the collection package without actually adding a dependency, and now there are a bunch of published versions with broken dependencies. I'll have to yank a bunch of stuff to fix this 😞.

@nex3 nex3 closed this in e530f90 Jul 14, 2015

@nex3

This comment has been minimized.

Show comment
Hide comment
@nex3

nex3 Jul 14, 2015

Member

I've deleted the versions of test that imported the collection package without a dependency, so hopefully this should work (or rather, fail with a comprehensible error) now.

Member

nex3 commented Jul 14, 2015

I've deleted the versions of test that imported the collection package without a dependency, so hopefully this should work (or rather, fail with a comprehensible error) now.

@Andersmholmgren

This comment has been minimized.

Show comment
Hide comment
@Andersmholmgren

Andersmholmgren Jul 14, 2015

yey. That fixed it. Thanks for the quick turnaround.

Nice to have the keys to pub to be able to delete stuff ;-)

Andersmholmgren commented Jul 14, 2015

yey. That fixed it. Thanks for the quick turnaround.

Nice to have the keys to pub to be able to delete stuff ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment