Title: hdevtools still does not play nice with stack · Issue #78 · hdevtools/hdevtools · GitHub
Open Graph Title: hdevtools still does not play nice with stack · Issue #78 · hdevtools/hdevtools
X Title: hdevtools still does not play nice with stack · Issue #78 · hdevtools/hdevtools
Description: Hi. I'm trying to use hdevtools on stack project with lts-9.1. Unfortunately, I can't install it with stack build, as it gives me this error: • Couldn't match type ‘ghc-boot-8.0.2@ghc-boot-8.0.2:GHC.PackageDb.ExposedModule GHC.UnitId GHC...
Open Graph Description: Hi. I'm trying to use hdevtools on stack project with lts-9.1. Unfortunately, I can't install it with stack build, as it gives me this error: • Couldn't match type ‘ghc-boot-8.0.2@ghc-boot-8.0.2:GH...
X Description: Hi. I'm trying to use hdevtools on stack project with lts-9.1. Unfortunately, I can't install it with stack build, as it gives me this error: • Couldn't match type ‘ghc-boot-8.0.2@ghc-b...
Opengraph URL: https://github.com/hdevtools/hdevtools/issues/78
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hdevtools still does not play nice with stack","articleBody":"Hi. I'm trying to use hdevtools on `stack` project with `lts-9.1`. Unfortunately, I can't install it with `stack build`, as it gives me this error:\r\n\r\n```src/FindSymbol.hs:62:35: error:\r\n • Couldn't match type ‘ghc-boot-8.0.2@ghc-boot-8.0.2:GHC.PackageDb.ExposedModule\r\n GHC.UnitId GHC.ModuleName’\r\n with ‘GHC.PackageDb.ExposedModule unitid0 GHC.ModuleName’\r\n NB: ‘GHC.PackageDb.ExposedModule’\r\n is defined in ‘GHC.PackageDb’\r\n in package ‘ghc-boot-8.0.2@ghc-boot-8.0.2-4rYN8vhmXwAFBTxhAB5vWV’\r\n ‘ghc-boot-8.0.2@ghc-boot-8.0.2:GHC.PackageDb.ExposedModule’\r\n is defined in ‘GHC.PackageDb’\r\n in package ‘ghc-boot-8.0.2@ghc-boot-8.0.2’\r\n Expected type: [GHC.PackageDb.ExposedModule unitid0 GHC.ModuleName]\r\n Actual type: [ghc-boot-8.0.2@ghc-boot-8.0.2:GHC.PackageDb.ExposedModule\r\n GHC.UnitId GHC.ModuleName]\r\n • In the second argument of ‘map’, namely\r\n ‘(concatMap exposedModules pkgConfigs)’\r\n In the second argument of ‘($)’, namely\r\n ‘map exposedName (concatMap exposedModules pkgConfigs)’\r\n In a stmt of a 'do' block:\r\n return $ map exposedName (concatMap exposedModules pkgConfigs)\r\n```\r\n\r\nAnd a bunch of warning about package versons as well:\r\n```Configuring hdevtools-0.1.5.0...\r\nWarning: This package indirectly depends on multiple versions of the same\r\npackage. This is highly likely to cause a compile failure.\r\npackage process-1.4.3.0 requires directory-1.3.0.0\r\npackage hpc-0.6.0.3 requires directory-1.3.0.0\r\npackage ghc-boot-8.0.2 requires directory-1.3.0.0\r\npackage ghc-8.0.2 requires directory-1.3.0.0\r\npackage process-1.4.3.0 requires directory-1.3.1.0\r\npackage hdevtools-0.1.5.0 requires directory-1.3.1.0\r\npackage ghc-boot-8.0.2 requires directory-1.3.1.0\r\npackage Cabal-1.24.2.0 requires directory-1.3.1.0\r\n...\r\n```\r\n\r\nI tried two different configurations: \r\n- Use system-wide `hdevtools` (I'm on Gentoo with ghc-8.0.2) with my `stack` project. When I try this, I get an error:\r\n```\r\nCabal file: Just \"/home/maks/Projects/***/***.cabal\"\r\nStack file: Just \"/home/maks/Projects/***/stack.yaml\"\r\nSocket file: \"/home/maks/Projects/***/.hdevtools.sock\"\r\ncan't load .so/.DLL for: /home/maks/IDE/stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/bytestring-0.10.8.1/libHSbytestring-0.10.8.1-ghc8.0.2.so (/home/maks/IDE/stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/lib/ghc-8.0.2/bytestring-0.10.8.1/libHSbytestring-0.10.8.1-ghc8.0.2.so: undefined symbol: base_GHCziIOziHandleziInternals_ioezuEOF2_closure)\r\n```\r\n- Build latest hdevtools from this repo with stack hackery (basically, I got configure command from `stack build -v` and changed `--dependency=ghc-boot=...` pointing to `ghc-boot` inside `.stack-work` to point to one in `~/.stack/...`). This way I could build `hdevtools` and run it with `stack exec`, but I get another error when I try to check a file:\r\n```\r\nCabal file: Just \"/home/maks/Projects/***/***.cabal\"\r\nStack file: Just \"/home/maks/Projects/***/stack.yaml\"\r\nSocket file: \"/home/maks/Projects/***/.hdevtools.sock\"\r\nCabal error: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with Cabal. Use the flag --package-db to specify a package database (it can be used multiple times).\r\n```\r\n\r\nCan something be done about it? I'd actually prefer if system-wide `hdevtools` (from portage) could work any stack-based project.","author":{"url":"https://github.com/maksbotan","@type":"Person","name":"maksbotan"},"datePublished":"2018-04-17T09:59:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/78/hdevtools/issues/78"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e392492d-1789-7749-1d52-8acc35f6d909 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D32:14F0F1:16D26AE:1D557C3:6992660D |
| html-safe-nonce | 2ec2e0eab28b00717891e7b704718f07db4adf578d68ebdf76639716e88e9d5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDMyOjE0RjBGMToxNkQyNkFFOjFENTU3QzM6Njk5MjY2MEQiLCJ2aXNpdG9yX2lkIjoiNDQwNjUyODA1NTM3NzU1MjkwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 743476ddc21822a02e510ef2e0e03bed694b4b6d6ecce363702b9c3fb44f4d84 |
| hovercard-subject-tag | issue:314989110 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hdevtools/hdevtools/78/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0eb10406f4e1ad94fe6627671b49f40ab05303d3fa940d7a690a345dcf711ac2/hdevtools/hdevtools/issues/78 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0eb10406f4e1ad94fe6627671b49f40ab05303d3fa940d7a690a345dcf711ac2/hdevtools/hdevtools/issues/78 |
| og:image:alt | Hi. I'm trying to use hdevtools on stack project with lts-9.1. Unfortunately, I can't install it with stack build, as it gives me this error: • Couldn't match type ‘ghc-boot-8.0.2@ghc-boot-8.0.2:GH... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maksbotan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/hdevtools/hdevtools git https://github.com/hdevtools/hdevtools.git |
| octolytics-dimension-user_id | 15984814 |
| octolytics-dimension-user_login | hdevtools |
| octolytics-dimension-repository_id | 46735551 |
| octolytics-dimension-repository_nwo | hdevtools/hdevtools |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 46735551 |
| octolytics-dimension-repository_network_root_nwo | hdevtools/hdevtools |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width