Skip to content

Comments

Update the setup instructions for the development environment#7036

Open
NoryGit wants to merge 4 commits intoFAForever:developfrom
NoryGit:update_dev_setup
Open

Update the setup instructions for the development environment#7036
NoryGit wants to merge 4 commits intoFAForever:developfrom
NoryGit:update_dev_setup

Conversation

@NoryGit
Copy link
Contributor

@NoryGit NoryGit commented Feb 16, 2026

Description of the proposed changes

When I was following the instructions for setting up the development environment, I noticed that some of them were no longer up to date. I also moved init_local_development.lua to the folder specified in the guide. I assume this was missed at the time.

Checklist

- [ ] Changes are annotated, including comments where useful

Summary by CodeRabbit

  • Documentation

    • Updated development setup docs to use the new local development initializer in all examples and run commands.
    • Revised Windows/BAT and Linux examples and run scripts for consistency; clarified repository path formatting and minor wording.
    • Synchronized English and Russian guides to match the updated instructions.
  • Changelog

    • Added an entry describing the development setup updates.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 16, 2026

📝 Walkthrough

Walkthrough

Replaced occurrences of init_dev.lua with init_local_development.lua across setup scripts and documentation; the Russian doc also clarifies repository path escaping and recommends using forward slashes with an added Lua locationOfRepository snippet.

Changes

Cohort / File(s) Summary
Setup docs (English & Russian)
setup/setup-english.md, setup/setup-russian.md
Replaced init_dev.lua with init_local_development.lua in examples and commands. Russian doc adds guidance on escaping repository paths, recommends forward slashes, and includes a Lua locationOfRepository snippet.
Developer docs
docs/development-start-here/lua-setup.md, docs/development/developmentEnviroment.md, docs/development/setup.md
Updated Linux/run examples (ForgedAlliance/RunProton/FADeepProbe invocations) to pass init_local_development.lua instead of init_dev.lua; flags and workflow unchanged. Minor wording fix in Windows copy instruction.
Setup script
setup/bin/dev_linux.sh
Dev run script now invokes init_local_development.lua in place of init_dev.lua; other flags unchanged.
Changelog
changelog/snippets/other.7036.md
Added changelog snippet noting the development environment setup documentation updates.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through lines to swap a name,
init_dev to local_development — gentle change.
Slashes smoothed and paths made clear,
A tiny tweak, the goal is near. 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and accurately reflects the main change: updating setup instructions for the development environment, which is clearly supported by the file summaries.
Description check ✅ Passed The description addresses the proposed changes and includes a changelog snippet per guidelines. However, it lacks testing information and does not request reviewers as suggested by the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
setup/setup-russian.md (1)

92-97: ⚠️ Potential issue | 🟡 Minor

Update the debugger examples to use the new init filename.

Similar to the English documentation, the examples in the "Подключение отладчика" (Attaching the debugger) section still reference init_dev.lua instead of the updated init_local_development.lua. This creates an inconsistency that could confuse developers.

📝 Proposed fix to update the debugger examples
 ```bat
-ForgedAlliance.exe /init "init_dev.lua" /EnableDiskWatch /showlog /log "dev.log"
+ForgedAlliance.exe /init "init_local_development.lua" /EnableDiskWatch /showlog /log "dev.log"

На:

-FADeepProbe.exe /init "init_dev.lua" /EnableDiskWatch /showlog /log "dev.log"
+FADeepProbe.exe /init "init_local_development.lua" /EnableDiskWatch /showlog /log "dev.log"
</details>

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @setup/setup-russian.md around lines 92 - 97, Update the debugger examples in
the "Подключение отладчика" section to use the new init filename by replacing
any occurrences of init_dev.lua with init_local_development.lua in the example
command lines (e.g., the ForgedAlliance.exe and FADeepProbe.exe examples), so
both commands read .../init "init_local_development.lua" /EnableDiskWatch
/showlog /log "dev.log".


</details>

</blockquote></details>
<details>
<summary>setup/setup-english.md (1)</summary><blockquote>

`129-134`: _⚠️ Potential issue_ | _🟡 Minor_

**Update the debugger examples to use the new init filename.**

The examples in the "Attaching the debugger" section still reference `init_dev.lua`, which is inconsistent with the updated filename `init_local_development.lua` mentioned earlier in the document. This could confuse developers following the setup instructions.



<details>
<summary>📝 Proposed fix to update the debugger examples</summary>

```diff
 ```bat
-ForgedAlliance.exe /init "init_dev.lua" /EnableDiskWatch /showlog /log "dev.log"
+ForgedAlliance.exe /init "init_local_development.lua" /EnableDiskWatch /showlog /log "dev.log"

To:

-FADeepProbe.exe /init "init_dev.lua" /EnableDiskWatch /showlog /log "dev.log"
+FADeepProbe.exe /init "init_local_development.lua" /EnableDiskWatch /showlog /log "dev.log"
</details>

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @setup/setup-english.md around lines 129 - 134, The debugger examples still
reference the old init filename init_dev.lua; update both command examples that
invoke ForgedAlliance.exe and FADeepProbe.exe to use the new init filename
init_local_development.lua instead (replace init_dev.lua with
init_local_development.lua in the two occurrences) so the "Attaching the
debugger" section matches the earlier filename mention.


</details>

</blockquote></details>

</blockquote></details>
🤖 Fix all issues with AI agents
Verify each finding against the current code and only fix it if needed.


In `@setup/setup-english.md`:
- Around line 129-134: The debugger examples still reference the old init
filename init_dev.lua; update both command examples that invoke
ForgedAlliance.exe and FADeepProbe.exe to use the new init filename
init_local_development.lua instead (replace init_dev.lua with
init_local_development.lua in the two occurrences) so the "Attaching the
debugger" section matches the earlier filename mention.

In `@setup/setup-russian.md`:
- Around line 92-97: Update the debugger examples in the "Подключение отладчика"
section to use the new init filename by replacing any occurrences of
init_dev.lua with init_local_development.lua in the example command lines (e.g.,
the ForgedAlliance.exe and FADeepProbe.exe examples), so both commands read
.../init "init_local_development.lua" /EnableDiskWatch /showlog /log "dev.log".

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
docs/development-start-here/lua-setup.md (1)

35-35: ⚠️ Potential issue | 🟡 Minor

Same pre-existing prose issue as in docs/development/setup.md line 35.

The text "file your fork to the the bin folder" is missing "from" and has a doubled "the". The fix is identical to the one proposed in setup.md.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/development-start-here/lua-setup.md` at line 35, Fix the typo in the
sentence at the top of docs/development-start-here/lua-setup.md: change "Copy
the `init_local_development.lua` file your fork to the the bin folder." to "Copy
the `init_local_development.lua` file from your fork to the bin folder." so it
includes the missing "from" and removes the duplicated "the".
docs/development/setup.md (1)

35-35: ⚠️ Potential issue | 🟡 Minor

Minor pre-existing prose issue on an adjacent unchanged line.

Line 35 reads: "Copy the init_local_development.lua file your fork to the the bin folder." — it is missing the word "from" and has a doubled "the". Since this PR is touching this documentation file it would be a good opportunity to fix it.

✏️ Suggested prose fix
-Copy the `init_local_development.lua` file your fork to the the bin folder.
+Copy the `init_local_development.lua` file from your fork to the bin folder.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/development/setup.md` at line 35, Fix the minor prose typo in the
sentence currently reading "Copy the `init_local_development.lua` file your fork
to the the bin folder." by inserting the missing preposition and removing the
duplicate "the" so it reads: "Copy the `init_local_development.lua` file from
your fork to the bin folder." Update this text in docs/development/setup.md
where that sentence appears.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@docs/development-start-here/lua-setup.md`:
- Line 35: Fix the typo in the sentence at the top of
docs/development-start-here/lua-setup.md: change "Copy the
`init_local_development.lua` file your fork to the the bin folder." to "Copy the
`init_local_development.lua` file from your fork to the bin folder." so it
includes the missing "from" and removes the duplicated "the".

In `@docs/development/setup.md`:
- Line 35: Fix the minor prose typo in the sentence currently reading "Copy the
`init_local_development.lua` file your fork to the the bin folder." by inserting
the missing preposition and removing the duplicate "the" so it reads: "Copy the
`init_local_development.lua` file from your fork to the bin folder." Update this
text in docs/development/setup.md where that sentence appears.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
docs/development/setup.md (1)

67-67: Consider quoting init_local_development.lua for consistency.

The Windows example (line 48) passes the init file as "init_local_development.lua", and the /log argument on this very same Linux line is also quoted ("dev.log"). Leaving the init filename unquoted is inconsistent within the example.

✏️ Suggested tweak
-$RunProton $HOME/.faforever/bin/ForgedAlliance.exe /init init_local_development.lua /showlog /log "dev.log" /EnableDiskWatch /nomovie
+$RunProton $HOME/.faforever/bin/ForgedAlliance.exe /init "init_local_development.lua" /showlog /log "dev.log" /EnableDiskWatch /nomovie
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/development/setup.md` at line 67, The command example starting with
$RunProton has the init file unquoted (/init init_local_development.lua) which
is inconsistent with the Windows example and the quoted /log "dev.log"; change
the init argument to use quotes (/init "init_local_development.lua") so the line
reads consistently (reference the command beginning with $RunProton and the
arguments /init and /log).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@docs/development/setup.md`:
- Line 67: The command example starting with $RunProton has the init file
unquoted (/init init_local_development.lua) which is inconsistent with the
Windows example and the quoted /log "dev.log"; change the init argument to use
quotes (/init "init_local_development.lua") so the line reads consistently
(reference the command beginning with $RunProton and the arguments /init and
/log).

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.

2 participants