Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`api_version` error

Open
#2,062 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, godot
Domain
build-system

Research direction

The reported failure is in tools/godotcpp.py, in _get_api_file around line 557; start by reading how the build obtains api_version and compare with the Git Bash Windows reproduction. Try the reported SCons command with the linked Tree3D project. Done means the extension builds without the missing-api_version error, or the required setup is made clear.

Written by the indexing model from the issue text.

Description

Godot version

Godot 4.5+

godot-cpp version

507ed9d840c01a3c5b2a39af8bb4000bfac30bf5

System information

Windows 10

Issue description

An error occurs in Git Bash when attempting to build the GDExtension:

$ scons target=template_release platform=windows
scons: Reading SConscript files ...
Auto-detected 4 CPU cores available for build parallelism. Using 4 cores by defa
ult. You can override it with the -j argument.
Building for architecture x86_64 on platform windows

scons: *** 'api_version' must be provided
File "E:\Tree3D\gdTree3D\godot-cpp\tools\godotcpp.py", line 557, in _get_api_fil
e

Steps to reproduce

Try to build the GDExtension.

Minimal reproduction project

Try assembling Tree3D.

Dominant language
C++
Stars
2.7k
Forks
818
Avg merge
1d 9h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from godotengine/godot-cpp

All issues in godotengine/godot-cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.