Code Monkey home page Code Monkey logo

Comments (7)

JBakamovic avatar JBakamovic commented on July 18, 2024

You need to fill in the relevant data in .clang_complete file, that is include paths that you use in your project so clang_complete can utilize them while assisting you in code auto-complete. For further information you should have a look at clang_complete docs.

It would be handy to generate these entries automatically if possible but as of now there is no such support in Yavide.

from yavide.

liscju avatar liscju commented on July 18, 2024

Thanks for quick response. From what i read .clang_complete containing CFLAGS to gcc should be enough, but its not. For now i have very simple directory structure which contains all headers files and implementation files in main directory tree. It looks like this:
https://github.com/liscju/SimpleOS
nothing fancy here iso/boot dir is only for output. Probably you are not person i should ask to guide how .clang_complete should look like for such a simple project but i give it a try :P

from yavide.

JBakamovic avatar JBakamovic commented on July 18, 2024

From what I know, clang_complete basically expects include paths that you would normally pass to your compiler through your build system (i.e. make) in order to build your stuff successfully. In your case I think that .clang_complete file, if it's in your root directory, would consist of single entry which is ./

from yavide.

liscju avatar liscju commented on July 18, 2024

As you suggested i put "./" in .clang_complete file and now autocompletion shows with TAB correctly. Many thanks for taking your time for vim novice user, issue can be closed

from yavide.

JBakamovic avatar JBakamovic commented on July 18, 2024

It was my pleasure.

from yavide.

liscju avatar liscju commented on July 18, 2024

A little thing more: sometimes after adding new symbol going to definition is not working, how can i manually refresh ctags?

from yavide.

JBakamovic avatar JBakamovic commented on July 18, 2024

Can you please open a new ticket regarding this issue? Generally, this shouldn't be happening under normal circumstances. Also provide some more details please.

I.e.

  • In what way are you trying to jump to definition (pressing F12 or some other way?)?
  • Did you save the file where you added a new symbol?
  • Make sure that indexer is running fine in the background (if not please report it to me) by checking the output of ps -aux | grep yavide_indexer. You should see something like python /opt/yavide/core/indexer/yavide_indexer.py 6000.

from yavide.

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.