I was able to compile Godot from source successfully but now I'm trying to create a visual studio solution for compiling godot from source, but it's not working. I've tried with multiple versions of Godot, rn I am trying with 3.5.2. I am using Python 3.11 from Microsoft Store and VS 2019, following steps here: https://docs.godotengine.org/en/3.5/development/compiling/compiling_for_windows.html

C:\Users\-\Documents\Compiling\godot>scons p=windows vsproj=yes
scons: Reading SConscript files ...
Auto-detected 8 CPU cores available for build parallelism. Using 7 cores by default. You can override it with the -j argument.
Configuring for Windows: target=debug, bits=default
Found MSVC version 14.2, arch amd64, bits=64
Note: Building a debug binary (which will run slowly). Use `target=release_debug` to build an optimized release binary.
TypeError: can only concatenate deque (not "list") to deque:
  File "C:\Users\-\Documents\Compiling\godot\SConstruct", line 730:
    methods.generate_vs_project(env, GetOption("num_jobs"))
  File "C:\Users\-\Documents\Compiling\godot\methods.py", line 816:
    module_configs = ModuleConfigs()
  File "C:\Users\-\Documents\Compiling\godot\methods.py", line 731:
    self.add_mode()  # default
  File "C:\Users\-\Documents\Compiling\godot\methods.py", line 754:
    self.arg_dict["cppdefines"] += ModuleConfigs.for_every_variant(env["CPPDEFINES"] + defines)

what i am doing wrong?

    At the risk of drawing the ire of the Mods for extreme Pedantry/Grammar Nazi-ism, when you're typing in code and stuff, watch your spelling, it's VERY sensitive.

    fakenewsic
    I also ran into the same problem today. I solved it by replacing line 788 in methods.py.

    from

    self.arg_dict["cppdefines"] += ModuleConfigs.for_every_variant(env["CPPDEFINES"] + defines)

    to
    self.arg_dict["cppdefines"] += ModuleConfigs.for_every_variant( [ define for define in env["CPPDEFINES"] ] + defines)