Comments (6)
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.
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.
OK, I'll try it out. Please wait for a while.
from cldoc.
ok... I need some time to look into this. I'll reply in 1-2 days, please be patient. 🍰
from cldoc.
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.
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)
- Not recognizing function parameters and returns HOT 2
- Install on Arch linux fails HOT 10
- ValueError: Unknown cursor kind 601 on macOS HOT 3
- Errors when including <cstdint> HOT 2
- Support C variable arguments HOT 2
- ValueError: Unknown type kind 119 (Mac OS X Sierra)
- Unknown type kind HOT 4
- Clang 3.9 incompatibilities HOT 2
- 'friend class Bar' causes "ValueError: Unknown template argument kind 603" HOT 2
- Not working with Python3 HOT 3
- ubuntu 17.10 problem library problem with 1.11 latest release HOT 2
- TypeError: expected a string or other character buffer object HOT 2
- Passing linker arguments into cldoc is broken
- Unable to match comments if a macro is expanded before the declaration.
- Failed to run on Ubuntu 18.04 LTS HOT 6
- how to generate documentation from folder tree HOT 1
- python 3.5 compatibility HOT 1
- Is this library still maintained? HOT 1
- Links in README.md are broken HOT 1
- Python 3.10 > AttributeError: module 'collections' has no attribute 'MutableMapping'
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 cldoc.