Closed jvillasante closed 6 years ago
It seems that ycmd is trying to parse system files as can be seen in this extract of the ycmd logs
(((kind . "ERROR")
(text . "use of undeclared identifier 'wcschr'")
(ranges)
(location
(filepath . "/usr/local/opt/llvm/include/c++/v1/wchar.h")
(column_num . 77)
(line_num . 137))
(location_extent
(start
(filepath . "/usr/local/opt/llvm/include/c++/v1/wchar.h")
(column_num . 77)
(line_num . 137))
(end
(filepath . "/usr/local/opt/llvm/include/c++/v1/wchar.h")
(column_num . 83)
(line_num . 137)))
(fixit_available . :json-false))
Is there a way to overcome this?
Changing .ycm_extra_config.py
to this .ycm_extra_config file solves the issue. This one can be closed.
@jvillasante Is this something that can be solved on spacemacs level? If not then this sure can be closed.
No, there's nothing that can be done on spacemacs level. I'm closing this.
Changing
.ycm_extra_config.py
to this .ycm_extra_config file solves the issue. This one can be closed.Changing
.ycm_extra_config.py
to this .ycm_extra_config file solves the issue. This one can be closed.
if you use python 3 , please replace ur
to r
, and add decode()
to output.
Changing
.ycm_extra_config.py
to this .ycm_extra_config file solves the issue. This one can be closed.
With the current ycm version, this new config file yields the parse error below. Looks like something has to be changed with the line:
regex = re.compile(ur'(?:\#include \<...\> search starts here\:)(?P<list>.*?)(?:End of search list)', re.DOTALL);
ycmd.responses.ServerError: SyntaxError: invalid syntax (.ycm_extra_conf.py, line 7)
2020-05-15 21:09:56,621 - ERROR - Error while handling server response
Traceback (most recent call last):
File "/net/uday-dev/srv/nfs/uday-data/ws/YouCompleteMe/python/ycm/client/base_request.py", line 73, in HandleFuture
return _JsonFromFuture( future )
File "/net/uday-dev/srv/nfs/uday-data/ws/YouCompleteMe/python/ycm/client/base_request.py", line 256, in _JsonFromFuture
raise MakeServerException( response.json() )
ycmd.responses.ServerError: SyntaxError: invalid syntax (.ycm_extra_conf.py, line 7)
EDIT: I notice the amend needed for Python 3. Could I know what it means to add decode()
to output? Thanks.
Changing
.ycm_extra_config.py
to this .ycm_extra_config file solves the issue. This one can be closed.With the current ycm version, this new config file yields the parse error below. Looks like something has to be changed with the line:
regex = re.compile(ur'(?:\#include \<...\> search starts here\:)(?P<list>.*?)(?:End of search list)', re.DOTALL);
ycmd.responses.ServerError: SyntaxError: invalid syntax (.ycm_extra_conf.py, line 7) 2020-05-15 21:09:56,621 - ERROR - Error while handling server response Traceback (most recent call last): File "/net/uday-dev/srv/nfs/uday-data/ws/YouCompleteMe/python/ycm/client/base_request.py", line 73, in HandleFuture return _JsonFromFuture( future ) File "/net/uday-dev/srv/nfs/uday-data/ws/YouCompleteMe/python/ycm/client/base_request.py", line 256, in _JsonFromFuture raise MakeServerException( response.json() ) ycmd.responses.ServerError: SyntaxError: invalid syntax (.ycm_extra_conf.py, line 7)
EDIT: I notice the amend needed for Python 3. Could I know what it means to add
decode()
to output? Thanks.
Resolved. output -> output.decode()
in the for p ...
line. Thanks.
Description :octocat:
Using ycm I get 'Maximum number of diagnostics exceeded' on a file that otherwise compiles without warnings or errors.
Here's my ycmd debug info:
Here's my
ycm_extra_conf.py
Also, on ycm debug info it can be seen that somehow I get more flags than the ones I defined on my extra config file. Is there a way to solve this?
System Info :computer: