question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libclang.dll found but cannot initialize completer with libclang

See original GitHub issue

System 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:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mheinzlercommented, Jul 3, 2019

I’m doing the same with MSYS2 but using the Environment Settings package with settings similar to:

{
	"env": {
		"Windows": {
			"PATH": "C:\\msys2\\mingw64\\bin;C:\\msys2\\usr\\bin;%PATH%",
			"MSYSTEM": "MINGW64",
			"CHERE_INVOKING": "enabled_from_arguments"
		}
	}
}

This has been working very well for me.

0reactions
stale[bot]commented, Sep 9, 2019

The issue has been automatically closed due to lack of activity. Feel free to reopen the issue if it is still relevant.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found