Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Configuration file look up doesn't work since commit 6d7c0b3 #2179

Closed
betonniere opened this issue May 24, 2018 · 4 comments
Closed

Configuration file look up doesn't work since commit 6d7c0b3 #2179

betonniere opened this issue May 24, 2018 · 4 comments

Comments

@betonniere
Copy link

Since commit 6d7c0b3 Security: clear defaults for config file names (cf. #2170). syntastic_<file_type>_config files (syntastic_cpp_config in my case) are ignored.

@lcd047
Copy link
Collaborator

lcd047 commented May 24, 2018

Please explain what did you do, what did you expect to happen, and what happened instead.

@betonniere
Copy link
Author

betonniere commented May 25, 2018

In this tarball you can find a main.cpp file including b.hpp (#include "b.hpp") located in a different folder. To instruct syntastic where to find included files, I've dropped a configuration file (.syntastic_cpp_config) with a -Ib directive in the root folder:

Bug2179
├── a
│   └── main.cpp
├── b
│   └── b.hpp
└── .syntastic_cpp_config

From commit 6d7c0b3, syntastic gets confused and display a syntax error in the Vim's location list:

fatal error: b.hpp: No such file or directory

while this false alert isn't raised prior to this commit.

@lcd047
Copy link
Collaborator

lcd047 commented May 25, 2018

After the commit you mention the name .syntastic_cpp_config is no longer "magic", you need to set syntastic_cpp_config_file explicitly to the name of the configuration file. To avoid the security problem you are strongly advised to use a different name than .syntastic_cpp_config.

@betonniere
Copy link
Author

Ok, got it. Your suggestion works.
Sorry for the inconvenience.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants