Comments (7)
No, there isn't yet. This requires deeper changes to Flycheck, see flycheck/flycheck#813. It'll come, some day, but not any time soon. It's a larger and deeper change, it requires careful testing, and that takes time that I don't have currently.
from flycheck-haskell.
I'm closing this issue, please subscribe to flycheck/flycheck#813 to keep track of this. Thank you for your feedback.
from flycheck-haskell.
The Flycheck change seems to have happened, but this still doesn't work for me.
from flycheck-haskell.
@XenoG Can you provide a reproducible test case?
from flycheck-haskell.
@sergv, clone this repository in Spacemacs with the haskell
and syntax-checking
layers and then open this file. You should see this error near embedFile
:
109 12 error • Exception when trying to run compile-time code:
config/config.yml: openBinaryFile: does not exist (No such file or directory)
Code: embedFile "config/config.yml"
• In the untyped splice: $(embedFile "config/config.yml") (haskell-stack-ghc)
from flycheck-haskell.
@XenoG I have reproduced the problem and I think I know what's causing the issue. The issue with current directory was resolved and now ghc is being executed from the directory that contains stack.yaml
file, which in this case in the root of the project. However, file path is specified relative to root of subproject, thus the does not exist
error. However, I cannot think from the top of my head of any reasonable strategy to deal with this issue...
from flycheck-haskell.
Great, if the working directory is that one where the stack.yaml file is, I know exactly what I can do to patch the problem in my code.
from flycheck-haskell.
Related Issues (20)
- flycheck-disable-checked not disabling haskell-stack-ghci HOT 6
- `flycheck-haskell-setup` signals error on Windows HOT 4
- Support for Haskell scripts made with Stack HOT 1
- Using flycheck in a docker-based stack project? HOT 1
- Bug in get-cabal-configuration.hs HOT 2
- call to stack / get-cabal-configuration delays editing file HOT 2
- IO mzero error when reading cabal configuration HOT 2
- cabal new-style builds HOT 1
- running hlint when installed using --copy-compiler-bins HOT 2
- Module ‘Distribution.PackageDescription.Parsec’ does not export ‘readGenericPackageDescription’
- Very bad performance HOT 4
- no errors HOT 7
- Paths_* modules cannot be found HOT 11
- Support hpack files directly HOT 3
- Flycheck with nix: Could not find module HOT 4
- Flycheck-haskell hangs indefinitely on NixOS HOT 6
- weird output from haskell-hlint checker HOT 2
- Support for cabal.project? HOT 1
- flycheck-haskell is very slow when stack.yaml is not pressent HOT 10
- Reference to Distribution.Parsec.Common needs to be updated for Cabal-3.0.0.0 HOT 1
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 flycheck-haskell.