GithubHelp home page GithubHelp logo

Comments (14)

pheymann avatar pheymann commented on June 17, 2024

Ah right, didn't notice it as the idris compiler interaction is done in ./project. But plain
idris --install doesn't work anyway (at least from my experience). You have to pass the file name explicitly.

But thanks for the hint, will fix it.

from specdris.

Invisible-Rabbit-Hunter avatar Invisible-Rabbit-Hunter commented on June 17, 2024

Yes, but the filename has to have the .ipkg extension or else idris complains.

from specdris.

pheymann avatar pheymann commented on June 17, 2024

No it does not:

idris --install specdris.iqkg
Entering directory `./src'
Leaving directory `./src'
Entering directory `./src'
Installing Specdris/Spec.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris
Installing Specdris/SpecIO.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris
Installing Specdris/Core.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris
Installing Specdris/Data/ConsoleColor.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris/Data
Installing Specdris/Expectations.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris
Installing Specdris/Data/SpecInfo.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris/Data
Installing Specdris/Data/SpecResult.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris/Data
Installing Specdris/Data/SpecState.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris/Data
Installing 00specdris-idx.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris
Leaving directory `./src'

from specdris.

pheymann avatar pheymann commented on June 17, 2024

You also can see that it worked in this Travis build which installs specdris before running the tests:

https://travis-ci.org/ziman/lightyear/builds/253687741?utm_source=github_status&utm_medium=notification

from specdris.

Invisible-Rabbit-Hunter avatar Invisible-Rabbit-Hunter commented on June 17, 2024

What version of idris do you use? It doesn't work on master branch on git.

from specdris.

pheymann avatar pheymann commented on June 17, 2024

I work with 1.0 and I used master when running install as shown above. I just renamed the package file (locally) again.

from specdris.

pheymann avatar pheymann commented on June 17, 2024

Made a clean clone and install:

nb-pheymann:tmp paul.heymann$ git clone https://github.com/pheymann/specdris.git
Cloning into 'specdris'...
remote: Counting objects: 260, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 260 (delta 3), reused 10 (delta 3), pack-reused 249
Receiving objects: 100% (260/260), 40.78 KiB | 0 bytes/s, done.
Resolving deltas: 100% (123/123), done.
Checking connectivity... done.
nb-pheymann:tmp paul.heymann$ cd specdris
nb-pheymann:specdris paul.heymann$ ./project --install
install project
clean project
Entering directory `./src'
Leaving directory `./src'
test project
Type checking ./Specdris/TestUtil.idr
Type checking ../src/Specdris/Data/ConsoleColor.idr
Type checking ../src/Specdris/Data/SpecState.idr
Type checking ../src/Specdris/Data/SpecResult.idr
Type checking ../src/Specdris/Data/SpecInfo.idr
Type checking ../src/Specdris/Core.idr
Type checking ../src/Specdris/Expectations.idr
Type checking ../src/Specdris/Spec.idr
Type checking ./Specdris/OutputTest.idr
Type checking ./Specdris/ExpectationsTest.idr
Type checking ../src/Specdris/SpecIO.idr
Type checking ./Specdris/SpecIOTest.idr
Type checking ./Specdris/SpecTest.idr
Type checking /var/folders/5h/hb6px6zs3_n4wry170bn9fnrp21ctv/T/idris14587779232007237709.idr

  expectations:
  expectation_pending
     [] pending
  expectation_pendingWith
     [] pending: test
  expectation_shouldBe
  expectation_===
     [x] not equal
         actual:   1
         expected: 2
  expectation_shouldNotBe
  expectation_/==
     [x] equal
         actual:   1
         expected: 1
  expectation_sat
  expectation_!sat
     [x] doesn't satisfy predicate
         actual: 1

  spec:
  context 1
    context 1.1
      + context 1.1.1
         [x] not equal
             actual:   1
             expected: 2
    + context 1.2
       [x] doesn't satisfy predicate
           actual: "hello"
    + context 1.3
       [x] not equal
           actual:   1
           expected: 2
    + context 1.4
       [] pending: for some reason

  Failed: Total = 4, Failed = 3, Pending = 1

  spec-io:
  context 1
    context 1.1
      + context 1.1.1
         [x] not equal
             actual:   1
             expected: 2
    + context 1.2
       [x] doesn't satisfy predicate
           actual: "hello"
    + context 1.3
       [x] not equal
           actual:   1
           expected: 2
    + context 1.4
       [] pending: for some reason

  Failed: Total = 4, Failed = 3, Pending = 1
beforeAll
  context 1
    + context 1.1
afterAll

  Passed: Total = 1, Failed = 0, Pending = 0
  context 1
    + context 1.1
before
      => expectation
after

  Passed: Total = 1, Failed = 0, Pending = 0

  output:

  Failed: Total = 3, Failed = 2, Pending = 1
SUCCESSFUL
Entering directory `./src'
Leaving directory `./src'
Entering directory `./src'
Installing Specdris/Spec.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris
Installing Specdris/SpecIO.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris
Installing Specdris/Core.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris
Installing Specdris/Data/ConsoleColor.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris/Data
Installing Specdris/Expectations.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris
Installing Specdris/Data/SpecInfo.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris/Data
Installing Specdris/Data/SpecResult.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris/Data
Installing Specdris/Data/SpecState.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris/Specdris/Data
Installing 00specdris-idx.ibc to /usr/local/Cellar/idris/1.0/share/x86_64-osx-ghc-8.0.2/idris-1.0/libs/specdris
Leaving directory `./src'

from specdris.

Invisible-Rabbit-Hunter avatar Invisible-Rabbit-Hunter commented on June 17, 2024

Weird. It says to me The presented iPKG file does not have a '.ipkg' extension

from specdris.

pheymann avatar pheymann commented on June 17, 2024

Which version of idris do you use and on which OS do you work?

from specdris.

pheymann avatar pheymann commented on June 17, 2024

And is this the only error message or does Idris say something else?

from specdris.

Invisible-Rabbit-Hunter avatar Invisible-Rabbit-Hunter commented on June 17, 2024

OS: Fedora 26
Idris version: 1.0-git:05fbd119
The only message.

from specdris.

pheymann avatar pheymann commented on June 17, 2024

Found the problem: tag v1.0 does not have this check. But I fixed the file name so it should work now. So I don't get why you still see this problem, because this shouldn't fail any longer:

https://github.com/idris-lang/Idris-dev/blob/master/src/Idris/Package/Parser.hs#L64

from specdris.

pheymann avatar pheymann commented on June 17, 2024

Could you clone and install this project again, just to be sure that it isn't some weird problem in your current clone?

from specdris.

Invisible-Rabbit-Hunter avatar Invisible-Rabbit-Hunter commented on June 17, 2024

I don't. I cloned the repository before the change, noticed the problem, and fixed it. So I don't see the problem.

from specdris.

Related Issues (6)

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.