Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Crash in ycmd on any autocomplete (python) #3

Closed
forivall opened this issue Apr 13, 2015 · 1 comment
Closed

Crash in ycmd on any autocomplete (python) #3

forivall opened this issue Apr 13, 2015 · 1 comment

Comments

@forivall
Copy link

The developer console shows the following

[YCM] Traceback (most recent call last):
  File "/mnt/Peng/Jordan/Code/git/ycmd/third_party/bottle/bottle.py", line 861, in _handle
    return route.call(**args)
  File "/mnt/Peng/Jordan/Code/git/ycmd/third_party/bottle/bottle.py", line 1734, in wrapper
    rv = callback(*a, **ka)
  File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/watchdog_plugin.py", line 100, in wrapper
    return callback( *args, **kwargs )
  File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/hmac_plugin.py", line 54, in wrapper
    body = callback( *args, **kwargs )
  File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/handlers.py", line 92, in GetCompletions
    request_data )
  File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/server_state.py", line 106, in ShouldUseFiletypeCompleter
    request_data ) )
  File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/completers/completer.py", line 116, in ShouldUseNow
    if not self.ShouldUseNowInner( request_data ):
  File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/completers/completer.py", line 138, in ShouldUseNowInner
    current_line = request_data[ 'line_value' ]
  File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/request_wrap.py", line 42, in __getitem__
    value = self._computed_key[ key ]()
  File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/request_wrap.py", line 66, in _CurrentLine
    return contents.splitlines()[ self._request[ 'line_num' ] - 1 ]
AttributeError: 'NoneType' object has no attribute 'splitlines'

I'm not sure if this is an issue with ycmd itself, but I figure i should put it here first.

  "you-complete-me":
    pythonExecutable: "/usr/bin/python2"
    ycmdPath: "/mnt/Peng/Jordan/Code/git/ycmd"
Qusic pushed a commit that referenced this issue Apr 19, 2015
@Qusic
Copy link
Owner

Qusic commented Apr 19, 2015

fixed

@Qusic Qusic closed this as completed Apr 19, 2015
@forivall forivall mentioned this issue Apr 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants