commonlisp-vscode icon indicating copy to clipboard operation
commonlisp-vscode copied to clipboard

"linedit" requires GCC, add MSVC support.

Open Borderliner opened this issue 5 years ago • 10 comments

Cannot install ailisp/linedit because it tries to compile its components using GCC, which is not present on Windows without the help of Cygwin and MSYS2. Please add support for MSVC.

Borderliner avatar Aug 11 '20 21:08 Borderliner

Hi Borderliner! I currently lacking a windows machine, but seems most of the open issues are people from Windows world, will take a look once I install one. If you're interested to take a look, the major problem is get GNU Readline compiled in MSVC, it could be not trivial as it depends on other gnu c libs.

ailisp avatar Aug 13 '20 04:08 ailisp

@ailisp Is it not possible to ship GNU Readline as a pre-compiled library alongside linedit? It seems that it's quite possible to compile GNU Readline in MinGW-w64.

There is also this, which is provides pre-compiled GNU Readline for Windows.

I also found this, which provides Visual Studio solution for compiling GNU Readline.

Borderliner avatar Aug 13 '20 13:08 Borderliner

👍 Will do

ailisp avatar Aug 17 '20 16:08 ailisp

Just an FYI: GNUReadline inclusion might pollute the whole package with GNU licensing. Are there any alternative libraries? Perhaps linedit, which has the advantage of being in Lisp too.

snunez1 avatar Aug 27 '20 08:08 snunez1

Thanks for the info! ailisp/linedit is a fork of sharplisper/linedit (only added some minor formatting tweaks), and sharplisper/linedit depends on cffi + GNU Readline, so it's not easy to skip unless there's a non GPL GNUReadline alternative, but i'm fine to have turn cl-lsp to GPL

ailisp avatar Aug 27 '20 16:08 ailisp

Ah I didn't notice you were using linedit.

One note, if you do include GNU Readline, please consider keeping cl-lsp non-GNU and allowing the infection to flow through via the GNU library. That way it's possible for someone to rewrite the readline bits if they want to. Many of us are prohibited from using copyleft libraries.

snunez1 avatar Aug 27 '20 23:08 snunez1

@ailisp Is it possible for you to swap out GNUReadline with non-GPL alternatives like:

Borderliner avatar Oct 19 '20 21:10 Borderliner

libedit is supposed to be a drop-in replacement. Nice find.

On Tue, Oct 20, 2020 at 5:54 AM Ryan Hajianpour [email protected] wrote:

@ailisp https://github.com/ailisp Is it possible for you to swap out GNUReadline with non-GPL alternatives like:

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ailisp/commonlisp-vscode/issues/5#issuecomment-712463735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3KJ4GHVFBA2KIB5XBDDSLSLSYSBANCNFSM4P3SKIBA .

snunez1 avatar Oct 19 '20 22:10 snunez1

wrap libedit with cffi and make cl-lsp depends on that, low priority but contributions is welcome. Also https://github.com/koji-kojiro/cl-repl/issues/50 is fixed, which makes cl-repl a better user experience alternative, i'm going to prioritize using it to replace cl-lsp

ailisp avatar Dec 05 '20 06:12 ailisp

Thank you. Unfortunately I'm not very experienced with CL. I would've helped otherwise.

Borderliner avatar Jan 08 '21 21:01 Borderliner