by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jelle Hermsen
    @jellehermsen
    yeah, I feared as much
    alrighty, then I'll mainly use it for new projects right now, or projects with much smaller databases than the one I tested
    Marc Scholten
    @mpscholten
    a long while ago we still had a seperate Schema.hs which allowed this kind of thing. We removed it to simplify :)
    Jelle Hermsen
    @jellehermsen
    yeah, makes sense :-)
    Marc Scholten
    @mpscholten
    working on a new fresh project works best
    Christiaan
    @christiaan-janssen
    What version of GHC is used in IHP?
    Christiaan
    @christiaan-janssen
    hmm, then why does language server comlain it cant find a matching installation
    Marc Scholten
    @mpscholten
    can you quickly share the specific error message? :)
    Christiaan
    @christiaan-janssen
    Mismatch GHC versions: GHC session is No System GHC Found, HIE is 8.8.3 You may want to use hie-wrapper
    Marc Scholten
    @mpscholten
    What command is causing this? Are you using ./start? Can you quickly run direnv status and post the result? :)
    Christiaan
    @christiaan-janssen
    I get the messeage when I open vs code
    direnv exec path /nix/store/j0ih41ykaq2xgk41cgxyichmkq6g0nhq-direnv-2.21.3/bin/direnv
    DIRENV_CONFIG /home/christiaan/.config/direnv
    bash_path /nix/store/g9dkn6v4zz0wa71r5c2clsdw0ar53nxp-bash-4.4-p23/bin/bash
    disable_stdin false
    warn_timeout 5s
    whitelist.prefix []
    whitelist.exact map[]
    Loaded RC path /home/christiaan/projects/ihp/blog/.envrc
    Loaded watch: ".envrc" - 2020-06-24T08:13:19+02:00
    Loaded watch: "../../../.local/share/direnv/allow/cc524abb08fa3dbf19a3567ef598af1a2b4f5d5f3f921198171c3daaf5010f99" - 2020-06-24T08:13:19+02:00
    Loaded RC allowed false
    Loaded RC allowPath 
    Found RC path /home/christiaan/projects/ihp/blog/.envrc
    Found watch: ".envrc" - 2020-06-24T08:13:19+02:00
    Found watch: "../../../.local/share/direnv/allow/cc524abb08fa3dbf19a3567ef598af1a2b4f5d5f3f921198171c3daaf5010f99" - 2020-06-24T08:13:19+02:00
    Found RC allowed true
    Found RC allowPath /home/christiaan/.local/share/direnv/allow/cc524abb08fa3dbf19a3567ef598af1a2b4f5d5f3f921198171c3daaf5010f99
    Marc Scholten
    @mpscholten
    I think for vscode you might need to install a plugin like https://github.com/rubymaniac/vscode-direnv so that it’s loading the .envrc file
    Christiaan
    @christiaan-janssen
    yes, that did the trick. Thanks!
    Marc Scholten
    @mpscholten
    Perfect :)
    I added a note about this to the Recipes section of the docs: digitallyinduced/ihp#155
    Marc Scholten
    @mpscholten
    image.png
    We have over 400 stars already. Really cool :rocket:
    matrixbot
    @matrixbot
    @simonmic:matrix.org Marc Scholten (Gitter):
    @simonmic:matrix.org https://stars.hledger.org gives a url handy for watching your climb up the haskell charts :)
    Marc Scholten
    @mpscholten
    nice :) thanks for sharing
    20 pages remaining ;) we’ll get there
    matrixbot
    @matrixbot
    @simonmic:matrix.org oh wow.. shell check has unseated pandoc, after a very long reign
    @simonmic:matrix.org pretty sure IHP can make it to top 5
    Marc Scholten
    @mpscholten
    let’s do it :rocket:
    SnowLiang
    @OhCoder
    Hi, I want to ask a question, hsx support export or import components?
    Marc Scholten
    @mpscholten
    hey, do you have an example of that?
    SnowLiang
    @OhCoder

    just like jsx import components.

    Example :
    import Modal from xxx;
    Import Win from yyy;

    Or, how can I reuse ui module?

    Marc Scholten
    @mpscholten
    ok thanks got it :) You can just use normal haskell functions for this. Then you can just import the module defining that function
    https://github.com/digitallyinduced/ihp/blob/master/IHP/IDE/SchemaDesigner/View/Enums/Edit.hs#L21 <- e.g. here. The renderObjectSelector is a component that displays the table list in the Schema Designer
    it’s defined in the Layout.hs which is imported
    SnowLiang
    @OhCoder
    Thanks! Cool! 👍
    daniel wehner
    @dawehner_gitlab
    Hi! I've started to try out IHP the first time. What a great experience so far
    daniel wehner
    @dawehner_gitlab

    I tried out the script functionality, but sadly no matter what I do it looks like it cannot find my script file: ```./Application/Script/ExtractWastecollection.hs
    GHCi, version 8.8.3: https://www.haskell.org/ghc/ :? for help
    Loaded GHCi configuration from /Users/dawehner/Documents/Projects/learning/ihp/kr/.ghci
    Prelude> package flags have changed, resetting and loading new packages...
    package flags have changed, resetting and loading new packages...
    Prelude> Prelude IHP.ScriptSupport> Prelude IHP.ScriptSupport>

    <no location info>: error:
    Could not find module ‘Application.Script.ExtractWastecollection’
    It is not a module in the current program, or in any known package.
    Prelude IHP.ScriptSupport>

    <interactive>:5:29: error:
    Not in scope: ‘Script.run’
    No module named ‘Script’ is imported.
    Prelude IHP.ScriptSupport> Leaving GHCi.```

    2 replies
    Steven Benjamin
    @stevenbenjamin
    Hey, IHP looks really interesting. Running into a bug getting started (on mac), not too sure where to go from here -
    Get to the part in the hello blog demo where you're running 'make psql' and my makefile fails - looks like it's looking for the command "RunDevServer" which I don't seem to have, can't seem to find the "Makefile.dist" that is supposed to get included.
    2 replies
    matrixbot
    @matrixbot
    @simonmic:matrix.org Steven Benjamin (Gitter): doesn’t ./start build that ?
    Steven Benjamin
    @stevenbenjamin

    Looking into this, I find this very confusing (confession, also first time w/nix, so not efficiently digging into thecorrect paths and such). I find that ./start now gives me:

    'error: file '/workdir/ihp-example/blog/build/db/.s.PGSQL.5432' has an unsupported type
    direnv: loading ~/work/ihp-example/blog/.envrc
    ./start: line 17: RunDevServer: command not found

    which I find very confusing as I was able to get this far by running start in the first place?

    1 reply
    ah - appears to be environment setting - the start script calls "bash" but I'm running zsh, so there are apparently differences in how I've set those up. i.e. if I run "start" I'm pulled into bash which has the nix path reference to RunDevServer but in a plain zsh shell that command doesn't exist.
    1 reply
    This message was deleted
    Marc Scholten
    @mpscholten
    We now have a GitHub Projects Board to keep track of all the things for the next release: https://github.com/digitallyinduced/ihp/projects/1 :)
    SnowLiang
    @OhCoder
    👍
    Paul Kothmair
    @pkothmair
    Hey, Im trying to add ImageMagick as described in the docs, but when I run make I get these errors
    $ make
    usage: dirname path
    Makefile:7: /../lib/IHP/Makefile.dist: No such file or directory
    make: * No rule to make target `/../lib/IHP/Makefile.dist'. Stop.
    Can someone help me out?
    Marc Scholten
    @mpscholten
    try to nix-shell --run 'make build/ihp-lib'
    does that work?
    Paul Kothmair
    @pkothmair
    Yes thank you 🙏
    Marc Scholten
    @mpscholten
    In case someone wants some cool IHP stickers, let me know :)