[Bug] ArgumentException: Button text exceeds 64 characters in Welcome Screen
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
Research direction
Open FastScriptReloadWelcomeScreen.cs and inspect EnsureUserAwareOfAutoRefresh() around line 988. Confirm the button text passed to Unity's DisplayDialogComplex exceeds the limit, then shorten it as described in the issue. Reproduce the welcome-screen initialization in Unity and verify the dialog appears without an ArgumentException.
Written by the indexing model from the issue text.
Description
[Bug] ArgumentException: Button text exceeds 64 characters in Welcome Screen
Description
In Fast Script Reload v1.8, the editor throws a System.ArgumentException during the initialization of the welcome screen. This prevents the "Auto-Refresh Awareness" dialog from appearing and can crash the editor initialization process.
The error is caused by a button text that is 65 characters long, which exceeds Unity's internal limit of 64 characters for EditorUtility.DisplayDialogComplex.
Error Log
System.ArgumentException: Text on buttons must be less than 64 characters long.
Parameter name: defaultButtonText
at UnityEditor.EditorDialog.ThrowIfButtonTextIsInvalid (System.String buttonText, System.String parameterName)
at UnityEditor.EditorUtility.DisplayDialogComplex (System.String title, System.String message, System.String ok, System.String cancel, System.String alt)
at FastScriptReload.Editor.FastScriptReloadWelcomeScreenInitializer.EnsureUserAwareOfAutoRefresh ()
Technical Details
- File: FastScriptReloadWelcomeScreen.cs
- Method: EnsureUserAwareOfAutoRefresh()
- Line: ~988
- Offending String: "Ok, disable asset auto refresh (I'll refresh manually when needed)" (Count: 65)
Steps to Reproduce
- Import Fast Script Reload v1.8 into a Unity project.
- Ensure Unity's "Auto Refresh" is enabled in Preferences.
- Restart the editor or wait for the
InitializeOnLoadcall to trigger the welcome screen.
Suggested Fix
Shorten the button text to 64 characters or fewer.
Original:
"Ok, disable asset auto refresh (I'll refresh manually when needed)"
Suggested Change:
"Disable auto refresh (I'll refresh manually)" (44 characters)
Screeenshots
Reporter: Umutcan Ekinci, 2nd Year Software Engineering Student at Yaşar University
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from handzlikchris/FastScriptReload
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
csc.rsp support Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
handzlikchris/FastScriptReload#203 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
handzlikchris/FastScriptReload#197 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in handzlikchris/FastScriptReload
Similar issues
-
[Feat] 조합 영역 구분선 개선 Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100