Skip to content

Can't build library #116

@valepakh

Description

@valepakh

Describe the bug
downloadSource tasks fail due to the wrong versions of the parsers:

Execution failed for task ':tree-sitter-capnp:downloadSource'.
> java.io.FileNotFoundException: https://codeload.github.com/tree-sitter-grammars/tree-sitter-capnp/zip/refs/tags/v1.5.0a

This happens because the version in the tree-sitter-capnp/gradle.properties is 1.5.0a and download URL for it is https://github.com/amaanq/tree-sitter-capnp/archive/refs/tags/v${version}.zip

This happens for some other libraries as well.
Libraries that have hardcoded URLs the build fails because DownloadSourceTask uses again wrong version from the properties file to unzip the file.
Example: tree-sitter-ada version is master-a, we download hardcoded https://codeload.github.com/briot/tree-sitter-ada/zip/refs/heads/master and when we unzip it, it unzip to the master directory, not the master-a, so the build fails.

Expected behavior
./gradlew :tree-sitter:buildNative works

OS and Java version

  • OS: Windows
  • Java version: 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions