falstro / ghost-text-vim

Ghost Text for VIm
MIT License
52 stars 9 forks source link

Incompatible with Tcl on RHEL-7 #6

Open mcepl opened 7 years ago

mcepl commented 7 years ago
matej@mitmanek: ghost-text-vim (master)$ ./ghost-text-server.tcl 
bad option "decode": must be format or scan
    while executing
"binary decode hex [sha1::sha1 "$rq(Sec-WebSocket-Key:)$WSGUID"]"
    (procedure "accept" line 22)
    invoked from within
"accept sock6 127.0.0.1 58702"
^C
matej@mitmanek: ghost-text-vim (master)$ rpm -q tcl tcllib
tcl-8.5.13-8.el7.x86_64
tcllib-1.14-1.el7.noarch
matej@mitmanek: ghost-text-vim (master)$

That's on RHEL-7. I know that you want Tcl at least 8.6, but couldn't I ask for the mercy (and backport)?

falstro commented 7 years ago

I can have a look and see what I can do - I'm not sure exactly what the differences are, binary decode hex should be relatively easy to work around, but there might be other issues.

On Thu, Aug 31, 2017 at 2:35 PM, Matěj Cepl notifications@github.com wrote:

matej@mitmanek: ghost-text-vim (master)$ ./ghost-text-server.tcl bad option "decode": must be format or scan while executing "binary decode hex [sha1::sha1 "$rq(Sec-WebSocket-Key:)$WSGUID"]" (procedure "accept" line 22) invoked from within "accept sock6 127.0.0.1 58702" ^C matej@mitmanek: ghost-text-vim (master)$ rpm -q tcl tcllib tcl-8.5.13-8.el7.x86_64 tcllib-1.14-1.el7.noarch matej@mitmanek: ghost-text-vim (master)$

That's on RHEL-7. I know that you want Tcl at least 8.6, but couldn't I ask for the mercy (and backport)?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/falstro/ghost-text-vim/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AIVQ2Np5ibvigRV3p8_Nr2Re-yfXj9Oqks5sdqh4gaJpZM4PIw1a .

mcepl commented 7 years ago

I have meanwhile in desperation start to rewrite the script to Python, but boy is Tcl hard to read!

falstro commented 7 years ago

Ok, you're obviously free to do so. Let me know if I can help you with anything. Tcl is actually kind of a cool language (from a linguistics perspective) once you get to know it :)

On Aug 31, 2017 6:07 PM, "Matěj Cepl" notifications@github.com wrote:

I have meanwhile in desperation start to rewrite the script to Python https://github.com/mcepl/ghost-text-vim/tree/python, but boy is Tcl hard to read!

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/falstro/ghost-text-vim/issues/6#issuecomment-326344927, or mute the thread https://github.com/notifications/unsubscribe-auth/AIVQ2D7PNDdyTMe6NhVMTU42xydf6iQ2ks5sdtpVgaJpZM4PIw1a .

mcepl commented 7 years ago

OK, you're obviously free to do so.

I said in desperation. I would certainly prefer to be lazy and have it working without doing any work. The point was that I just cannot maintain a code in Tcl, so rewrite to Python seemed like more accessible option.