Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numhask-bench: "Did not find executable at specified path" #132

Closed
Magalame opened this issue May 10, 2019 · 9 comments
Closed

numhask-bench: "Did not find executable at specified path" #132

Magalame opened this issue May 10, 2019 · 9 comments

Comments

@Magalame
Copy link
Contributor

Magalame commented May 10, 2019

Running stack build --exec "$(stack path --local-install-root)/bin/numhask-bench" --exec "$(stack path --local-bin)/pandoc -f markdown -i other/bench_.md -t markdown -o readme.md --filter pandoc-include --mathjax" --file-watch
It eventually fails with Did not find executable at specified path: /home/user/Projects/numhask/.stack-work/install/x86_64-linux/nightly-2019-03-15/8.6.4/bin/numhask-bench

@tonyday567
Copy link
Owner

The benchmarking relies on pandoc to produce the readme.md markdown file. For the latter part of the command to work, you'll need to:

stack install pandoc
stack install pandoc-include

if you dont have pandoc installed.

@tonyday567
Copy link
Owner

Fixed in master with 19af1bd

@Magalame
Copy link
Contributor Author

Seems like this might be more of an error with pandoc-include, but still:

--  While building package pandoc-include-0.0.1 using:
      /home/nouey/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/nouey/Projects/numhask/.stack-work/logs/pandoc-include-0.0.1.log

    Configuring pandoc-include-0.0.1...
    Warning: 'hs-source-dirs: src' directory does not exist.
    Preprocessing library for pandoc-include-0.0.1..
    Building library for pandoc-include-0.0.1..
    Preprocessing executable 'pandoc-include' for pandoc-include-0.0.1..
    Building executable 'pandoc-include' for pandoc-include-0.0.1..
    [1 of 1] Compiling Main             ( IncludeFilter.hs, .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/pandoc-include/pandoc-include-tmp/Main.o )
    
    /tmp/stack8336/pandoc-include-0.0.1/IncludeFilter.hs:71:53: error:
        • Couldn't match type ‘[Char]’ with ‘Data.Text.Internal.Text’
          Expected type: Data.Text.Internal.Text
            Actual type: String
        • In the second argument of ‘readMarkdown’, namely ‘content’
          In the second argument of ‘($!)’, namely ‘readMarkdown def content’
          In the expression: return $! readMarkdown def content
       |
    71 | ioReadMarkdown content = return $! readMarkdown def content
       |                                                     ^^^^^^^

@tonyday567
Copy link
Owner

dunno. but pandoc-include is for post-processing, so results will be in the other directory.

@tonyday567
Copy link
Owner

steindani/pandoc-include#15

This is the error. pandoc-include looks abandoned to me.

@Magalame
Copy link
Contributor Author

Hmm, so there is no way to fix it? Since the benches rely on pandoc-include?

@tonyday567
Copy link
Owner

Just have to bump stack back on the resolver, so something like:

stack install pandoc-install --resolver=lts-10.10

@tonyday567
Copy link
Owner

The better solution is to wrap pandoc and pandoc-include inside the existing report production code, but then the bug in pandoc-include hardens, as it's tough to patch an abandoned library.

@tonyday567
Copy link
Owner

Had to rewind a bit furher.

stack install pandoc-include --resolver=lts-8.9 worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants