Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reported when using in other code repositories, only py files can be recognized. Is there any way to use in other types of code repositories #16

Open
hhn12138 opened this issue Jul 1, 2024 · 3 comments

Comments

@hhn12138
Copy link

hhn12138 commented Jul 1, 2024

This is a very excellent project, it would be better if it could run in a code repository other than Python

@aorwall
Copy link
Owner

aorwall commented Jul 1, 2024

Thanks. Java is partly supported now. I also plan to add support for TypeScript and JavaScript.

@john-b-yang
Copy link

@aorwall I'm interested in running moatless on some TS/JS repos! Was curious if you had made any progress on this front?

If you already have something in the works but it's not final, I'd be happy to pick up where you left off and see if I can get it to work 😄

I'm guessing you would implement a javascript.py file under moatless/codeblocks/parser/?

I'm assuming the parser object creation here would also have to be updated.

Are there other places in the code to modify in order to make this work for new languages?

@aorwall
Copy link
Owner

aorwall commented Sep 14, 2024

I actually started adding support for JavaScript and TypeScript in an earlier version of Moatless Tools. It's not done yet, but I pushed the changes I made to the branch javascript-support #34. I haven’t tested running the agent on a JavaScript project yet though, and there are probably some hardcoded checks for Python. But at least it should give a bit of a hint on how the queries are implemented.

I should also mention that I built the parser when I was using the CodeBlocks implementation to edit the code. So, it's probably overly complicated now and has a lot of hacks to handle corner cases. My plan is to simplify it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants