MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.78k stars 260 forks source link

System environment variables cannot be used in the cache path #729

Open 93Alliance opened 3 years ago

93Alliance commented 3 years ago

Observed behavior

System environment variables cannot be used in the cache path.

"--init={\"capabilities\": {\"foldingRangeProvider\": false},\"cache\": {\"directory\": \"${env:CCLS_CACHE}\"}}"

The CCLS_CACHE is system env variant,but it doesn't work.

image

image

Expected behavior

The expected cache directory is E:\. cache\ccls.

Steps to reproduce

  1. Select these example steps,
  2. Delete them,
  3. And replace them with precise steps to reproduce your issue.

System information

MaskRay commented 3 years ago

This is intentional. Where does the ${env:...} syntax come from and how is it needed for you?

93Alliance commented 3 years ago

If I use vcpkg, I will not find header files.

93Alliance commented 3 years ago

image

When I jump inside boost, I will not find header file.