Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    jhegedus42
    @jhegedus42
    @aloiscochard does codex generate tags also for the dependencies of the dependencies ?
    jhegedus42
    @jhegedus42
    say i have a cabal project A which depends on a cabal project B which depends on cabal project C
    so when a tag from project A brings me to a source file in project B and then look up the definition of an identifier in project B which was imported from project C, will it work ?
    @aloiscochard ^ ?
    it seems to be that it does not work
    at least now that i have tried codex on https://github.com/ghcjs/ghcjs-jquery
    then it does not work
    but i can look up the definition of JQuery for example
    in here
    Tobias Pflug
    @gilligan
    @aloiscochard Get in contact with me via mail or twitter asap please
    jhegedus42
    @jhegedus42
    any ideas about the dependencies of dependencies question ?
    @aloiscochard ?
    Aloïs Cochard
    @aloiscochard
    @jhegedus42 sorry for late reply! Yes it should work, but maybe the dependency in this is transitive
    By default codex does not handle transitive dependencies, but this could be added
    That have a massive impact though, so it should be behind a flag
    Please file an issue if you want to see this feature added, thank you!
    (I realize a message was missing... Before 'that have a...' I wrote "By default codex does not handle transitive dependencies, but this could be added")
    jhegedus42
    @jhegedus42
    thanks @aloiscochard , so basically if ProjectA depends on ProjectB which depends on ProjectC then if I generate tags for projectA then I cannot jump to definitions which are defined in ProjectC ? is that correct?
    so say, first I follow a tag from ProjectA to ProjectB
    then in ProjectB I would like to see the definition of something declared in ProjectC, will that work?
    if not, then is there a way to make that work?
    if i generate tags for ProjectB separately?
    jhegedus42
    @jhegedus42
    is there some workaround for this?
    does it help if i generate tags by hand?
    jhegedus42
    @jhegedus42
    @aloiscochard ok, i was playing around with codex a bit and it seems that indeed recursive tag generations are not supported
    jhegedus42
    @jhegedus42
    I've submitted an issue I hope it is useful aloiscochard/codex#41
    jhegedus42
    @jhegedus42
    @aloiscochard does codex support cabal packages that are installed from github sources ?
    it does not seem to work for ghcjs-jquery
    Aloïs Cochard
    @aloiscochard
    @jhegedus42 one work around, would be to add ProjectC as a dependency of ProjectA, and then re-run codex update
    @jhegedus42 codex does support source dependencies, as long as you add them in the sandbox
    so if you use a project which is not in cabal packages, but you add it using add-source in your sandbox, codex should deal with it correctly
    Thanks for the issue, it should not be that hard to had a flag to support transitive deps... not sure when I'll have time to work on it though.
    Let me know how it goes for ghcjs-jquery as source dependency
    jhegedus42
    @jhegedus42
    many thanks for the info @aloiscochard
    Rúnar
    @runarorama
    How do I use codex with Stack?
    like if I have multiple subprojects, each with their own cabal
    Aloïs Cochard
    @aloiscochard
    @runarorama hi Runar! It should support this usecase, by considering them "in the workspace", did you had specific issue?
    Aloïs Cochard
    @aloiscochard
    good to see you think about using codex at your new job though ;)
    Rúnar
    @runarorama
    @aloiscochard yeah, it just complains that there is no .cabal
    Which is correct. There isn't one in the root dir