From fe14706742d454b1bced6419a3fd72646e827de7 Mon Sep 17 00:00:00 2001 From: Abbyyan <1678144569@qq.com> Date: Tue, 26 May 2020 17:11:23 +0800 Subject: [PATCH] fix index error when there is a soft link file (https://github.com/MaskRay/ccls/issues/639) --- src/lsp.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lsp.cc b/src/lsp.cc index 662f5026..a02010ea 100644 --- a/src/lsp.cc +++ b/src/lsp.cc @@ -6,6 +6,7 @@ #include "log.hh" #include +#include #include #include @@ -120,6 +121,7 @@ std::string DocumentUri::getPath() const { #endif if (g_config) normalizeFolder(ret); + ret = std::filesystem::canonical(ret); return ret; }