Caphyon / clang-power-tools

Bringing clang-tidy magic to Visual Studio C++ developers.
http://www.clangpowertools.com
Apache License 2.0
472 stars 57 forks source link

Add Additional LLVM install never returns #1330

Open IrisPeter opened 8 months ago

IrisPeter commented 8 months ago

I'm finding that when I try and add a more up to date version of LLVM to Clang Powertools, that the LLVM settings page starts the install but never completes.

A Command Prompt box appears with The system was unable to find the specified registry key or value, then it goes away but then the red installing bar goes around and around, the black Download text has changed to Installing but it never completes.

mariru27 commented 8 months ago

Hi @IrisPeter,

Thank you for reporting this issue Have you consistently encountered this issue? Which LLVM version are you attempting to install?

Kind regards, Marina

IrisPeter commented 8 months ago

Hi @mariru27

I've run it three times, first in VS2022, then I tried running VS2022 under Admin - no difference, then I tried again in VS2019.

I've been trying to install LLVM 17.0.1. If you kill VS and go back in it says "Uninstall"

mariru27 commented 8 months ago

I cannot reproduce this issue, but I will continue investigate this problem

Right now you can use the last version of LLVM with no need to install it manually, because we already download it automatically for you. To check if it works on your machine:

IrisPeter commented 8 months ago

I'm not sure what you mean about step 1 - I assumed you just meant hit the Compile button on the Clang Power Tools toolbar, but I cannot have an empty "Use LLVM" box only the older 15.0.7 and the LLVM 17.0.1

I've checked %appdata%\ClangPowerTools\LLVM_Lite\Bin result was:

clang version 15.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Users\someuser\AppData\Roaming\ClangPowerTools\LLVM_Lite\Bin

Changing power tools to Verbose shows my current path being extended with;C:\Users\someuser\AppData\Roaming\ClangPowerTools\LLVM\LLVM15.0.7\bin

mariru27 commented 8 months ago

Sorry @IrisPeter, I meant "compile"

I forget to tell you that on install after download, usually a User Account Control pops up. If you do not press "yes", the installing it never completes. Sometime it may not pop up, check in Taskbar after download

You need to uninstall LLVMs in order to be empty image

IrisPeter commented 7 months ago

Hi @mariru27

I've uninstalled all the two listed versions of LLVM 15.0.0, and 17.0.1, and now the %APPDATA%\ClangPowerTools\LLVM folder is empty, and the %APPDATA%\ClangPowerTools\LLVM_Lite folder contains one folder Bin, and that folder has a clang++.exe and a clang-tidy.exe, if I supply the --version switch to both I get, 15.0.0 and 14.0.3

However now if I hit Compile, the end of the lg from the Output window is:

DEBUG: Receiving results for clang job 1
'clang++.exe' is not recognized as an internal or external command,
operable program or batch file.

Got errors.

VERBOSE: Cleaning up PCH temporaries:
VERBOSE: 

--- CLANG COMPILE FINISHED ---