vzarytovskii / haskell-dev-env

A Dockerfile for Haskell Development, and DevContainer for VSCode, for installing GHC HLS (Haskell Language Server) and the required plugins
MIT License
56 stars 17 forks source link

Cannot Cabal build a project #1

Closed MudroadWhite closed 3 years ago

MudroadWhite commented 3 years ago

Hi,

I used the script from your repository, with most haskell-related installation deleted in your Dockerfile. This is because I wish to build a Docker container of Haskell Language Server.

I tried running cabal build in VSCode, under the /workspaces/haskell-language-server folder, but it'll report that there's a permission denial error( openBinaryTempFileWithDefaultPermissions: permission denied (Permission denied) ). I searched on the internet and believe that it has something to do with the privilege of the user haskeller.

I'm not sure if you're familiar with this kind of the issue, or you can give any suggestions?

Regards

MudroadWhite commented 3 years ago

Hello,

After some own research on my repository, I have done several steps to avoid the issue:

  1. I remounted the local workspace to some place under the user's directory, that is ~/some-sub-dir/
  2. The previous built files was not cleaned yet and was built with another user. This has caused accessibility issue to the folders and the files, causing all kinds of unknown problems.

So far I can run cabal build very smooth, so I guess it's safe enough to close the issue by myself.