<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/65065>65065</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clangd] --path-mappings doesn't work when the client side path of the mapping is '/'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
qscdfg
</td>
</tr>
</table>
<pre>
run clangd with the --path-mappings:
`clangd --path-mappings=/=/mnt` and then open the file /data/a.cpp
clangd will not use the file /mnt/data/a.cpp on the server side.
it will still use /data/a.cpp on the server side and then casue file not found.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEks-unSAQxp8GN5NjcPDPdcHiNie-B8KotAhW8J707RvU9Oa2i27GBPl-8818qBjt7Ikka76x5lmoIy1hlz-jNtNcjMH8kvvhQTvlZwMvmxZIC8Hjsam0PFa1bdbPkYl3xp-Mv7OW31f_ufFkOFx19Ym1HJQ3meUhbORP6mQdAcPBqKQYDqrU23Zx__R3DnxIcET6osjIrzoIFzPS_kE7RGuovD2e1aaLFlOumfd_wKdlreJxd892pnB4UxZGCtOLXhUkq7YXoqqqVhSLnLq2GdVYI2qqdaWaDhGxnmrs-7GreWElchT8DfsKK6xFSW9CvGFX93pSompGVnNalXWlcx9rGfa5sDEeJNuGt03h1EgunhEienrB-ZMh5kR3mTWP8Zgjq7mzMcVPSrLJndlfC2bN8-_gwASKnmGX4BX2H_Ba7rC0s-TTtZesgDCd57cQbASGXQ4dOyiO3cklpe18KvlsmG1ajrHUYWU4ZEP357Ht4TvpnOc5RmQ4nGP-DgAA__9Ecdtk">