mprobst / ClangFormatIJ

clang-format for IntelliJ based IDEs
Apache License 2.0
15 stars 9 forks source link

Configuration with PATH does not work #6

Open mloskot opened 6 years ago

mloskot commented 6 years ago

First, thanks for developing the plugin for JetBrains IDEs.

I'm on Windows where I use clang-format 7.0 installed in C:\Program Files (x86)\LLVM\bin but the path is added to PATH.

I've installed the plugin for CLion and I got it working eventually, but I have to admit the configuration is slightly confusing. Here are my attempts:

1 . Does not work

Cannot run program "clang-format.exe": CreateProcess error=2,
The system cannot find the file specified command:
[clang-format.exe, -style=file, -output-replacements-xml, -assume-filename=D:/boost.wsl/libs/gil/test/channel_traits.cpp, -cursor=998, -offset=998, -length=0]
in PATH=C:\Program Files (x86)\LLVM\bin

2 . Does work

klimkin commented 5 years ago

Doesn't work for me as well, always uses default PATH

Aifeng1214 commented 5 years ago

After configuring in Settings, how can I trigger the format when I want to ? Maybe ctrl+alt+L will do the format but it did work.