Skip to content

bug: No url found for submodule path 'examples/nqc' in .gitmodules #2

@yzx9

Description

@yzx9

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

The examples/nqc directory contains an unknown link that is recognized as a Git submodule, but no corresponding .gitmodules entry is found in the repository root. This causes the clone operation to fail.

This bug is particularly annoying when a user embeds tree-sitter-nqc as a Git submodule and initializes submodules recursively using:

git submodule update --init --force --depth=1 --recursive

Here is an example of the issue in action.

Steps To Reproduce/Bad Parse Tree

  1. git clone [email protected]:tree-sitter-grammars/tree-sitter-nqc.git
  2. cd tree-sitter-nqc
  3. git update --init

Error:

fatal: No url found for submodule path 'examples/nqc' in .gitmodules

Expected Behavior/Parse Tree

No error

Repro

No response


cc: @amaanq

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions