Coder Social home page Coder Social logo

pub_cache's Issues

publish 0.2.1

This needs a publish (of 0.2.1) in order to be ready for Dart 2.

searching for the pub folder

Hi! Windows user here. dart 2.9.3

Installing aqueduct, i noticed that the method PubCache.getSystemCacheLocation() is searching for my pub folder by the 'APPDATA' key. However, in my system, Platform.Enviroment['APPDATA'] return the "\roaming" folder, whereas my pub cache is actually located at "\local" folder.

There is another key, Platform.Enviroment['LOCALAPPDATA'], the correctly returns the folder. There is no 'PUB_CACHE' key.

Lib throws when encounters a Git repo's pubspec.yaml without a version

Yes, apparently it can happen. I had a pubspec.yaml file in my .pub-cache/git that did not have a version.

It was async_await:

name: async_await
description: Compile-time support for "async/await" syntax in Dart.
dependencies:
  analyzer: '>=0.22.4 <0.23.0'
  barback: '>=0.15.0 <0.16.0'
dev_dependencies:
  http: any
  unittest: any

Which throws this error:

Uncaught Error: Invalid argument(s)
Stack Trace:
#0      _JSSyntaxRegExp.firstMatch (dart:core-patch/regexp_patch.dart:142)
#1      Version.Version.parse (package:pub_semver/src/version.dart:111)
#2      GitDirectoryPackageRef.GitDirectoryPackageRef (package:pub_cache/src/impl.dart:119)
#3      PubCache._parse.<anonymous closure> (package:pub_cache/pub_cache.dart:121)
#4      MappedIterator.moveNext (dart:_internal/iterable.dart:390)
#5      List.addAll (dart:core-patch/growable_array.dart:183)
#6      PubCache._parse (package:pub_cache/pub_cache.dart:122)
#7      PubCache.PubCache (package:pub_cache/pub_cache.dart:41)
#8      _doLoadWhenSnapshot (package:dartdoc/resource_loader.dart:38)
#9      _doLoad (package:dartdoc/resource_loader.dart:24)
#10     loadAsString (package:dartdoc/resource_loader.dart:16)
#11     main.<main_async_body> (file:///Users/sethladd/Code/dartdoc/bin/dart_resource_loader.dart:4)
#12     Future.Future.microtask.<anonymous closure> (dart:async/future.dart:144)
#13     _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#14     _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#15     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#16     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:143)

#0      _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:886)
#1      _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#2      _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#3      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:143)

Suggest we tolerate pubspec's without versions in them.

Problems running my flutter app

Good afternoon everyone please I am facing a problem running my flutter app here is the massage I always get
Your application could not be compiled, because it’s dependencies could not be established.
Could not read “C:\flutter.pub-cache\hosted\pub.dartlang.org\vector_math-2.0.8\lib\hash.dart” when determining Dart dependencies

intent to discontinue

Hi - we intend to discontinue this package. It's no longer in use by the Dart team's tooling packages and has only limited use in the ecosystem (see https://pub.dev/packages?q=dependency%3Apub_cache).

Some possible recourse for people who are using this package:

  • consume the output of dart pub cache list (that command didn't exist when this package was created)
  • in-line the implementation; it's pretty minimal
  • fork the package and re-publish (which may then imply some ongoing maintenance)

And as a heads up, newer Dart SDKs (2.19 and later) use pub.dev as the domain name in the cache dir path, instead of pub.dartlang.org.

No packages found when running MacOS

I have a lot of packages in the /Users/xxx/.pub-cache/hosted/pub.dev/, but the getPackageRefs and getAllPackageVersions return empty collection.

  var cache = PubCache();
  var refs = cache.getPackageRefs();
  var versions = cache.getAllPackageVersions("<the package name i.e. libgit2dart>");

Versions:

  • pub-cache: 0.3.1
  • MacOS: 12.6.2

I tried chmod -R 777 ~/.pub-cache just in case it's a permission issue, but still didn't work.

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.