{"action":"created","issue":{"url":"https://api.github.com/repos/MaskRay/ccls/issues/95","repository_url":"https://api.github.com/repos/MaskRay/ccls","labels_url":"https://api.github.com/repos/MaskRay/ccls/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/MaskRay/ccls/issues/95/comments","events_url":"https://api.github.com/repos/MaskRay/ccls/issues/95/events","html_url":"https://github.com/MaskRay/ccls/issues/95","id":370587695,"node_id":"MDU6SXNzdWUzNzA1ODc2OTU=","number":95,"title":"Warning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting","user":{"login":"samrayleung","id":14180681,"node_id":"MDQ6VXNlcjE0MTgwNjgx","avatar_url":"https://avatars0.githubusercontent.com/u/14180681?v=4","gravatar_id":"","url":"https://api.github.com/users/samrayleung","html_url":"https://github.com/samrayleung","followers_url":"https://api.github.com/users/samrayleung/followers","following_url":"https://api.github.com/users/samrayleung/following{/other_user}","gists_url":"https://api.github.com/users/samrayleung/gists{/gist_id}","starred_url":"https://api.github.com/users/samrayleung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samrayleung/subscriptions","organizations_url":"https://api.github.com/users/samrayleung/orgs","repos_url":"https://api.github.com/users/samrayleung/repos","events_url":"https://api.github.com/users/samrayleung/events{/privacy}","received_events_url":"https://api.github.com/users/samrayleung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-10-16T12:29:46Z","updated_at":"2018-10-21T06:45:14Z","closed_at":null,"author_association":"NONE","body":"<img width=\"1440\" alt=\"image\" src=\"https://user-images.githubusercontent.com/14180681/47016344-071b8d80-d182-11e8-9b13-a9e9c0388052.png\">\r\n\r\nHi MaskRay, after I update `emacs-ccls` to `20181015.105`, I get such errors as screenshot showing above when I use `ccls` with c/c++ project:\r\n\r\n```\r\nWarning (lsp-mode): Unknown method: $ccls/setSkippedRanges\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/setSkippedRanges\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/setSkippedRanges\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/setSkippedRanges\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/setSkippedRanges\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/setSkippedRanges\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/setSkippedRanges\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\nWarning (lsp-mode): Unknown method: $ccls/setSkippedRanges\r\nWarning (lsp-mode): Unknown method: $ccls/publishSemanticHighlighting\r\n```\r\n\r\nOS/pacakge information:\r\n+ emacs-ccls: 20181015.105\r\n+ ccls: twlz0ne/ccls/ccls 0.20180924(installed with `brew`)\r\n+ Emacs: GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2018-05-31\r\n+ OS: Mac os 10.13.6\r\n\r\nThen I try to compile `ccls` from source, but doesn't works either. This is the error message:\r\n```\r\nScanning dependencies of target ccls\r\n[  2%] Building CXX object CMakeFiles/ccls.dir/third_party/siphash.cc.o\r\n[  4%] Building CXX object CMakeFiles/ccls.dir/src/clang_complete.cc.o\r\nIn file included from /Users/samray/code/cpp/ccls/src/clang_complete.cc:16:\r\nIn file included from /Users/samray/code/cpp/ccls/src/clang_complete.hh:18:\r\nIn file included from /Users/samray/code/cpp/ccls/src/clang_tu.hh:18:\r\nIn file included from /Users/samray/code/cpp/ccls/src/position.h:18:\r\nIn file included from /Users/samray/code/cpp/ccls/src/maybe.h:18:\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:184:1: error: unknown type name '_LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS'\r\n_LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS\r\n^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:185:1: error: expected unqualified-id\r\nvoid __throw_bad_optional_access() {\r\n^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:199:1: error: unknown type name '_LIBCPP_INLINE_VAR'\r\n_LIBCPP_INLINE_VAR constexpr nullopt_t nullopt{nullopt_t::__secret_tag{}, nullopt_t::__secret_tag{}};\r\n^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:199:20: error: expected unqualified-id\r\n_LIBCPP_INLINE_VAR constexpr nullopt_t nullopt{nullopt_t::__secret_tag{}, nullopt_t::__secret_tag{}};\r\n                   ^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:932:5: error: unknown type name '_LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS'\r\n    _LIBCPP_AVAILABILITY_THROW_BAD_OPTIONAL_ACCESS\r\n    ^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:5: error: expected member name or ';' after declaration specifiers\r\n    constexpr value_type const& value() const&\r\n    ^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:753:9: error: use of undeclared identifier 'reset'\r\n        reset();\r\n        ^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:817:9: error: use of undeclared identifier 'reset'\r\n        reset();\r\n        ^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:832:9: error: use of undeclared identifier 'reset'\r\n        reset();\r\n        ^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:853:17: error: use of undeclared identifier 'reset'\r\n                reset();\r\n                ^\r\nIn file included from /Users/samray/code/cpp/ccls/src/clang_complete.cc:16:\r\nIn file included from /Users/samray/code/cpp/ccls/src/clang_complete.hh:18:\r\nIn file included from /Users/samray/code/cpp/ccls/src/clang_tu.hh:18:\r\nIn file included from /Users/samray/code/cpp/ccls/src/position.h:18:\r\n/Users/samray/code/cpp/ccls/src/maybe.h:50:17: error: no member named 'nullopt' in namespace 'std'\r\n    return std::nullopt;\r\n           ~~~~~^\r\nIn file included from /Users/samray/code/cpp/ccls/src/clang_complete.cc:16:\r\nIn file included from /Users/samray/code/cpp/ccls/src/clang_complete.hh:23:\r\n/Users/samray/code/cpp/ccls/src/threaded_queue.h:156:17: error: no member named 'nullopt' in namespace 'std'\r\n    return std::nullopt;\r\n           ~~~~~^\r\n/Users/samray/code/cpp/ccls/src/clang_complete.cc:203:10: error: 'reset' is a private member of 'std::__1::__optional_destruct_base<ccls::Diag, false>'\r\n    last.reset();\r\n         ^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:581:7: note: constrained by private inheritance here\r\n    : private __optional_move_assign_base<_Tp>\r\n      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:236:10: note: member is declared here\r\n    void reset() noexcept\r\n         ^\r\n/Users/samray/code/cpp/ccls/src/clang_complete.cc:203:5: error: cannot cast 'std::optional<Diag>' to its private base class 'std::__1::__optional_destruct_base<ccls::Diag, false>'\r\n    last.reset();\r\n    ^\r\n/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:581:7: note: constrained by private inheritance here\r\n    : private __optional_move_assign_base<_Tp>\r\n      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n14 errors generated.\r\nmake[2]: *** [CMakeFiles/ccls.dir/src/clang_complete.cc.o] Error 1\r\nmake[1]: *** [CMakeFiles/ccls.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\nFinally turning out that I could not solve this problem by my own, could you help me out ?"},"comment":{"url":"https://api.github.com/repos/MaskRay/ccls/issues/comments/431643491","html_url":"https://github.com/MaskRay/ccls/issues/95#issuecomment-431643491","issue_url":"https://api.github.com/repos/MaskRay/ccls/issues/95","id":431643491,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTY0MzQ5MQ==","user":{"login":"MaskRay","id":416322,"node_id":"MDQ6VXNlcjQxNjMyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/416322?v=4","gravatar_id":"","url":"https://api.github.com/users/MaskRay","html_url":"https://github.com/MaskRay","followers_url":"https://api.github.com/users/MaskRay/followers","following_url":"https://api.github.com/users/MaskRay/following{/other_user}","gists_url":"https://api.github.com/users/MaskRay/gists{/gist_id}","starred_url":"https://api.github.com/users/MaskRay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaskRay/subscriptions","organizations_url":"https://api.github.com/users/MaskRay/orgs","repos_url":"https://api.github.com/users/MaskRay/repos","events_url":"https://api.github.com/users/MaskRay/events{/privacy}","received_events_url":"https://api.github.com/users/MaskRay/received_events","type":"User","site_admin":false},"created_at":"2018-10-21T06:45:14Z","updated_at":"2018-10-21T06:45:14Z","author_association":"OWNER","body":"@FirstLoveLife It does not matter if you still use lsp, but i would very like to know if you find something useful in the clion workflow"}}
{"actor":{"display_login":"MaskRay"}}