I cannot understand the following text from the clang-format manual:
.clang-format file located in one of the parent
directories of the source file (or current
directory for stdin).
What does "current directory for stdin" mean? Is it the current directory or the stdin?
Is it possible to specify the .clang-format location by a full path?
It is the current directory.
And there is no way to set .clang-format path. clang-format only scans from the directories and up until it encounters the file.
Concerning VSCode I found this feature request:
https://github.com/microsoft/vscode-cpptools/issues/3675
So it is currently not supported to specify the .clang-format location by a full path.
Related
I need to include StyleUtils.inc and StyleAPI.inc in my source file, but I don't want to copy the files to my project folder, or reference the files directly, as the contents and location could change on newer versions of Delphi, although I can see the files under C:\Program Files (x86)\Embarcadero\Studio\22.0\source\vcl.
The BDS environment variable points to C:\Program Files (x86)\Embarcadero\Studio\22.0, so I was wanting to include the files as below, but I have tried escaping with $(), ${}, %%, but the variable is not being referenced.
{$I $(BDS)\Source\Vcl\StyleUtils.inc}
No, you cannot use environment variables in {$I} directive. What you need to do instead is use a relative path in the directive, and then specify the root folder in the project's Search path configuration, per the documentation:
https://docwiki.embarcadero.com/RADStudio/en/Include_file_(Delphi)
If the filename does not specify a directory path, then, in addition to searching for the file in the same directory as the current module, Delphi searches in the directories specified in the Search path input box on the Delphi Compiler page of the Project > Options dialog box (or in the directories specified in a -I option on the command line compiler).
Have configured log4j2.component.properties file with below system property.
log4j2.configurationFile=log4j2.xml,../config/log4j2.xml,../log/log4j2.xml
However system finds the log4j2.xml file only when it is placed in the current directory. If it is placed either in /config or /log directory, it is unable to find the file.
Could someone suggest what is going wrong here?
Is there anyway to modify the path where *.vcproj (and *.vcxproj, *.sln...) files generated by QMake are written ?
I do not want to modify the path of the generated *.exe or *.dll file. I'm looking for a way to create the *.vcproj file out of my sources directory, to keep it clean from any generated file.
I'm using Qt 5.5.
Thanks
EDIT :
By default, QMake generate a .sln/.vcproj file next to the *.pro file (in the same directory). I'm looking for a way to generate the .sln/.vcproj file elsewhere.
I always read that I need to create a .tfignore file for TFS to exclude my selection of files.
But what's the actual name of the file? If I'm trying to rename an empty file to .tfignore, File Explorer tells me that the file is required to have a file name, not just an extension.
So what's a valid example for a valid .tfignore file?
I was just struggling with the same issue. I found that if you create the file with the name .tfignore. (note the . at the end it recognizes that before the last "." is the filename. When it is created/renamed, the last "." will go away.
Open a command prompt.
CD to the directory you want to create the .tfignore file in (i.e. the solution root)
Type "echo > .tfignore". This will create a blank file you can then edit.
I have a project in directory A and files that I use in all my projects are in directory B.
When I moved a .sty file from A to B, the main .tex file does not compile anymore.
The error is that the .sty file was not found. I am puzzled because:
Directory B is included in the path of the project.
I cleaned (deleted manually) all the auxiliary files used in the previous compilations.
I refreshed the project folders .
Did anyone had similar problems? Suggestions?
The file LaTeX.sublime-build, within the Sublime Text folder . . . /Packages/LaTeXTools, contains a $PATH for different operating systems.
For example, Sublime Text 2 on an OSX operating system, has a file located at ~/Library/Application Support/Sublime Text 2/Packages/LaTeXTools/LaTeX.sublime-build. The relevant line of code for a MacTeX TexLive 2012 installation is "path": "$PATH:/usr/texbin:/usr/local/bin",. The plugin LaTeXTools looks in that path for *.sty files that are a part of the TexLive installation. While it may be possible (under some circumstances) to place the *.sty files within the working directory of the *.tex file, this particular plugin looks to the path mentioned hereinabove. So one option would be to add additional locations to the $PATH to suit the needs of the user, or simply place the *.sty files within the path that is pre-defined by the plugin developer.