Open Dsm0 opened 2 years ago
Update:
I fixed the #include <ncursesw/ncurses.h>
error by installing ncurses5-compat-libs
, but another issue persists.
Here's the output for stack build
:
ncurses > configure
ncurses > Configuring ncurses-0.2.16...
ncurses > build
ncurses > Preprocessing library for ncurses-0.2.16..
ncurses > c2hs: C header contains errors:
ncurses >
ncurses > .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0/build/UI/NCurses.i:1: (colu
mn 1) [ERROR] >>> Lexical error !
ncurses > The character '#' does not fit here.
ncurses >
Progress 1/2
-- While building package ncurses-0.2.16 (scroll up to its section to see the error) using
:
/home/will/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.0.1.0_g
hc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0 build --ghc-options
" -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
A discussion I found alleges the problem is that the library c2hs uses to preprocess doesn't support some newer language features. It looks like all this stems from the use of haskell's ncurses
lib, which was last updated in 2017.
I'm wondering if it might be easier in the long run to switch to a different ncurses
library. I'll continue investigating this issue and the feasibility of changing ncurses
libs.
Thanks for looking into this!
quick update: looked into it a bit. The best, actively maintained tui library is brick. But brick runs on top of vty, which (to my knowledge) currently [doesn't have windows compatibility](doesn't have windows compatibility). It seems a bit silly to transfer to another library and gut most (if not all) of the editor code just to support arch instead of windows. I feel like something should be done to ensure consistent linux compatibility, but I'm not sure what. I'll look into the ncurses library itself and see if there's a fix. This seems like a simpler short-term fix, as the library is relatively small.
TLDR: getting
error on manjaro because ncurses has a different path name on arch-linux.
On a fresh clone of the repo, I get a version error:
If
tidal-1.7.8
is added toextra-deps
, it then asks forIf that gets added, I get
which seems to be the core issue.
It seems that [others have encountered this path issue as well](others have encountered it as well).
I'm sure I could hack something together that gets it to build, but I bet there's a better way to fix the issue. Any ideas?