Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Marc Scholten
    @mpscholten
    there’s a known issue with the startPage routing on admin apps. When you add some other controller to the admin app it will work
    like /admin/Posts would work when there’s a PostsController in admin
    Adithya Kumar
    @adithyaov
    I see. It would be very helpful if that was mentioned in the wiki under troubleshooting.
    I'll create an issue regarding this for now. It might be helpful for others with the same problem.
    Marc Scholten
    @mpscholten
    just pushed a fix to master :)
    the fix was easier than adding the docs :)
    Adithya Kumar
    @adithyaov
    Awesome!
    Marc Scholten
    @mpscholten
    Adithya Kumar
    @adithyaov
    Looks like I'm using a pretty old version of IHP. Although it displays a warning message under the textbox, the schema designer does not error out when the column names are reserved keywords.
    Ok, I'm using the version currently at https://ihp.digitallyinduced.com/ihp-new.tar.gz
    Marc Scholten
    @mpscholten
    the ihp-new tool is independent of the current IHP version. You can find the current IHP version by looking in default.nix of your project at line 4
    there’s the commit hash of the IHP version
    Adithya Kumar
    @adithyaov
    Oh, I see. Yeah, looks like I'm using a commit that's a month old.
    Marc Scholten
    @mpscholten
    then you might need to do some more steps to update: check https://github.com/digitallyinduced/ihp/blob/master/UPGRADE.md for the details :)
    Adithya Kumar
    @adithyaov
    Thanks for the heads up!
    Adithya Kumar
    @adithyaov

    This is weird. I'm using the latest commit, and looks like this problem persists:

    Although it displays a warning message under the textbox, the schema designer does not error out when the column names are reserved keywords.

    Marc Scholten
    @mpscholten
    ok then that’s a bug
    Adithya Kumar
    @adithyaov
    Yes, it's a bug. isIllegalKeyword does not contain role, data etc.
    Looks like it only considers SQL key words.
    I can send a fix along with the _ changes.
    Adithya Kumar
    @adithyaov

    I need a little help here. My current workflow is as follows:

    I have a local version of ihp at ihp/ and am testing the changes on test-ihp/
    test-ihp/ was created using ihp-new.
    I've modified default.nix like so:

    let
        ihp = ../ihp/.;
        haskellEnv = import "${ihp}/NixSupport/default.nix" {
    ...

    The changes I made in ihp are not reflected in test-ihp.
    I might be doing something wrong.

    Please let me know the proper development workflow.

    Marc Scholten
    @mpscholten
    the ihp dir needs to be called IHP :)
    then it will work
    or wait
    the IHP dir should be part of the test-ihp dir
    so basically:
    ihp-new test-ihp
    cd test-ihp
    git clone git@github.com:digitallyinduced/ihp.git IHP
    then inside the default.nix set ihp = ./IHP;
    Adithya Kumar
    @adithyaov
    I'm a little curious as to why that would make a difference. It's just a path, right?
    Even while fetching it via git fetchGit. The package is located somewhere in the nix store I believe.
    Marc Scholten
    @mpscholten
    https://github.com/digitallyinduced/ihp/blob/master/lib/IHP/applicationGhciConfig#L5 there’s no technical reason for this, just a preference. We could also add a :set -iihp to the loading path
    Adithya Kumar
    @adithyaov

    I'm sorry, I'm still a little confused.
    The original code:

        ihp = builtins.fetchGit {
            url = "https://github.com/digitallyinduced/ihp.git";
            rev = "5fd20389b4da60cc40f6ccc1ad47934f0e3c95b0";
        };

    This would just unpack ihp somewhere inside /nix/store. IHP/ inside the working directory does not even come into play.

    Marc Scholten
    @mpscholten
    yes in the default.nix it only defines the ihp to load the import "${ihp}/NixSupport/default.nix“
    this basically only creates an environment with all dependencies for ihp
    then the line 5 in applicationGhciConfig ensures that the IHP directory is loaded when e.g. using ghci or the ./start script (the start script also reads the applicationGhciConfig)
    the applicationGhciConfig is loaded from the project’s .ghci file
    you could also don’t do any changes to the default.nix and just have a local IHP directory
    the changes to default.nix are only necessary when the NixSupport/default.nix file has changed
    Adithya Kumar
    @adithyaov
    I think I get an idea. I'll need to spend more time hacking to understand the project orchestration.
    I had to clear the browser data too.
    Adithya Kumar
    @adithyaov
    @mpscholten I sent a PR. Thank you for your patience.
    Marc Scholten
    @mpscholten
    perfect thanks
    Daniel Sokil
    @s0kil
    I'm having issues with the dev server, saving a file does not trigger re-build, I'm having to manually restart the server.
    Michael Fliegner
    @Kaeptenblaubaer
    Hi! I want to use a JSON-Editor i.e.
    https://github.com/josdejong/jsoneditor
    Any hints tthat might help with that?
    2 replies
    Marc Scholten
    @mpscholten
    @s0kil can you run with DEBUG=1 ./start and check the logs?
    Adithya Kumar
    @adithyaov

    Marc, I've looked at Pheonix recently and they have this concept of a live view.
    The idea is very neat and would be very helpful if IHP progressed in that direction.

    Is there any work going on regarding this? If so, could you please point me there?
    If not, maybe I can look into this once I understand IHP better.

    Daniel Sokil
    @s0kil
    Phoenix LiveView is bit more effecient than the current Auto Refresh implementation, LiveView sends only the updated data and patches each relavent DOM element, whilst Auto Reresh seems to send the entire HTML page and then diff the changes on the client using morphdom.js
    Adithya Kumar
    @adithyaov
    @s0kil Thanks for pointing me to it. Pretty cool!
    Daniel Sokil
    @s0kil

    In the database guide, there is an sqlQuery example:

    do
        result :: Project <- sqlQuery "SELECT * FROM projects WHERE id = ?" (Only id)

    Shoudn't the type be [Project] instead of Project?

    1 reply
    Marc Scholten
    @mpscholten
    @adithyaov besides AutoRefresh we also have this planned: https://gist.github.com/mpscholten/7558084941f3ebf6c1e6950e2db713c6