Comments (3)
The easiest way is to write a stack-hls.yaml
file that contains the options that you want and tell HLS to use that.
I can think of two solutions / workarounds:
- Provide the
STACK_YAML
variable to HLS only https://github.com/haskell/vscode-haskell?tab=readme-ov-file#set-additional-environment-variables-for-the-server - Provide the
stackYaml
key inhie.yaml
(https://hackage.haskell.org/package/hie-bios-0.14.0/#stack) and tell git to ignore changes, for example viagit update-index --assume-unchanged hie.yaml
.
I open a file in the editor and HLS starts building, but the build flags have changed so it starts over
I believe, this happens because HLS tells stack to use our custom compiler, which invalidates the caches. You can provide a different work-dir
, this should avoid cache invalidation: https://docs.haskellstack.org/en/stable/environment_variables/#stack_work
from haskell-language-server.
Ill consider this issue resolved, feel free to open a new issue, if you want to propose a new feature :)
from haskell-language-server.
@fendor ah great, this gives me something to work with! A bit annoying that I need to copy the whole stack.yaml and keep that up to date though 😢 ; but I'll give this a try 🙌🏼
from haskell-language-server.
Related Issues (20)
- Multiple Components option is not documented in the online manual
- Custom notifications for starting and finishing rules
- Don't use completions for cabal file codeactions
- Renaming a record data constructor also renames record fields HOT 1
- Is ghcide-bench supposed to be built and installed by default? HOT 8
- Goto definition of local library seems not working until I load the library once. HOT 5
- Invalid snippet syntax causes failures in neovim text editor HOT 1
- Reaching path length limit in Windows HOT 2
- `Could not load module` error in test suites with custom build type HOT 4
- HLS hangs on "Processing..." and does not finish even after hours of waiting HOT 4
- Move CircleCI to GitHub Actions HOT 1
- Inline function with guard only pick first guard case HOT 4
- GLIBC: __tunable_is_initialized, version GLIBC_PRIVATE HOT 12
- Period in comment has autocomplete options. HOT 3
- Action to export pattern (:+) produces malformed export list
- Initial load of multiple home units is slow with lazy component loading HOT 1
- GitHub CI is running out of space
- Enable eval plugin to run in its own terminal and enble terminal to be piped to a log file
- Code action: switch to record syntax
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 haskell-language-server.