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

run-script Should Load direnv #1768

Closed
s0kil opened this issue Jul 22, 2023 · 5 comments
Closed

run-script Should Load direnv #1768

s0kil opened this issue Jul 22, 2023 · 5 comments

Comments

@s0kil
Copy link
Collaborator

s0kil commented Jul 22, 2023

Similar to what we did in start script, we should:

# Now we have to load the PATH variable from the .envrc cache
direnv allow
@s0kil
Copy link
Collaborator Author

s0kil commented Jul 22, 2023

This will avoid errors such as:

GHCi, version 9.4.2: https://www.haskell.org/ghc/  :? for help
cannot satisfy -package ihp
    (use -v for more information)
package flags have changed, resetting and loading new packages...
[ 1 of 98] Compiling Application.View.CustomCSSFramework ( Application/View/CustomCSSFramework.hs, interpreted )

Application/View/CustomCSSFramework.hs:3:1: error:
    Could not find module ‘IHP.FlashMessages.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
3 | import IHP.FlashMessages.Types
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:4:1: error:
    Could not find module ‘IHP.HSX.QQ’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | import IHP.HSX.QQ (hsx)
  | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:5:1: error:
    Could not find module ‘IHP.HSX.ToHtml’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import IHP.HSX.ToHtml ()
  | ^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:6:1: error:
    Could not find module ‘IHP.Prelude’
    Perhaps you meant GHC.Prelude (from ghc-9.4.2)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
6 | import IHP.Prelude
  | ^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:7:1: error:
    Could not find module ‘IHP.View.Classes’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
7 | import IHP.View.Classes
  | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:8:1: error:
    Could not find module ‘IHP.View.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
8 | import IHP.View.Types
  | ^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:9:1: error:
    Could not find module ‘Text.Blaze.Html5’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
9 | import qualified Text.Blaze.Html5 as Blaze
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:11:1: error:
    Could not find module ‘IHP.Breadcrumb.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
11 | import IHP.Breadcrumb.Types
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:12:1: error:
    Could not find module ‘IHP.ModelSupport’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
12 | import IHP.ModelSupport
   | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:13:1: error:
    Could not find module ‘IHP.Pagination.Helpers’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
13 | import IHP.Pagination.Helpers
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:14:1: error:
    Could not find module ‘IHP.Pagination.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
14 | import IHP.Pagination.Types
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:15:1: error:
    Could not find module ‘IHP.View.CSSFramework’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
15 | import IHP.View.CSSFramework
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 2 of 98] Compiling Generated.Enums  ( build/Generated/Enums.hs, interpreted )

build/Generated/Enums.hs:3:1: error:
    Could not find module ‘CorePrelude’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
3 | import CorePrelude
  | ^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:4:1: error:
    Could not find module ‘IHP.ModelSupport’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | import IHP.ModelSupport
  | ^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:5:1: error:
    Could not find module ‘Database.PostgreSQL.Simple’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import Database.PostgreSQL.Simple
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:6:1: error:
    Could not find module ‘Database.PostgreSQL.Simple.FromField’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
6 | import Database.PostgreSQL.Simple.FromField hiding (Field, name)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:7:1: error:
    Could not find module ‘Database.PostgreSQL.Simple.ToField’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
7 | import Database.PostgreSQL.Simple.ToField hiding (Field)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:8:1: error:
    Could not find module ‘IHP.Controller.Param’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
8 | import qualified IHP.Controller.Param
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:9:1: error:
    Could not find module ‘Data.Default’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
9 | import Data.Default
  | ^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:10:1: error:
    Could not find module ‘IHP.QueryBuilder’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
10 | import qualified IHP.QueryBuilder as QueryBuilder
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:11:1: error:
    Could not find module ‘Data.String.Conversions’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
11 | import qualified Data.String.Conversions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[21 of 98] Compiling Neteye.Devices.Vnish ( Neteye/Devices/Vnish.hs, interpreted )

Neteye/Devices/Vnish.hs:3:1: error:
    Could not find module ‘Data.Aeson’
    Perhaps you meant Data.Version (from base-4.17.0.0)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
3 | import Data.Aeson
  | ^^^^^^^^^^^^^^^^^

Neteye/Devices/Vnish.hs:5:1: error:
    Could not find module ‘IHP.Prelude’
    Perhaps you meant GHC.Prelude (from ghc-9.4.2)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import IHP.Prelude
  | ^^^^^^^^^^^^^^^^^^
[24 of 98] Compiling PduModels.OitApdu30c19200a3phase ( PduModels/OitApdu30c19200a3phase.hs, interpreted )

PduModels/OitApdu30c19200a3phase.hs:3:1: error:
    Could not find module ‘Data.Attoparsec.Text’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
3 | import Data.Attoparsec.Text hiding (Parser)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

PduModels/OitApdu30c19200a3phase.hs:4:1: error:
    Could not find module ‘Data.Attoparsec.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | import Data.Attoparsec.Types
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

PduModels/OitApdu30c19200a3phase.hs:5:1: error:
    Could not find module ‘Data.Either.Extra’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import Data.Either.Extra
  | ^^^^^^^^^^^^^^^^^^^^^^^^

PduModels/OitApdu30c19200a3phase.hs:6:1: error:
    Could not find module ‘IHP.Prelude’
    Perhaps you meant GHC.Prelude (from ghc-9.4.2)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
6 | import IHP.Prelude hiding (Parser)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failed, no modules loaded.

<no location info>: error:
    Could not find module ‘IHP.Prelude’
    Perhaps you meant GHC.Prelude (from ghc-9.4.2)
Loaded GHCi configuration from /home/danielsokil/Lab/Zetta-Pow/command/.ghci
IHP> cannot satisfy -package ihp
    (use -v for more information)
IHP> 
<no location info>: error:
    Could not find module ‘IHP.ScriptSupport’
    It is not a module in the current program, or in any known package.
IHP> 
<no location info>: error:
    Could not find module ‘IHP.ScriptSupport’
    It is not a module in the current program, or in any known package.
IHP> IHP> [ 1 of 24] Compiling Application.View.CustomCSSFramework ( Application/View/CustomCSSFramework.hs, interpreted )

Application/View/CustomCSSFramework.hs:3:1: error:
    Could not find module ‘IHP.FlashMessages.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
3 | import IHP.FlashMessages.Types
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:4:1: error:
    Could not find module ‘IHP.HSX.QQ’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | import IHP.HSX.QQ (hsx)
  | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:5:1: error:
    Could not find module ‘IHP.HSX.ToHtml’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import IHP.HSX.ToHtml ()
  | ^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:6:1: error:
    Could not find module ‘IHP.Prelude’
    Perhaps you meant GHC.Prelude (from ghc-9.4.2)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
6 | import IHP.Prelude
  | ^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:7:1: error:
    Could not find module ‘IHP.View.Classes’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
7 | import IHP.View.Classes
  | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:8:1: error:
    Could not find module ‘IHP.View.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
8 | import IHP.View.Types
  | ^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:9:1: error:
    Could not find module ‘Text.Blaze.Html5’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
9 | import qualified Text.Blaze.Html5 as Blaze
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:11:1: error:
    Could not find module ‘IHP.Breadcrumb.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
11 | import IHP.Breadcrumb.Types
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:12:1: error:
    Could not find module ‘IHP.ModelSupport’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
12 | import IHP.ModelSupport
   | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:13:1: error:
    Could not find module ‘IHP.Pagination.Helpers’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
13 | import IHP.Pagination.Helpers
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:14:1: error:
    Could not find module ‘IHP.Pagination.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
14 | import IHP.Pagination.Types
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:15:1: error:
    Could not find module ‘IHP.View.CSSFramework’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
15 | import IHP.View.CSSFramework
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 2 of 24] Compiling Generated.Enums  ( build/Generated/Enums.hs, interpreted )

build/Generated/Enums.hs:3:1: error:
    Could not find module ‘CorePrelude’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
3 | import CorePrelude
  | ^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:4:1: error:
    Could not find module ‘IHP.ModelSupport’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | import IHP.ModelSupport
  | ^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:5:1: error:
    Could not find module ‘Database.PostgreSQL.Simple’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import Database.PostgreSQL.Simple
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:6:1: error:
    Could not find module ‘Database.PostgreSQL.Simple.FromField’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
6 | import Database.PostgreSQL.Simple.FromField hiding (Field, name)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:7:1: error:
    Could not find module ‘Database.PostgreSQL.Simple.ToField’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
7 | import Database.PostgreSQL.Simple.ToField hiding (Field)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:8:1: error:
    Could not find module ‘IHP.Controller.Param’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
8 | import qualified IHP.Controller.Param
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:9:1: error:
    Could not find module ‘Data.Default’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
9 | import Data.Default
  | ^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:10:1: error:
    Could not find module ‘IHP.QueryBuilder’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
10 | import qualified IHP.QueryBuilder as QueryBuilder
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:11:1: error:
    Could not find module ‘Data.String.Conversions’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
11 | import qualified Data.String.Conversions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failed, no modules loaded.
IHP> [ 1 of 26] Compiling Application.View.CustomCSSFramework ( Application/View/CustomCSSFramework.hs, interpreted )

Application/View/CustomCSSFramework.hs:3:1: error:
    Could not find module ‘IHP.FlashMessages.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
3 | import IHP.FlashMessages.Types
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:4:1: error:
    Could not find module ‘IHP.HSX.QQ’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | import IHP.HSX.QQ (hsx)
  | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:5:1: error:
    Could not find module ‘IHP.HSX.ToHtml’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import IHP.HSX.ToHtml ()
  | ^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:6:1: error:
    Could not find module ‘IHP.Prelude’
    Perhaps you meant GHC.Prelude (from ghc-9.4.2)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
6 | import IHP.Prelude
  | ^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:7:1: error:
    Could not find module ‘IHP.View.Classes’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
7 | import IHP.View.Classes
  | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:8:1: error:
    Could not find module ‘IHP.View.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
8 | import IHP.View.Types
  | ^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:9:1: error:
    Could not find module ‘Text.Blaze.Html5’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
9 | import qualified Text.Blaze.Html5 as Blaze
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:11:1: error:
    Could not find module ‘IHP.Breadcrumb.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
11 | import IHP.Breadcrumb.Types
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:12:1: error:
    Could not find module ‘IHP.ModelSupport’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
12 | import IHP.ModelSupport
   | ^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:13:1: error:
    Could not find module ‘IHP.Pagination.Helpers’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
13 | import IHP.Pagination.Helpers
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:14:1: error:
    Could not find module ‘IHP.Pagination.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
14 | import IHP.Pagination.Types
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Application/View/CustomCSSFramework.hs:15:1: error:
    Could not find module ‘IHP.View.CSSFramework’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
15 | import IHP.View.CSSFramework
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 2 of 26] Compiling Generated.Enums  ( build/Generated/Enums.hs, interpreted )

build/Generated/Enums.hs:3:1: error:
    Could not find module ‘CorePrelude’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
3 | import CorePrelude
  | ^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:4:1: error:
    Could not find module ‘IHP.ModelSupport’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | import IHP.ModelSupport
  | ^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:5:1: error:
    Could not find module ‘Database.PostgreSQL.Simple’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
5 | import Database.PostgreSQL.Simple
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:6:1: error:
    Could not find module ‘Database.PostgreSQL.Simple.FromField’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
6 | import Database.PostgreSQL.Simple.FromField hiding (Field, name)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:7:1: error:
    Could not find module ‘Database.PostgreSQL.Simple.ToField’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
7 | import Database.PostgreSQL.Simple.ToField hiding (Field)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:8:1: error:
    Could not find module ‘IHP.Controller.Param’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
8 | import qualified IHP.Controller.Param
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:9:1: error:
    Could not find module ‘Data.Default’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
9 | import Data.Default
  | ^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:10:1: error:
    Could not find module ‘IHP.QueryBuilder’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
10 | import qualified IHP.QueryBuilder as QueryBuilder
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

build/Generated/Enums.hs:11:1: error:
    Could not find module ‘Data.String.Conversions’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
11 | import qualified Data.String.Conversions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failed, no modules loaded.
IHP> 
<no location info>: error:
    Could not find module ‘Application.Script.ImmersionCooledAssetsImport’
    It is not a module in the current program, or in any known package.
IHP> 
<interactive>:8:1: error:
    Not in scope: ‘IHP.ScriptSupport.runScript’
    NB: no module named ‘IHP.ScriptSupport’ is imported.

<interactive>:8:36: error:
    Not in scope: ‘Script.run’
    NB: no module named ‘Script’ is imported.
IHP> Leaving GHCi.

@mpscholten
Copy link
Member

Similar to what we did in start script, we should:

The start script and that behaviour actually has been removed with IHP 1.1

Is direnv correctly hooked into your shell?

@s0kil
Copy link
Collaborator Author

s0kil commented Jul 23, 2023

Yes, I have eval "$(direnv hook bash)" as the last line in my .bashrc file. However, when I open a new terminal, the .envrc is not loaded, I have to run direnv allow every time.

Is that the intended behavior?

@s0kil
Copy link
Collaborator Author

s0kil commented Jul 23, 2023

Ah, strange, this only happens when I open a terminal in VS Code, a regular terminal window does load the .envrc.

@s0kil
Copy link
Collaborator Author

s0kil commented Jul 23, 2023

This issue is related to vscode-direnv extension;

direnv/direnv-vscode#561

@s0kil s0kil closed this as completed Jul 23, 2023
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