question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Be able to use the `stack` executable in path

See original GitHub issue

Hi,

In the same spirit as https://github.com/rikvdkleij/intellij-haskell/issues/485 could the intellij-haskell plugin use the stack executable in path? Or at least make it possible!

This is for the same reason of using Nix (in my case, we package a custom Stack executable where Nix options are all passed). Currently I have to configure an ugly path like /nix/store/g14h563bs6r1s9vrd1dgrald6pg2895q-stack/bin/stack, but this path may change whenever I change some configuration in my stack wrapper…

AFAICT this would be the last bit to have a better support for Nix with Intellij 😅

Cheers!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
rikvdkleijcommented, Jun 20, 2020

The only solution which i can implement is to create in Haskell Settings an flag which indicates to use the stack exe in path (with some validation). So this is a workaround. It will ignore the stack path in Haskell Stack SDK.

1reaction
sir4ur0ncommented, Jul 17, 2020

Seems to work fine, thank you 🙇

Read more comments on GitHub >

github_iconTop Results From Across the Web

Haskell Stack `exec` executable not found despite path being ...
stack -work/dist/x86_64-linux/Cabal-1.24.2.0/build/mytest-exe/mytest-exe runs the executable fine. Also I seemed to have no trouble with running 'stack exec ...
Read more >
User's guide (introductory) - The Haskell Tool Stack
stack exec works by providing the same reproducible environment that was used to build your project to the command that you are running....
Read more >
Specify executable path? - Google Groups
Is there a way to instruct stack on where to place the executable once it has been built? Currently I use: find ./.stack-work/install/x86_64-linux/...
Read more >
some better path approach for executables besides stack exec
I'll try to describe the issue clearly. stack install ghc-mod works to install ghc-mod system-wide, and as long as on path, it will...
Read more >
Change executable path of a program - Unix Stack Exchange
It's possible to set it back using an alias (e.g. alias zathura="/usr/bin/zathura" ), but I'd rather not do that unless that's exactly how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found