You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function cmake-ide-set-compiler-flags doesn't seem to set the company-c-headers-path-system variable correctly. For example, if I execute the following in *scratch* (after loading cmake-ide and company-c-headers):
company-c-headers-path-system is a variable defined in ‘company-c-headers.el’.
Its value is (("/foo" "/bar") "/usr/include/" "/usr/local/include/")
Original value was
("/usr/include/" "/usr/local/include/")
Note that the first element of the variable is a nested list, which isn't what company-c-headers expects. This causes an error to occur when, for example, one starts to insert a new include statement and company-c-headers functionality is triggered.
Fortunately it's pretty easy to fix -- all that's required is a slight tweak to the code inside cmake-ide-set-compiler-flags, specifically in the when-clause predicated upon (featurep 'company-c-headers). I can submit a pull request (with supporting unit test) if you want.
The text was updated successfully, but these errors were encountered:
The function
cmake-ide-set-compiler-flags
doesn't seem to set thecompany-c-headers-path-system
variable correctly. For example, if I execute the following in*scratch*
(after loadingcmake-ide
andcompany-c-headers
):then I get
Note that the first element of the variable is a nested list, which isn't what
company-c-headers
expects. This causes an error to occur when, for example, one starts to insert a new include statement andcompany-c-headers
functionality is triggered.Fortunately it's pretty easy to fix -- all that's required is a slight tweak to the code inside
cmake-ide-set-compiler-flags
, specifically in thewhen
-clause predicated upon(featurep 'company-c-headers)
. I can submit a pull request (with supporting unit test) if you want.The text was updated successfully, but these errors were encountered: