Giter Club home page Giter Club logo

Comments (8)

mawww avatar mawww commented on June 2, 2024

Hi, I do not use it anymore day to day, clang.kak is a little slower but more maintained. I tried and it does work here, you'll get ycmd output in the *ycmd-output* buffer, its likely that will give you an idea what is going on. In particular, YouCompleteMe wants a .ycm_extra_confg.py file.

from kak-ycmd.

casimir avatar casimir commented on June 2, 2024

Thanks for the buffer tip! After fixing some $PATH issues (gnu-coreutils need some setup to work seamlessly on OSX), I think all run correctly. I still have an error though, from *ycmd-output*:

<some timestamp> - INFO - Dropping request with bad HMAC.

Any insight?

from kak-ycmd.

mawww avatar mawww commented on June 2, 2024

anything in the *debug* buffer ?

from kak-ycmd.

casimir avatar casimir commented on June 2, 2024

Nothing useful. Could it be the version of OpenSSL posing problem?

from kak-ycmd.

casimir avatar casimir commented on June 2, 2024

Looks like it really is a HMAC issue. It is empty for me. I don't find where the variable is supposed to be initialised, there is only one occurence of ${kak_opt_ycmd_hmac_key}.

edit: The variable is initialised this is the base64 call that doesn't work.

## With some debug on line 81 I got the following log.

# echo "HMAC - ${kak_opt_ycmd_hmac_key}"
# key=$(echo -n "${kak_opt_ycmd_hmac_key}" | base64 -d -w0)
# echo "KEY - ${key}"

HMAC - Gb/54Rea9MqDp30ntqPDKQ==
base64: invalid input
KEY - 
base64: invalid input

Regarding version:

$ base64 --version
base64 (GNU coreutils) 8.24
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Simon Josefsson.

from kak-ycmd.

mawww avatar mawww commented on June 2, 2024

Hi, in %sh{ ... } blocks, $kak_opt_<option_name> is the syntax to access Kakoune option <option_name>, so here we access the ycmd_hmac_key option, which is declared line 5 and set line 47. You can display that option value with :echo %opt{ycmd_hmac_key}. the prompt wont provide option name completion for it because that is an hidden option, but the option should exist anyway.

from kak-ycmd.

casimir avatar casimir commented on June 2, 2024

I managed to get a key using openssl base64 instead of base64 but still ycmd considers it a bad HMAC, can't figure out why. Looks like this script isn't compatible with OSX 10.11. I will stop trying for now, thank you for your time.

from kak-ycmd.

mawww avatar mawww commented on June 2, 2024

Hi, Took a small look, I suspect for some reason base64 on your computer adds a final end of line in its output. Thats what the -w0 option is here to avoid, but I guess it just happened to work, I did not find a way to force openssl base64 not to do that, and tries with tr -d '\n' did not work well either.

from kak-ycmd.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.