You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.
I've been using YouCompleteMe on vim for years. This is probably an easy fix but I had zero luck finding anything relevant on Google and I'm asking on here as a last resort, so thanks in advance for any help!
I'm using the same ycmd install I use for vim and testing on the same file in atom and vim, called menuview.ts. Relevant part:
In vim, if I run :YcmdCompleter GetType on this.items, I get back (property) MenuItems.items: any[]. Awesome.
I have my you-complete-me packages settings pointing at the same python and folder that vim uses. In Enabled Filetypes I have c, cpp, objc, objcpp, js, py, ts (I've also tried typescript here). I see YouCompleteMe working, but when I try to GetType on the same line I get this error:
No semantic completer exists for filetypes: ['ts']
Traceback (most recent call last):
File "/Users/username/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 862, in _handle
return route.call(**args)
File "/Users/username/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 1740, in wrapper
rv = callback(*a, **ka)
File "/Users/username/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/watchdog_plugin.py", line 108, in wrapper
return callback( *args, **kwargs )
File "/Users/username/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/hmac_plugin.py", line 70, in wrapper
body = callback( *args, **kwargs )
File "/Users/username/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/handlers.py", line 81, in RunCompleterCommand
completer = _GetCompleterForRequestData( request_data )
File "/Users/username/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/handlers.py", line 285, in _GetCompleterForRequestData
return _server_state.GetFiletypeCompleter( request_data[ 'filetypes' ] )
File "/Users/username/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
current_filetypes ) )
ValueError: No semantic completer exists for filetypes: ['ts']
At the moment I'm befuddled. Thanks again for any help!
The text was updated successfully, but these errors were encountered:
The name of file types can be different between ycmd and atom. So there is a function used for converting, for example, js and jsx to javascript. It is likely that ts has a different name in ycmd. You can try modifying that function and see if it works. Also sending a PR is welcome.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've been using YouCompleteMe on vim for years. This is probably an easy fix but I had zero luck finding anything relevant on Google and I'm asking on here as a last resort, so thanks in advance for any help!
I'm using the same ycmd install I use for vim and testing on the same file in atom and vim, called menuview.ts. Relevant part:
In vim, if I run
:YcmdCompleter GetType
onthis.items
, I get back(property) MenuItems.items: any[]
. Awesome.I have my you-complete-me packages settings pointing at the same python and folder that vim uses. In Enabled Filetypes I have
c, cpp, objc, objcpp, js, py, ts
(I've also triedtypescript
here). I see YouCompleteMe working, but when I try to GetType on the same line I get this error:At the moment I'm befuddled. Thanks again for any help!
The text was updated successfully, but these errors were encountered: