codewiki generate --update --language es doesn't identify the original language the documentation was made.
Hi CodeWiki Team,
I want to report a bug that I've been dealing with recently. If you generate documentation with the flag --language, the documentation is generated without any issue, however, if you try to update the documentation in the same language as generated you will get an error saying the original documentation was generated in English. Here are the steps to reproduce:
- Select any project and generate documentation in any language besides of english.
codewiki generate --language es -o .\docs\codewiki-docs
-
Once documentation is generated, try to run a codewiki update.
codewiki generate --language es -o .\docs\codewiki-docs -
Check the errors in the terminal:
`
%% %% %%%%% %%%%% %%%%%%%% %%%%%%%%%%% %%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %%%%%%%%%%%%%%%%%%%%%%%%%%% %% %%%% %%%%%%%%%%%%%%% %%%% %%%%%% %%%%%%%%% %%%%%% %%%%% ==== %%%%%%% ==== %%%%% CodeWiki %%%% ===== %%%%% ===== %%%% v2.0.0 %%%%% ====== %%%%% ====== %%%%% AI agents document your codebase %%%%% ===== %%%%% ===== %%%%% %%%%% ===== %%%=%%% ===== %%%%% %%%%%% == %%=====%% == %%%%%% %%%%%%%% %%%%=======%%%% %%%%%%%% %%%%%%%%%%%%%%%%=====%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%===%%%%%%%%%%%%%%% %%%%%%%%%%%%%%=%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%% %%%%%%%
[1/4] Validating configuration... ✓ Configuration valid [2/4] Validating repository... ✓ Repository valid: GIP_project [09:26:29] Detected languages: Python (181 files), JavaScript (99 files) ✓ Output directory: anonymous_path\docs\codewiki-docs ✗ These docs were generated in English, but --language asks for Spanish. An incremental update cannot switch language; rerun without --update to regenerate the docs in the new language. ✗ Traceback: Traceback (most recent call last): File "anonymous_path\CodeWiki\codewiki\cli\commands\generate.py", line 655, in generate_command raise ConfigurationError(str(e)) from None codewiki.cli.utils.errors.ConfigurationError: These docs were generated in English, but --language asks for Spanish. An incremental update cannot switch language; rerun without --update to regenerate the docs in the new language. `