Skip to content

Can't install Ace #1263

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

Closed
DartBot opened this issue Jun 5, 2015 · 4 comments
Closed

Can't install Ace #1263

DartBot opened this issue Jun 5, 2015 · 4 comments
Labels
closed-duplicate Closed in favor of an existing report type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

Originally opened as dart-lang/sdk#22717

This issue was originally filed by s1.ka...@gmail.com


What steps will reproduce the problem?

  1. create a new project,
  2. open pubspec,
  3. add Ace and run 'pub get'.

I see the following:
Run Tools > Pub Get to install packages
Pub get failed, [1] Resolving dependencies...
The null object does not have a getter 'isNotEmpty'.

NoSuchMethodError: method not found: 'isNotEmpty'
Receiver: null
Arguments: []
dart:core Object.noSuchMethod
package:path/src/style/posix.dart 34 PosixStyle.rootLength
package:path/src/internal_style.dart 46 InternalStyle.getRoot
package:path/src/parsed_path.dart 47 ParsedPath.ParsedPath.parse
package:path/src/context.dart 529 Context._parse
package:path/src/context.dart 108 Context.dirname
package:path/path.dart 145 dirname
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub_generated/lib/src/source/path.dart 105 PathSource.parseDescription
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart 522 Pubspec._parseDependencies.<fn>.<fn>
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart 577 Pubspec._wrapFormatException
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart 516 Pubspec._parseDependencies.<fn>
dart:collection Object&MapMixin.forEach
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart 467 Pubspec._parseDependencies
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart 113 Pubspec.devDependencies
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub_generated/lib/src/pubspec.dart 104 Pubspec.dependencies
/mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub_generated/lib/src/solver/backtracking_solver.dart 514 Traverser._traversePackage.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run

    pub --trace 'get'

and include the results in a bug report on http://dartbug.com/new.


Result of pub --trace 'get' is attached as 'log.txt'

What version of the product are you using?
Dart Editor build 42828

On what operating system?
Fedora 20

Please provide any additional information below.
All other packages are installed correctly. It is the first time I get such error. The demo project is attached (aqwe.7z).

Thank you.


Attachments:
log.txt (29.08 KB)
aqwe.7z (1.83 KB)

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/8631949?v=3" align="left" width="48" height="48"hspace="10"> Comment by floitschG


Added Area-Pub, Triaged labels.

@DartBot DartBot added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) closed-duplicate Closed in favor of an existing report labels Jun 5, 2015
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


I can't reproduce this with the attached package and Dart 1.8.5. Is it possible that one of the dependencies had a malformed pubspec and has since been updated not to have such a pubspec?


Added CannotReproduce label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This comment was originally written by rms...@rossis.red


I am the maintainer of that package, and I have also seen this error one time roughly a week ago (it subsequently went away after an SDK upgrade I think? I'm on dev channel). From the stack trace it looks like it is parsing the description field of a devDependency? Is that required? The docs on pub.dartlang.org say:

description
Required for packages that are hosted on pub.dartlang.org.

I wouldn't expect the devDependency of the hosted package to require this field, since devDependencies are not part of a using packages dependency graph right? Could that be the problem though?

The hosted package has this in its pubspec:

dev_dependencies:
  ace_js:
    path: js

The ace_js package is used internally for testing and examples, but intentionally not exposed to the applications using the package which source their own js files. Its pubspec only contains a name field.

thanks

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


Ah, that's issue #1238. It should be fixed in the latest 1.9 builds.


Added Duplicate label.
Marked as being merged into #1238.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant