Giter VIP home page Giter VIP logo

Comments (6)

saki7 avatar saki7 commented on June 24, 2024

I have this issue too.
My environment is almost the same, Ubuntu 12.04.2 / clang 3.2 / python 2.7.3 / cldoc 1.4 (via pip).

from cldoc.

jessevdk avatar jessevdk commented on June 24, 2024

I finally had some time to look into this. I think I managed to fix the issue. Could you please try with the latest master? I'm trying this on OS X and somehow running it on LaserCake now causes a SEGV in libclang. This is most likely a bug in libclang which might already have been fixed in a later version than the one I have here on OS X. Please let me know.

from cldoc.

saki7 avatar saki7 commented on June 24, 2024

OK, I'll try it out. Please wait for a while.

from cldoc.

saki7 avatar saki7 commented on June 24, 2024

ok... I need some time to look into this. I'll reply in 1-2 days, please be patient. 🍰

from cldoc.

saki7 avatar saki7 commented on June 24, 2024

I hope I have made some progress...
I made it into generate step, but getting another errors now.
Thus I think this issue (#6) has been resolved in master, but I can't fully confirm it until this error is fixed. 🔍

Generated `docs/xml'
Traceback (most recent call last):
  File "/usr/local/bin/cldoc", line 5, in <module>
    pkg_resources.run_script('cldoc==1.4', 'cldoc')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/EGG-INFO/scripts/cldoc", line 5, in <module>
    cldoc.run()
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/__init__.py", line 57, in run
    run_generate(rest)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/__init__.py", line 27, in run_generate
    cmdgenerate.run(args)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/cmdgenerate.py", line 129, in run
    run_generate(t, opts)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/cmdgenerate.py", line 34, in run_generate
    generators.Html(t).generate(baseout, opts.static)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/generators/html.py", line 36, in generate
    shutil.copyfile(index, outfile)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/data/index.html'

Apparently this seems to be the same error reported in #5. I'm re-opening it.
I only see this when installed it from GitHub source, pip installation is okay for this part.

Another "Unhandled cursor" warnings:

CursorKind.NAMESPACE_ALIAS
CursorKind.TEMPLATE_NON_TYPE_PARAMETER
CursorKind.USING_DECLARATION
CursorKind.CLASS_TEMPLATE_PARTIAL_SPECIALIZATION
CursorKind.NAMESPACE_REF
CursorKind.INTEGER_LITERAL
CursorKind.TYPE_ALIAS_DECL

Some of these are obviously C++11-related stuff and I understand they are unimplemented for now. Just FYI.
If you have any questions, feel free to contact me ✨

from cldoc.

saki7 avatar saki7 commented on June 24, 2024

I forgot to reply to this part:

I'm trying this on OS X and somehow running it on LaserCake now causes a SEGV in libclang. This is most likely a bug in libclang which might already have been fixed in a later version than the one I have here on OS X. Please let me know.

lol I'm getting this issue too, I lost a whole day.
I'm using my own C++11 project for the target, so it seems it's not related to a specific project, rather a bug in libclang as you mentioned. I removed certain "edgy" files from my source tree, and the workaround works for now.

from cldoc.

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.