Coder Social home page Coder Social logo

Comments (7)

orthros avatar orthros commented on June 20, 2024

Thanks for reporting! I'll have to take a look at that.

Can you reproduce in a dart-only environment (i.e. no flutter involved)?
Also what versions of Dart & Flutter are you using? I ask because right now using

Dart Version

C:\Dev\tmp\dartProjTemp>dart --version
Dart VM version: 1.24.2 (Thu Jun 22 08:55:56 2017) on "windows_x64"

and this pubspec.yaml

name: dartProjTmp
version: 1.0.0
author: Colin Nelson <[email protected]>
description: Test Package
environment:
  sdk: ">=1.21.0 <2.0.0"
dependencies:
  epub: ^1.2.0
dev_dependencies:  

I am downloading and installing the package just fine.

Thanks!

from dart-epub.

orthros avatar orthros commented on June 20, 2024

So I can confirm I can replicate this issue, but I also notice that when running

flutter --version

from an out of the box flutter install I get the following

C:\Dev\tmp\test_proj> flutter --version
Flutter 0.1.5 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 3ea4d06340 (3 weeks ago) • 2018-02-22 11:12:39 -0800
Engine • revision ead227f118
Tools • Dart 2.0.0-dev.28.0.flutter-0b4f01f759

The last line: Dart 2.0.0-dev makes me think that this is why pub can't resolve the package as the pubspec.yaml for this project explicitly states < 2.0.0

Can you confirm you are getting similar output from flutter --version?

Thanks!

from dart-epub.

orthros avatar orthros commented on June 20, 2024

Last follow up for now: I've installed the dart beta version (2.0.0)

C:\Dev\Personal\dart-epub [master ≡ +1 ~0 -0 !]> dart --version
Dart VM version: 2.0.0-dev.35.0 (Fri Mar 9 13:09:14 2018 +0100) on "windows_x64"

And after a pub get I can confirm that my unit tests pass.

I don't want to prematurely release the package, but if you can confirm that the dart version you are using with flutter is ~2.0.0 I'll test further and update the version. Otherwise, I'll start down other diagnostic routes.

Thanks!

from dart-epub.

jmgeffroy avatar jmgeffroy commented on June 20, 2024

Hi !
Sorry for the late reply, I'm located in France... And thanks a lot for your ultra-fast replies.
Yes I confirm I'm getting the exact same info with flutter --version:

Flutter 0.1.5 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 3ea4d06340 (3 weeks ago) • 2018-02-22 11:12:39 -0800
Engine • revision ead227f118
Tools • Dart 2.0.0-dev.28.0.flutter-0b4f01f759

Best regards

from dart-epub.

orthros avatar orthros commented on June 20, 2024

No need to apologize. We are from all over around here!

With the latest merge to master #12 this should work.

Using this pubspec.yaml

name: test_proj
description: A new Flutter project.
dependencies:
  flutter:
    sdk: flutter
  epub:  ^1.2.8
  cupertino_icons: ^0.1.0
dev_dependencies:
  flutter_test:
    sdk: flutter
flutter:
  uses-material-design: true

And running flutter packages pub get successfully imported the package.

Can you confirm it is resolved for you too?
Thanks!

from dart-epub.

jmgeffroy avatar jmgeffroy commented on June 20, 2024

Hi,
Thank you so much, it works !
Fantastic, eager to further test...
Very best regards,

from dart-epub.

orthros avatar orthros commented on June 20, 2024

Glad to hear! I'll close this. Please let me know if you encounter any other issues 👍

from dart-epub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.