Code Monkey home page Code Monkey logo

workspaces's People

Contributors

cgay avatar

Watchers

 avatar  avatar  avatar

Forkers

cgay

workspaces's Issues

Make dylan update resilient to bad pkg.json files

If a pkg.json file is badly formed, dylan update shouldn't die completely, it should give a decent error message and continue.

$ dylan update
E  /home/cgay/dylan/workspaces/all/http/pkg.json missing required key "description".
$ 

Search all directories for .lid files

I'm adding some dylan benchmarks to an existing repository that mostly isn't Dylan code. dylan-tool update currently assumes you only want to update the registry for directories matching "active" package names and that active packages are Dylan projects. It doesn't find pkg.json in the expected place, nor is this repo in pacman-catalog because it's not a Dylan package, nor would it be reasonable to add a pkg.json file to it at top level just for Dylan.

Needs thought, but probably it would be okay to descend the active package directory looking for .lid files and pkg.json files.

pkg.json is probably too generic a name. Maybe dylan-package.json would be fine.

Document the platforms LID keyword

Reminder to myself to document the Platforms: keyword in LID files that I added in order to decide whether to write a registry entry.

Don't err if file doesn't exist

Presumably this happened when it was trying to compare the old content of the registry file to the new content.

20:20:06 ~/dylan/workspaces/od/opendylan (build-with-packages2) 
$ git rm sources/runtime-manager/local-access-path/local-access-path.lid 
rm 'sources/runtime-manager/local-access-path/local-access-path.lid'

20:20:46 ~/dylan/workspaces/od/opendylan (build-with-packages2*) 
$ dylan update
Workspace directory is /home/cgay/dylan/workspaces/od/.
Reading package file /home/cgay/dylan/workspaces/od/opendylan/pkg.json
Installing deps for package opendylan.
Cloning into '/home/cgay/dylan/pkg/pacman-catalog/head/src'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 95 (delta 7), reused 12 (delta 5), pack-reused 79
Receiving objects: 100% (95/95), 20.40 KiB | 4.08 MiB/s, done.
Resolving deltas: 100% (47/47), done.
Deleting package pacman-catalog head for forced install.
Loaded 63 packages with 66 versions from /home/cgay/dylan/pkg/local-catalog.json.
Reading package file /home/cgay/dylan/workspaces/od/opendylan/pkg.json
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/dylan-programming/angle/angle.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/dylan-programming/airport-test/airport-test.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/dylan-programming/definitions/definitions.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/dylan-programming/time/time.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/dylan-programming/say/say.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/dylan-programming/sorted-sequence/sorted-sequence.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/documentation/airport/airport.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/documentation/airport/say.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/documentation/airport/sixty-unit.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/documentation/airport/angle.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/documentation/airport/time.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/documentation/airport/definitions.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/documentation/airport/sorted-sequence.hdp, preferring previous .lid file.
Skipping /home/cgay/dylan/workspaces/od/opendylan/sources/examples/documentation/airport/airport-test.hdp, preferring previous .lid file.
Error: File /home/cgay/dylan/workspaces/od/opendylan/sources/runtime-manager/local-access-path/local-access-path.lid does not exist

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.