Comments (4)
@andrewufrank hi, thanks for the bug report, although the workaround provided by @fendor would make it work, it should work out-of-the-box too
could you paste the hie.yaml
generated by gen-hie
and the .cabal
file?
From the logs:
- it tries to load
/home/frank/Workspace11/uniformBase/uniformSources/uniform-algebras/app/Main.hs
- but the hie.yaml does not have the prefix for the executable only for the lib:
src\
So if the .cabal
file has an excutable stanza, this would be a implicit-hie bug
from implicit-hie.
Not knowing anything about this particular issue of implicit-hie, but there is also cabal-hie
which generates a hie.yaml
based on the generated plan.json
(in other words, you need to call cabal build
before cabal-hie
works).
Additionally, if you use cabal 3.4
you don't need a generated hie.yaml
as cabal is smart enough to figure it out on its own.
It is enough to have a hie.yaml
:
cradle:
cabal:
from implicit-hie.
@jneira: I have to check later (at the moment there is no executable).
from implicit-hie.
@fendor: thank you for the clarification. I was not aware that I could use cabal-hie - could you see that documentation could be improved? I am grateful that it is automatic and a minimal cradle is all what is needed. Now I can start HLS without getting error message about no prefix matches
. I hope it works as intended now! Thank you for help!
from implicit-hie.
Related Issues (20)
- stack cradle does not discover .cabal files if they are deeper than 1 subdirectory HOT 12
- Empty `other-modules` leads to wrong output HOT 3
- Support import-dirs under Cabal flags
- Issues with cabal.project pointing to current directory
- Where does `gen-hie` come from HOT 1
- Confusing parsing behaviour when a list is the last thing in the .cabal file
- Incorrect parsing of freeform fields HOT 1
- Implicit hie fails to generate the main lib component due to package description
- Modules are sometimes listed explicitly for some reason HOT 4
- Don't generate a Cradle based on .cabal file if cabal version >= 3.4
- Package name not picked up HOT 3
- implicit-hie doesn't recognize foreign-library sections in cabal HOT 1
- Support both --stack and --cabal at the same time HOT 4
- Handle local tarballs in `cabal.project`
- Operate on cabal project files not called cabal.project HOT 2
- 0.1.3.0 seems to generate empty `hie.yaml` files for cabal projects HOT 15
- `implicit-hie-cradle` mis-detecting cabal projects as stack projects HOT 1
- Create a subcommand to gen a `hie.yaml` multi cradle to ignore `Setup.hs` to avoid haskell-language-server#3348 HOT 1
- include `gen-hie` binaries with releases? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from implicit-hie.