Regarding adding language support in Dolos API #1187
-
I am using the dolos API running in the docker container. I was trying to compare two swift files but I got the error saying that The module 'tree-sitter-swift' could not be found. Try to install it using npm or yarn, but it may not be supported (yet). So, how do I add the support? I tried adding npm install -g tree-sitter-c-sharp in docker-compose.yaml file, but it didn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Could someone please answer this question? I've attached a screenshot for your reference. |
Beta Was this translation helpful? Give feedback.
-
When installing additiona Lines 4 to 7 in aa03538 |
Beta Was this translation helpful? Give feedback.
-
I notice you're using our In addition, we can add languages to the official language list of Dolos. This way, you can use our public server as well (https://dolos.ugent.be/server/). Which additional languages do you want us to support? |
Beta Was this translation helpful? Give feedback.
-
Actually, the thing is , we have used the Dolos API for comparing the two files in the same language and store the respective parameters like: similarity, longest fragment etc., in a database.(MongoDB). So, right now, I am using it for local, but we are planning to deploy it to staging and then eventually production later this week. |
Beta Was this translation helpful? Give feedback.
-
Ok, for the time being, I'm going to use only the supported languages. Please try adding support for the languages mentioned above. |
Beta Was this translation helpful? Give feedback.
Hi @AashiqAhmed-Zessta,
When installing additiona
tree-sitter
parsers in the dockerfile, you will need to have thepython3
andbuild-base
packages present as well. You can look at theDockerfile
for an example:dolos/docker/Dockerfile
Lines 4 to 7 in aa03538