After creating a new branch or project version the code is not automatically generated. However a lot of functionality will not work until you generated the code.
Please add a tickbox generate code groups to the tasks create new project version (also when a new project version is created from the creation process and to the create branch task.
If you ask me this tickbox should be activate by default, but I like to hear your opinions on it as I mostly work on single person projects.