Skip to content

Conversation

@60k41p
Copy link

@60k41p 60k41p commented Jan 1, 2026

Repro only; not meant to be merged.

How to reproduce

Input FlecsScript

I have included test.{CRLF|LF}.flecs that are encoded using the different line endings, the contents of which is just the first example snippet on https://www.flecs.dev/flecs/md_docs_2FlecsScript.html.

Note that git may automatically convert the line endings during file check-in. We don't want that to happen during this repro, so it's probably a good idea to run git config core.autocrlf false to turn that off.

If needed, on Linux & macOS use unix2dos -v to re-generate the CRLF version of the file. This tool can be installed via brew install dos2unix on macOS.

Reproducing

$ ./compile.sh
+ gcc-15 -c ../../distr/flecs.c -std=c99 -O2 -o flecs.o
+ g++-15 repro.cpp flecs.o -o repro -std=c++17 -lpthread

a@n8:~/src/flecs/_REPRO/crlf-script-loading$ ./repro test.CRLF.flecs
error: test.CRLF.flecs: 4: expected '
'
  value = f32
            ^
Error running script

a@n8:~/src/flecs/_REPRO/crlf-script-loading$ ./repro test.LF.flecs
Script 'test.LF.flecs' executed successfully.

@60k41p
Copy link
Author

60k41p commented Jan 1, 2026

Sorry, I meant to open this PR on my own fork.

I may open a fix PR here separately.

@60k41p 60k41p closed this Jan 1, 2026
@60k41p
Copy link
Author

60k41p commented Jan 3, 2026

See VerdantInteractive#1

@60k41p
Copy link
Author

60k41p commented Jan 3, 2026

Fix: #1900
Seems to have had a false failure on one of the CI checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant