Package: ycmd
Version: 0+20181101+git600f54d-0.1+b2
Severity: normal
Tags: upstream

Dear Maintainer,

I think that the bug should be filled in ycmd, but I found the bug using vim-
youcompleteme.

While trying to use vim-youcompleteme for Node.js code completion it didn't
work. For example, doing:


import * as os from 'os';

os.


and trying to autocomplete os. is not possible.

After reading the youcompleteme/ycmd source code and the debian installation
files, I've found that ycmd uses tsserver (3.3.3333) for code completion.
Currently in debian buster that version is packaged as node-typescript. I think
that the node-typescript should be a dependency and not recommended for ycmd.
Afterwards in order for ycmd to use the tsserver, I propose to add a tsserver
folder to /usr/lib/ycmd/thirdparty/tsserver with folders bin, etc and lib with
the corresponding links to the node-typescript files (replicate the usage of
youcompleteme, but using symlinks to the node-typescript files). That way
ycm_extra_conf.py from ycmd will be able to find the tsserver.
Finally the file
/usr/lib/ycmd/ycmd/completers/typescript/typescript_completer.py in line 208
contains an error. Instead of self._tsserver_command it should be
self._tsserver_executable.

I'm not able to perform the changes because I don't have the know how, but I
tried them and after the changes it worked for me. In my case instead of using
the node-typescript, I copied the tsserver in the third_party folder directly.



PD: Considering this changes the vim-youcompleteme installation for the user
space (using vim-addons) should add a symlink to the ycm_extra_conf.py inside
~/.vim/.ycm_extra_conf.py.



-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ycmd depends on:
ii  libboost-filesystem1.67.0  1.67.0-13
ii  libboost-regex1.67.0       1.67.0-13
ii  libboost-system1.67.0      1.67.0-13
ii  libc6                      2.28-10
ii  libclang1-7                1:7.0.1-8
ii  libgcc1                    1:8.3.0-6
ii  libpython3.7               3.7.3-2
ii  libstdc++6                 8.3.0-6
ii  python3                    3.7.3-1
ii  python3-bottle             0.12.15-2
ii  python3-frozendict         1.2-1
ii  python3-future             0.16.0-1
ii  python3-jedi               0.13.2-1
ii  python3-requests           2.21.0-1
ii  python3-waitress           1.2.0~b2-2

Versions of packages ycmd recommends:
ii  libclang-common-7-dev  1:7.0.1-8
ii  node-typescript        3.3.3333-1
ii  vim-youcompleteme      0+20190211+gitcbaf813-0.1

ycmd suggests no packages.

-- no debconf information

Reply via email to