diagrams / diagrams-pandoc

A pandoc filter to express diagrams inline using the haskell EDSL diagrams.
BSD 3-Clause "New" or "Revised" License
37 stars 9 forks source link

Error When Running Tests #14

Closed theNerd247 closed 1 year ago

theNerd247 commented 7 years ago

When attempting to install via stack I get:

$ stack install diagrams-pandoc
Run from outside a project, using implicit global project config
Using resolver: lts-7.1 from implicit global project's config file: /home/noah/.stack/global-project/stack.yaml

While constructing the build plan, the following exceptions were encountered:

In the dependencies for diagrams-pandoc-0.3:
    base-4.9.0.0 must match >=4.6 && <4.9 (latest applicable is 4.8.2.0)

Plan construction failed.

I assumed this was because my global system is using lts-7.1 and the master branch is using lts-6.27?

So I attempted to build from source and install using (633e98477d32c9b5ea2634d722438b8f8f49b10f - the current master branch). The build and install are successful, however, when attempting to run the tests (or run pandoc on my own documents) I get the following:

$ ./tests.sh 
diagrams-pandoc: Error in $: expected product (:*:), encountered Object
pandoc: Error running filter diagrams-pandoc
Filter returned error status 1
diagrams-pandoc: Error in $: expected product (:*:), encountered Object
pandoc: Error running filter diagrams-pandoc
Filter returned error status 1
diagrams-pandoc: Error in $: expected product (:*:), encountered Object
pandoc: Error running filter diagrams-pandoc
Filter returned error status 1
diagrams-pandoc: Error in $: expected product (:*:), encountered Object
pandoc: Error in $: not enough input
CallStack (from HasCallStack):
  error, called at src/Text/Pandoc/Error.hs:55:28 in pandoc-1.19.1-HDh8ZKvpT93Gt9RE90RMCo:Text.Pandoc.Error

Any ideas of what I can do?

byorgey commented 7 years ago

Hi, thanks for the report. Unfortunately I am really not sure what that error means, I have never seen that before. I don't know much at all about diagrams-pandoc. @bergey is the one who developed most of it but I haven't seen him around here in a while. @fryguybob , do you have any ideas?

theNerd247 commented 7 years ago

Ok. I'm noticing that the package versioning on stack is out of date; along with the versioning of the other diagrams libs (such as diagrams-pgf which doesn't even exist on stack). Do you know if there's a specific setup for those using stack to install the diagrams set of binaries? Essentially I'm thinking the issue could be that compatible versions aren't playing nice with each other on my system.

ozkutuk commented 1 year ago

The test files and the associated shell scripts are replaced by a proper test suite in #22. Please open a new issue if the problem persists with the new test suite.