Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Rik
    @rikvdkleij
    I do not understand the last sentence
    Alexandr Ruchkin
    @mvoidex

    When hsdev looks for dependencies of projects, it gets list of 'depends:' from cabal file, but there are only names and constraints.
    For example, you have 'depends: my-package >= 0.1 && < 1.0'
    And you have three versions installed:
    my-package-0.1
    my-package-0.2
    my-package-0.5

    In this case hsdev will pick last one (even worse, it doesn't take constraints into account at all for now)
    But in some case it is incorrect
    And if you run 'cabal configure' on project, it will resolve to use my-package-0.2 for some reasons (maybe conflicts with other packages)

    So the right way is to run 'cabal configure' and then read file with configuration, which provide exact versions of packages project was configured to be built with
    Alexandr Ruchkin
    @mvoidex
    But i am not sure if it is really right way
    If you develop project and didn't restrict dependent package version, then you should expect to work with any version
    Rik
    @rikvdkleij
    Is this also problem for Stack projects? I did not notice this problem with Stack projects. I use the stack list-dependencies command
    Rik
    @rikvdkleij
    What is the difference between using socket connection and hsdev client commands?
    Alexandr Ruchkin
    @mvoidex
    No difference, hsdev client just send command and print response
    For backend using socket connection is preferred - no need to start process for each command. But if you experimenting by hand, it's easier to run hsdev client then to sent json-commands
    Alexandr Ruchkin
    @mvoidex
    @rikvdkleij hi!
    Rik
    @rikvdkleij
    Hallo
    Alexandr Ruchkin
    @mvoidex
    I've sent you private message about hsdev light
    Rik
    @rikvdkleij
    Ok, I will read
    Rik
    @rikvdkleij
    Hi @mvoidex
    Some other points what came to mine mind
    Alexandr Ruchkin
    @mvoidex
    Hi!
    gzll
    @gzll
    Hello
    I had spent 2 days for installing hsdev on windows 10, but failed
    need help.
    I used stack install hsdev and 'cabal install hsdev`, All failed.
    I install 'haskell platform' or only 'stack', neither can work.
    I had readed some blogs and stackflows about 'how to install hsdev', but them didn't work for me.
    Alexandr Ruchkin
    @mvoidex
    @gzll, hi!
    You can git clone https://github.com/mvoidex/hsdev and stack install from there
    It installs from master on lts-11.9. You can modify stack.yaml to use another lts. If you need help to install on another lts, please tell me.
    gzll
    @gzll
    @mvoidex Thanks a lot, I will try now.
    Rik
    @rikvdkleij

    Have this issue with my test project:

    rik@maxwell:~/projects/quicksort$ hsdev scan project --stack .
    {"notify":[{"status":"working","progress":null,"name":"global-db/package-db /home/rik/.stack/snapshots/x86_64-linux-tinfo6/lts-13.6/8.6.3/pkgdb/package-db /home/rik/projects/quicksort/.stack-work/install/x86_64-linux-tinfo6/lts-13.6/8.6.3/pkgdb","task":"scanning","type":"package-db-stack"}]}
    {"error":"other error","msg":"SQLite3 returned ErrorConstraint while attempting to perform step: UNIQUE constraint failed: modules.package_name, modules.package_version, modules.installed_name"}

    Have no idea what can cause this

    Same problem with a minimal prroject with stackage resolver 13.6 (GHC 8.6.3)

    hsdev version -c
    0.3.3.0 ghc-8.6.3

    After this error the hsdev process is 1,5GB larger and does not listen anymore to hsdev stop
    Have to kill it by hand

    Rik
    @rikvdkleij
    Hi Alexandr
    Sorry to bother you again but I wonder if you are willing to solve the GHC 8.6.3 issue?
    If not no problem, just want to know
    Alexandr Ruchkin
    @mvoidex

    @rikvdkleij

    Sorry to bother you again but I wonder if you are willing to solve the GHC 8.6.3 issue?

    Yes, but I don't know when I have enough time for this. As I mentioned, there's bug in GHC, so I can build hsdev only on linux.

    Rik
    @rikvdkleij
    As I mentioned, there's bug in GHC,
    That is really sad and I do not see any progress on solving this serious isse
    so I can build hsdev only on linux.
    Is it possible that you solve it on Linux?
    (Of course, when you have time)
    Alexandr Ruchkin
    @mvoidex
    I'll try :)
    Alexandr Ruchkin
    @mvoidex
    Rik
    @rikvdkleij
    @mvoidex Great, error is gone and it seems to work!
    Thanks!
    I wll now try with cabal new commands
    Rik
    @rikvdkleij
    hsdev does not seems to work with cabal new-build
    It looks that I'm a troublesome and high demanding user are :smile:
    Rik
    @rikvdkleij
    Can I set the package-db's manually?
    Going back to stack project
    Rik
    @rikvdkleij
    When I have a Lib and Test component and only Lib has NoImplicitPrelude, it is also active for test sources when check is called
    Alexandr Ruchkin
    @mvoidex

    Can I set the package-db's manually?

    You can scan package-dbs (see help of hsdev to find command); i can tell correct command later when i have some linux near

    Rik
    @rikvdkleij
    I only found command to get the package db's, not to set
    Rik
    @rikvdkleij
    O wait, I see
    Rik
    @rikvdkleij
    @mvoidex do you understand the issue with check, Lib and Test component?
    Rik
    @rikvdkleij
    @mvoidex looks the Windows issue is solved in GHC 8.6.4
    Pedro Furlanetto
    @pedrofurla
    Anybody from SublimeHaskell here?
    Alexandr Ruchkin
    @mvoidex
    I'm not monitoring chats, please mention me. I'll get email then