I faced an obscure error relating to a directory where an file is opened. Bellow attaching an screenshot of two opened files. One is placed in /tmp directory, another somewhere in my home directory. In the first case everything works as expected, while in the second case there are not any notices pointing to an syntax-error.
Looking through vim-lsp.log file showed that clangd is replying by a correct message:
["<---",1,"clangd",{"response":{"method":"textDocument/publishDiagnostics","jsonrpc":"2.0","params":{"diagnostics":[{"source":"clang","relatedInformation":[],"range":{"end":{"character":12,"line":2},"start":{"character":4,"line":2}},"code":"undeclared_var_use","message":"Use of undeclared identifier 'errorcpp'","severity":1}],"uri":"file:///home/my_username/src/error.cpp","version":1}}}]
I tried to solve without success the problem by setting the file permissions for the directory as /tmp has.
Environments:
_1. VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 18 2023 04:12:26) Included patches: 1-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919, 213
I faced an obscure error relating to a directory where an file is opened. Bellow attaching an screenshot of two opened files. One is placed in /tmp directory, another somewhere in my home directory. In the first case everything works as expected, while in the second case there are not any notices pointing to an syntax-error. Looking through vim-lsp.log file showed that clangd is replying by a correct message:
I tried to solve without success the problem by setting the file permissions for the directory as /tmp has.
Environments: _1. VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 18 2023 04:12:26) Included patches: 1-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919, 213