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

Can't run kitten outside of source directory #207

Open
antoyo opened this issue Jun 25, 2018 · 2 comments
Open

Can't run kitten outside of source directory #207

antoyo opened this issue Jun 25, 2018 · 2 comments

Comments

@antoyo
Copy link

antoyo commented Jun 25, 2018

Hi.
I get the following error when trying to run kitten outside of the source directory:

kitten: common.ktn: openBinaryFile: does not exist (No such file or directory)

(It works fine when running from the source directory.)
I followed the instruction from here for building and installation.
Thanks to fix this issue.

@evincarofautumn
Copy link
Owner

evincarofautumn commented Jun 25, 2018

I’ve added a note to the installation instructions:

Currently, you will also need to manually copy the standard library, referred to as the common vocabulary, common.ktn, to the same location.

This is due to a deficiency in Stack’s support of Cabal’s data-files feature, where if you install data files (such as common.ktn) with stack install, they’ll have the wrong path prefix: it searches for them in the build directory instead of the install location. So I haven’t been using data-files as a result.

I’ll see if I can add support for this with Cabal builds and add instructions for installing using Cabal, although ideally we’d be able to do everything through just Stack. If I can’t get that to work, I’ll just add a Makefile with a make install target.

@evincarofautumn
Copy link
Owner

evincarofautumn commented Jun 25, 2018

This should be fixed in 4712cfe and I will update the instructions in the book as well. Please confirm that this works for you so I can close this.

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