Comments (16)
Well, this is very strange. The error highlight cannot work if auto completion doesn't. Especially with libclang. Do you have a single window of sublime text open or many? The log that you copied is totally ok. It just tells you that there are no python bindings installed in your system, so it uses the ones bundled with the plugin.
Sometimes the completion may fail due to errors in source code. Are you sure this is not the case? Does auto completion work for a very simple dunmy case ?
from easyclangcomplete.
I have a single window of sublime text open in a sigle file main.cpp.
main.cpp contains a very simple program :
#include <vector>
int main(int argc, char const *argv[])
{
std::vector<int> vTest;
vTest. // <-- no completion
return 0;
}
I have erase the floder ~/.config/sublime-text-3 for be sure there is no conflict with other plugin or config.
from easyclangcomplete.
You said that the error highlights work. Do they highlight anything also in the example file?
from easyclangcomplete.
Yes, if I write "vTest.error" and I save, then the text "error" is highlight in yellow and the following message is tagged :
no member named 'error' in 'std::vector
from easyclangcomplete.
Oh, this is strange. Have you configured the triggers for autocompletion for Sublime Text own settings as described in readme?
from easyclangcomplete.
I have this in file ~/.config/sublime-text-3/Packages/User/Preferences.sublime-settings :
{
"ignored_packages":
[
"Vintage"
],
"auto_complete_triggers":
[
{
"characters": ".:>",
"selector": "source.c++ - string - comment - constant.numeric"
}
],
}
from easyclangcomplete.
Strange... Can you try to switch the use_libclang
setting to off just to check of binary-based completion works?
from easyclangcomplete.
if I switch use_libclang to false, then auto-completion work but highlight don't work.
from easyclangcomplete.
Uh, for now I have no idea what causes this. I have the same clang version and both error highlight and autocompletion work for me for both libclang and clang binary mode. Moreover, the unit tests test just that. Autocompletion for vector passes unit tests on Ubuntu instance.
So I guess we need to find out what is different in your setup to fix this issue.
from easyclangcomplete.
Does anybody else on Ubuntu experience the same issue? It would really help me if I knew more about it.
from easyclangcomplete.
Also, @Skonike @Ekinoks do you see any completions printed to the console or are they empty?
from easyclangcomplete.
I have all reinstalled, and I have the same probleme, but I have a new line error in console :
ERROR:EasyClangComplete.plugin.completion.lib_complete: no translation unit for view id %s
from easyclangcomplete.
Can you look if your issue is related to #20 ? Also, can you copy the full log while performing the following actions:
- open sublime text
- open example cpp file
- save the file (you don't need to change anything there)
- try to autocomplete something
It would really help me to identify the issue
from easyclangcomplete.
Have you tried it after the update? Can you please provide the output of what I have specified in my last comment? Thanks!
from easyclangcomplete.
The problem is solved with the last update :)
from easyclangcomplete.
Awesome! I am glad to hear it! I will close this issue, but feel free to reopen it if the error repeats.
from easyclangcomplete.
Related Issues (20)
- Designated initializers don't seem to be parsed correctly HOT 5
- Headers autocompletion suggestion HOT 3
- An erroneous warning HOT 3
- Crash on drag-selection near an error HOT 11
- Suppress message about success build HOT 6
- Headers from listed add_definitions are not getting included and pch breaks completion HOT 1
- Go to declaration of includes? HOT 1
- Not working on apple m1 arch64 HOT 6
- Could be possible to disable to show the popup immediately when clicking on a line that has an error? HOT 2
- Files with same name share error messages HOT 2
- Headers are not auto-completed in Sublime Text 4 HOT 2
- "Clean current CMake cache" doesn't works on Windows HOT 2
- Windows can't detect the include folder from the CMakeLists.txt file HOT 5
- Using defintions declared on the CMakeLists.txt from windows gives "Error: Expected expression" HOT 2
- TypeError: argument of type 'NoneType' is not iterable on macos m1 HOT 5
- Headers are normal but STL keep loading errors HOT 1
- Wont find libclang automatically on Debian Testing HOT 10
- Recursive names project fails to build dependency tree project
- Crash when entering `std::vector.re` HOT 4
- Cannot use GCC HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyclangcomplete.