Giter Club home page Giter Club logo

Comments (16)

niosus avatar niosus commented on May 26, 2024

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.

Skonike avatar Skonike commented on May 26, 2024

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.

niosus avatar niosus commented on May 26, 2024

You said that the error highlights work. Do they highlight anything also in the example file?

from easyclangcomplete.

Skonike avatar Skonike commented on May 26, 2024

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.

niosus avatar niosus commented on May 26, 2024

Oh, this is strange. Have you configured the triggers for autocompletion for Sublime Text own settings as described in readme?

from easyclangcomplete.

Ekinoks avatar Ekinoks commented on May 26, 2024

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.

niosus avatar niosus commented on May 26, 2024

Strange... Can you try to switch the use_libclang setting to off just to check of binary-based completion works?

from easyclangcomplete.

Ekinoks avatar Ekinoks commented on May 26, 2024

if I switch use_libclang to false, then auto-completion work but highlight don't work.

from easyclangcomplete.

niosus avatar niosus commented on May 26, 2024

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.

niosus avatar niosus commented on May 26, 2024

Does anybody else on Ubuntu experience the same issue? It would really help me if I knew more about it.

from easyclangcomplete.

niosus avatar niosus commented on May 26, 2024

Also, @Skonike @Ekinoks do you see any completions printed to the console or are they empty?

from easyclangcomplete.

Ekinoks avatar Ekinoks commented on May 26, 2024

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.

niosus avatar niosus commented on May 26, 2024

Can you look if your issue is related to #20 ? Also, can you copy the full log while performing the following actions:

  1. open sublime text
  2. open example cpp file
  3. save the file (you don't need to change anything there)
  4. try to autocomplete something

It would really help me to identify the issue

from easyclangcomplete.

niosus avatar niosus commented on May 26, 2024

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.

Ekinoks avatar Ekinoks commented on May 26, 2024

The problem is solved with the last update :)

from easyclangcomplete.

niosus avatar niosus commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.