Open MikeSchulze opened 5 months ago
After some testing, I was able to reproduce this problem.
Just delete the .godot folder and execute the command line: --path ./ --import --build-solutions --headless
MRP project: TestGodotImportBuildCommandLine.zip
I'm pretty certain that the problem is caused by the fact that the global_script_class_cache.cfg
file does not exist so global classes are not loaded when trying to import and compile all in one shot.
I tried the same project and command line with the fix from #92303 it worked perfectly.
@Hilderin thanks for the feedback 👍
I get the same behaviour with the plain gdscript version and the godot-jolt add on installed, it hangs forever the first time.
It also doesn't matter if I use godot --headless --editor --quit
or godot --headless --import
, same behaviour.
I tested on 4.3 master branch and I'm able to reproduce the problem with a bare project with only one scene and the godot-jolt addon.
I also tested the same project with the PR #93972 and removing the .godot folder and the command line does not hang anymore. I tested --headless --editor --quit
and --headless --import
on Windows 11 with the console.exe
.
MRP (I removed the android and ios library of jolt to fit in a zip less then 25mo): test-godot-jolt-addon.zip
Tested versions
v4.2.2.stable.mono.official [15073afe3]
System information
Windows
Issue description
I tested the new
--import
option to remove the Godot cache rebuild hack. But it shows still the same plugin loading errors when using in combination with--build-solutions
$GODOT_BIN --path ./ --import --build-solutions --headless
Using the options in separate calls works without showing any errors.
And both option do loading the plugins, but it should only reimport resources or compile the c# classes. More critical is the usage of
--build-solutions --headless
it runs editor forever and needs to be manually killed. From the documentation:It is not a build only it runs the editor too.
Steps to reproduce
run this command
The editor finally hangs, I would expect the process to do only reimport and compile the c# classes. Even if it is expected that with
--build-solutions
the editor started it produces the errors and makes--import
uselessat least using
--import --headless
shows also the errorsMinimal reproduction project (MRP)
n/a