Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [0.0.5] - 2026-07-21

**Codename**: "Stabilization & Engine Modernization"

After 8 months of dormancy (last commit October 2025), this release returns
the project to a healthy, current baseline before resuming feature work:
lands two PRs that had been finished-but-unmerged since October, pays down
accumulated documentation debt, and upgrades the Godot binding stack
(gdext 0.4.5 → 0.5.4, targeting Godot 4.7) rather than letting the drift
compound further.

### Added

- Source span tracking (`Position`/`Span` in `crates/compiler/src/span.rs`) across AST, parser, and type checker — foundation for future LSP support (#59)
- `rust-version = "1.94"` MSRV declaration and Rust Edition 2024 across the workspace

### Changed

- **BREAKING (internal)**: Upgraded `godot` (gdext) dependency from 0.4.5 → 0.5.4, targeting Godot API level 4.7 (`api-4-7` feature, was `api-4-3`)
- `godot_test/ferrisscript.gdextension`: `compatibility_minimum` 4.1 → 4.2
- `godot_test/project.godot`: engine features "4.5" → "4.7"
- `crates/godot_bind/src/lib.rs`: `PropertyInfo`/`PropertyHintInfo` moved from `godot::meta` to `godot::register::info`; `export_info_functions` renamed `export_fns`; `PropertyInfo.class_id: ClassId` replaced by `class_name: StringName`; Inspector virtuals renamed `get_property_list`/`get_property`/`set_property` → `on_get_property_list`/`on_get`/`on_set`
- `Cargo.lock` is now committed (previously gitignored) for reproducible builds of the cdylib/binary artifacts this workspace ships
- README prerequisites narrowed to reflect what's actually tested: "Rust 1.94+ with Edition 2024", "Godot 4.2+ (tested against 4.7)"

### Fixed

- `.gdextension` library paths on Linux/macOS were missing the `lib` prefix cargo adds to cdylibs — the extension never loaded on non-Windows platforms (#61)
- Test harness (`ferris-test`) deleted its own source `.ferris` scripts when the scripts directory under test was the project's live scripts directory (#61)
- Inspector properties now clear when a script fails to compile, instead of showing stale values from the last successful load (#60)
- Restored `docs/archive/` and `docs/planning/technical/` (accidentally deleted in earlier merges), fixing dangling links across CHANGELOG/RELEASE_NOTES/planning docs (#62)
- `godot_test/scripts/godot_bind_tests.gd` used invalid `PropertyHint.NONE`-style enum access; fixed to use GDScript's flat `PROPERTY_HINT_*` constants, unblocking the headless integration test suite

---

## [0.0.4] - 2025-10-08

**Codename**: "Godot API Expansion" 🔔🌳
Expand Down
46 changes: 22 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ members = [
]

[workspace.package]
version = "0.0.4"
edition = "2021"
version = "0.0.5"
edition = "2024"
rust-version = "1.94"
authors = ["FerrisScript Contributors"]
license = "MIT"

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ See [extensions/vscode/README.md](extensions/vscode/README.md) for full features

### Prerequisites

- **Rust 1.70+** ([Install Rust](https://www.rust-lang.org/tools/install))
- **Godot 4.2+** ([Download Godot](https://godotengine.org/download))
- **Rust 1.94+ with Edition 2024** ([Install Rust](https://www.rust-lang.org/tools/install))
- **Godot 4.2+ (tested against 4.7)** ([Download Godot](https://godotengine.org/download))
- **Git** (for cloning the repository)

### Installation
Expand All @@ -232,10 +232,10 @@ cargo test --workspace
cargo build --package ferrisscript_godot_bind
```

> **Note for Godot 4.3+**: The project is configured with `api-4-3` feature for compatibility. If you encounter initialization errors, ensure `crates/godot_bind/Cargo.toml` has the correct API version feature enabled.
> The project is configured with the `api-4-7` feature (`crates/godot_bind/Cargo.toml`), matching `godot_test`'s `compatibility_minimum = 4.2` and the Godot 4.7 editor it's tested against. If you encounter initialization errors on a different Godot version, check that this feature matches your engine's minor version.

2. **Open the test project:**
- Open Godot 4.2+
- Open Godot 4.2+ (tested against 4.7)
- Import project from `godot_test/project.godot`

3. **Create your first script:**
Expand Down
43 changes: 43 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,49 @@

---

## v0.0.5 - Stabilization & Engine Modernization (July 21, 2026)

**Status**: ✅ Complete
**Tag**: `v0.0.5`
**Codename**: "Stabilization & Engine Modernization"

### 🎉 Highlights

After 8 months of dormancy (last commit October 2025), this release returns FerrisScript to a healthy, current baseline before resuming feature work. It lands two PRs that had been finished-but-unmerged since October, restores documentation lost to earlier merge mishaps, and upgrades the Godot binding stack rather than letting the version drift compound further.

### 🌟 What's New

#### Stabilization

- **Source span tracking**: `Position`/`Span` structs across AST, parser, and type checker (`crates/compiler/src/span.rs`) — foundation for future LSP work
- **Inspector property refresh fix**: properties now clear when a `.ferris` script fails to compile, instead of showing stale values from the last successful load
- **Linux/macOS extension loading fix**: `.gdextension` library paths were missing the `lib` prefix cargo adds to cdylibs — the extension had never loaded on non-Windows platforms until this release
- Restored `docs/archive/` (97 files) and `docs/planning/technical/` (9 files), accidentally deleted in October 2025 merges, fixing dangling links throughout the docs

#### Engine Modernization

- **gdext upgraded 0.4.5 → 0.5.4**, targeting Godot API level 4.7 (was 4.3)
- **Rust Edition 2021 → 2024**, MSRV declared at 1.94
- Inspector integration code migrated to the 0.5 API: `PropertyInfo`/`PropertyHintInfo` module relocation, `export_info_functions` → `export_fns`, and the `get_property_list`/`get_property`/`set_property` virtuals renamed to `on_get_property_list`/`on_get`/`on_set`
- `godot_test` project bumped to Godot 4.7; `Cargo.lock` now committed for reproducible builds

### 📦 Dependencies & Compatibility

- **Rust**: 1.94+ with Edition 2024 · **Godot**: 4.2+ (tested against 4.7) · **gdext**: 0.5.4
- No FerrisScript language changes — `.ferris` scripts from v0.0.4 work unchanged

### 📊 Metrics

- **Tests**: 883 passing across the workspace, unchanged pass rate on the `ferris-test` integration corpus (19/33 — remaining failures are pre-existing test-script drift against unimplemented language features)
- **PRs merged**: #59, #60, #61, #62, #63

### 🔗 Resources

- **Full Changelog**: [CHANGELOG.md v0.0.5](CHANGELOG.md#005---2026-07-21)
- **Roadmap**: [ROADMAP_MASTER.md](docs/planning/ROADMAP_MASTER.md) — note the v0.0.5 LSP plan is renumbered to v0.0.6

---

## v0.0.4 - Godot API Expansion (October 8, 2025)

**Status**: ✅ Complete
Expand Down
5 changes: 3 additions & 2 deletions crates/compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "ferrisscript_compiler"
version = "0.0.3"
edition = "2021"
version.workspace = true
edition.workspace = true
rust-version.workspace = true

[dependencies]

Expand Down
2 changes: 1 addition & 1 deletion crates/compiler/benches/compiler_benchmarks.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
use criterion::{BenchmarkId, Criterion, criterion_group, criterion_main};
use ferrisscript_compiler::{lexer, parser, type_checker};
use std::hint::black_box;

Expand Down
8 changes: 6 additions & 2 deletions crates/compiler/src/error_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,9 @@ mod tests {
#[test]
fn test_get_docs_url_default() {
// Without FERRIS_DOCS_BASE env var, should return GitHub Pages URL with proper anchors
std::env::remove_var("FERRIS_DOCS_BASE");
unsafe {
std::env::remove_var("FERRIS_DOCS_BASE");
}

let url = ErrorCode::E001.get_docs_url();
assert!(url.contains("github.io"));
Expand All @@ -757,7 +759,9 @@ mod tests {
#[test]
fn test_get_docs_url_format() {
// Test URL format structure with proper GitHub Pages slugification
std::env::remove_var("FERRIS_DOCS_BASE");
unsafe {
std::env::remove_var("FERRIS_DOCS_BASE");
}

// Test that URLs are well-formed
let url = ErrorCode::E001.get_docs_url();
Expand Down
10 changes: 5 additions & 5 deletions crates/compiler/src/error_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ pub fn extract_source_context_with_pointer(
));

// Insert pointer right after the error line
if line_num == error_line {
if let Some(column) = error_column {
let pointer = format_error_pointer(column, line_num_width, hint);
result.push_str(&pointer);
}
if line_num == error_line
&& let Some(column) = error_column
{
let pointer = format_error_pointer(column, line_num_width, hint);
result.push_str(&pointer);
}
}

Expand Down
5 changes: 4 additions & 1 deletion crates/compiler/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ impl<'a> Lexer<'a> {
self.source,
self.line,
self.column,
&format!("Unknown escape '\\{}', valid escapes are \\n \\t \\r \\\\ \\\"", ch),
&format!(
"Unknown escape '\\{}', valid escapes are \\n \\t \\r \\\\ \\\"",
ch
),
));
}
None => {
Expand Down
12 changes: 6 additions & 6 deletions crates/compiler/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ impl<'a> Parser<'a> {
// Check if previous token was a statement boundary
if self.position > 0 {
let prev_idx = self.position - 1;
if let Some(pt) = self.tokens.get(prev_idx) {
if matches!(pt.token, Token::Semicolon) {
self.panic_mode = false;
return;
}
if let Some(pt) = self.tokens.get(prev_idx)
&& matches!(pt.token, Token::Semicolon)
{
self.panic_mode = false;
return;
}
}

Expand Down Expand Up @@ -1109,7 +1109,7 @@ impl<'a> Parser<'a> {
t.name(),
self.current_line,
self.current_column
))
));
}
};
self.advance();
Expand Down
Loading
Loading