Comments (3)
@rcshubhadeep Can you please help me why Mac Update - 19.11.2021 - is still not working for me.
We are not able to support the s3 based download anymore. So the download_libs command does not work. We are making them available via this release - https://github.com/autosoft-dev/tree-hugger/releases/tag/0.10.1 Please download the required zip file from there :(
from tree-hugger.
Hi,
Thanks for letting us know. I am suspecting that you are using M1/M2 Mac (as you said) the processor architecture is different. The libraries that are available here were compiled on a intel 64 bit architecture. Hence they won't work on a M1/M2 Mac.
I am sorry that it did not work for you. I do not have access to a M1 mac and hence I can't compile them myself. But you may be able to compile the new libraries. You can do two things.
- Try the
create_libs
command. It is already shipped with tree-hugger. You can runcreate_libs --help
to know about the options. This may solve your problem. - If this does not solve your problem then go have a look at here. You will be able to see what the command does under the hood. It is very simple actually. And you can perform those steps separately to check if that makes a successful build.
Hope this helps. I am presently not in a situation to actually support the development of tree_hugger. So sorry if this does not help.
Also one small request, if you do compile the libraries please consider opening a PR here to add them to tree-hugger to help people like yourself in the future.
All the best.
from tree-hugger.
I am happy that it helped you. The method bodies are not implemented yet, but you can easily extend tree_hugger to do that. Please have a look into the three following resources to have an idea how that can be done
1.> How to extend tree_hugger - https://github.com/autosoft-dev/tree-hugger#extending-tree-hugger
2.> The method that gives you method names
from JS classes - https://github.com/autosoft-dev/tree-hugger/blob/master/tree_hugger/core/parser/javascript/javascript_parser.py#L29
3.> The query that eanbles it to do so - https://github.com/autosoft-dev/tree-hugger/blob/master/tree_hugger/core/parser/javascript/queries.yml#L16
I am guessing using these resources you can come up with a custom parser class that can achieve what you want to do. I will be happy to answer any further question.
If you do not mind me asking what kind of work are you using tree_hugger for?
from tree-hugger.
Related Issues (20)
- Add a command line interface to scan files and generate some reports on them HOT 1
- Update the documentation
- Update parser interface
- Implement parser tree visitor
- Change `get_function_and_params` to optionally return the type hinting if present.
- Update `get_function_and_params` in the PHP parser
- Implement JavaScript parser
- Implement Java parser
- Implement C++ parser
- Add extraction of starting point and end point of function documentation and function bodies
- Windows support
- Normalize the API
- Add a factory function to generate the proper paerser object
- Can we make parsers stateless?
- Java Queries not Included in Pypi Package HOT 3
- No such attribute error HOT 6
- Better documentation HOT 1
- download_libs: 404 Client Error: Not Found for url HOT 2
- PHPParser get_all_class_method_bodies not work HOT 1
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 tree-hugger.