libclang.dll found but cannot initialize completer with libclang
See original GitHub issueSystem info:
- Sublime Text version: 3.2.1
- Which system are you on: Windows 10
- Clang version: 8.0.0
What happens:
I installed Easy Clang Complete, pointed it to clang++.exe in mingw64 bin folder, gave it the path to libclang.dll, it finds everything but always fails with a WinError126 and show_type_info error dialog pops up…
Log :
ERROR:concurrent.futures:exception calling callback for <Future at 0x159f60a9d68 state=finished returned NoneType>
Traceback (most recent call last):
File "./python3.3/concurrent/futures/_base.py", line 296, in _invoke_callbacks
File "C:\Users\[USER]\AppData\Roaming\Sublime Text 3\Packages\EasyClangComplete\EasyClangComplete.py", line 436, in info_finished
(tooltip_request, current_popup) = future.result()
TypeError: 'NoneType' object is not iterable
[ECC:INFO ]: init completer based on libclang
[ECC:INFO ]: Using user-provided libclang: 'C:\msys64\mingw64\bin\libclang.dll'
[ECC:ERROR ]: error: [WinError 126] Le module spécifié est introuvable. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().
[ECC:ERROR ]: cannot initialize completer with libclang.
[ECC:INFO ]: falling back to using clang in a subprocess.
[ECC:INFO ]: init completer based on clang from cmd
[ECC:INFO ]: init completer based on libclang
[ECC:INFO ]: Using user-provided libclang: 'C:\msys64\mingw64\bin\libclang.dll'
[ECC:ERROR ]: error: [WinError 126] Le module spécifié est introuvable. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().
[ECC:ERROR ]: cannot initialize completer with libclang.
[ECC:INFO ]: falling back to using clang in a subprocess.
[ECC:INFO ]: init completer based on clang from cmd
[ECC:INFO ]: init completer based on libclang
[ECC:INFO ]: Using user-provided libclang: 'C:\msys64\mingw64\bin\libclang.dll'
[ECC:ERROR ]: error: [WinError 126] Le module spécifié est introuvable. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().
[ECC:ERROR ]: cannot initialize completer with libclang.
[ECC:INFO ]: falling back to using clang in a subprocess.
[ECC:INFO ]: init completer based on clang from cmd
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
bindgen fails to load libclang.dll · Issue #74 - GitHub
The search assumes the first DLL it finds is the correct one. If you are compiling on x64 Windows, and have both x64...
Read more >libclang.dll cannot be found - Stack Overflow
@AlanBirtles, I'm using an absolute path. I think the problem is that the file libclang.dll can't be found under the clang folder. –...
Read more >YouCompleteMe-clang - Gitee
Download the latest version of libclang . Clang is an open-source compiler that can compile C-family languages. The libclang library it provides is...
Read more >clang.cindex — libclang 14.0.6 documentation
This is raised in the case where a TranslationUnit could not be instantiated due to failure in the libclang library. FIXME: Make libclang...
Read more >libclang: C Interface to Clang
The C Interface to Clang provides a relatively small API that exposes facilities for parsing source code into an abstract syntax tree (AST), ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m doing the same with MSYS2 but using the Environment Settings package with settings similar to:
This has been working very well for me.
The issue has been automatically closed due to lack of activity. Feel free to reopen the issue if it is still relevant.