Conversation
|
Important Merge conflicts detected (Beta)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment |
There was a problem hiding this comment.
Devin Review found 4 potential issues.
🐛 4 issues in files not directly in the diff
🐛 Local search highlight object missing searchFilterParams key, uses wrong key matchCase (newIDE/app/src/EventsSheet/index.js:2436-2443)
When building effectiveSearchHighlight for the local search case (i.e., hasLocalSearchResults is true), the object uses matchCase instead of searchFilterParams as the SearchHighlight type requires. The SearchHighlight type at newIDE/app/src/EventsSheet/index.js:190 defines searchFilterParams: SearchFilterParams, but the local-search branch constructs an object with a bare matchCase key. This means downstream code reading effectiveSearchHighlight.searchFilterParams will get undefined, and any search filter parameters (like searchInConditions, searchInActions, etc.) will be lost for text highlighting in the local search case.
🐛 Navigation highlight object missing searchFilterParams key (newIDE/app/src/EventsSheet/index.js:2444-2447)
Similarly to BUG-0001, the navigation highlight branch at newIDE/app/src/EventsSheet/index.js:2444-2447 constructs an object with matchCase: false instead of searchFilterParams: { matchCase: false }. This is inconsistent with the SearchHighlight type definition at line 190 which requires searchFilterParams: SearchFilterParams. Downstream code that accesses effectiveSearchHighlight.searchFilterParams will get undefined.
⚠️ Global search searchInEvents call passes searchInEventSentences but SearchFilterParams doesn't guarantee it's defined (newIDE/app/src/Utils/EventsGlobalSearchScanner.js:104-114)
In newIDE/app/src/Utils/EventsGlobalSearchScanner.js:112, the code passes inputs.searchFilterParams.searchInEventSentences to gd.EventsRefactorer.searchInEvents. However, the SearchFilterParams type in newIDE/app/src/Utils/Search.js declares searchInEventSentences as optional (searchInEventSentences?: boolean). The GlobalSearchInputs type uses Required<SearchFilterParams> but only the global search form sets these values. If a caller doesn't provide searchInEventSentences, it would pass undefined to the C++ binding which may be coerced to false, silently disabling sentence-based searching. This is a minor API contract issue since the type says Required but the underlying SearchFilterParams has optional fields.
⚠️ setCurrentCallContextId is not reset to 0 if a wrapped method throws (GDevelop.js/Bindings/postjs.js:529-541)
In the use-after-free detection wrapper in GDevelop.js/Bindings/postjs.js, setCurrentCallContextId(wrappedContextId) is called before original.apply(this, arguments), but the reset setCurrentCallContextId(0) is only reached if the method returns normally. If the wrapped C++ method throws an exception, the context ID remains set to the throwing method's ID. This means any subsequent object destructions (e.g., in cleanup/finally blocks) will be incorrectly attributed to the method that threw. While not a crash, it degrades the accuracy of the diagnostic information this feature is specifically designed to provide.
View 6 additional findings in Devin Review.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
* 3dstickerpro (#20) * Sticker3DBehavior * small fix * offset modes * fix destroy checkbox * 3dstickerpro (#21) * Sticker3DBehavior * small fix * offset modes * fix destroy checkbox * Fix a crash updating an extension when importing a GDO file and the extension tab is open (4ian#8412) - Don't show in changelog * Fix potential crashes of the Objects panel (4ian#8413) * Add Ctrl/Cmd+K as a secondary shortcut for command palette (4ian#8415) * Remove useless wiki search integration from the Command Palette (4ian#8416) * Fix embedded resource links when importing a GDO (4ian#8419) * Display better certificate errors (4ian#8421) * Fix native menu wrongly shown when right clicking a tab on the web-app * Fix native context menu wrongly shown in Events Sheets on the web-app * Fix a crash when removing a behavior while the behavior overriding is displayed in the side panel (4ian#8427) * Redesign the object/behavior configuration editor in extensions to be more compact (4ian#8425) * Update the tree of functions in extensions editor with a new set of icons (4ian#8424) * [Auto PR] Update translations (4ian#8382) * Bump to 262 (4ian#8428) * Save the scroll position of JS code events when closing and opening tabs (4ian#8417) * Add a preference to enable the display of type errors in JavaScript events (4ian#8429) * Replace SearchBar with CompactSearchBar in property and function lists (4ian#8430) --------- Co-authored-by: D8H <Davy.Helard@gmail.com> Co-authored-by: Florian Rival <Florian.rival@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Clément Pasteau <4895034+ClementPasteau@users.noreply.github.com>
* Sticker3DBehavior * small fix * offset modes * fix destroy checkbox * 01 (#22) * 3dstickerpro (#20) * Sticker3DBehavior * small fix * offset modes * fix destroy checkbox * 3dstickerpro (#21) * Sticker3DBehavior * small fix * offset modes * fix destroy checkbox * Fix a crash updating an extension when importing a GDO file and the extension tab is open (4ian#8412) - Don't show in changelog * Fix potential crashes of the Objects panel (4ian#8413) * Add Ctrl/Cmd+K as a secondary shortcut for command palette (4ian#8415) * Remove useless wiki search integration from the Command Palette (4ian#8416) * Fix embedded resource links when importing a GDO (4ian#8419) * Display better certificate errors (4ian#8421) * Fix native menu wrongly shown when right clicking a tab on the web-app * Fix native context menu wrongly shown in Events Sheets on the web-app * Fix a crash when removing a behavior while the behavior overriding is displayed in the side panel (4ian#8427) * Redesign the object/behavior configuration editor in extensions to be more compact (4ian#8425) * Update the tree of functions in extensions editor with a new set of icons (4ian#8424) * [Auto PR] Update translations (4ian#8382) * Bump to 262 (4ian#8428) * Save the scroll position of JS code events when closing and opening tabs (4ian#8417) * Add a preference to enable the display of type errors in JavaScript events (4ian#8429) * Replace SearchBar with CompactSearchBar in property and function lists (4ian#8430) --------- Co-authored-by: D8H <Davy.Helard@gmail.com> Co-authored-by: Florian Rival <Florian.rival@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Clément Pasteau <4895034+ClementPasteau@users.noreply.github.com> --------- Co-authored-by: D8H <Davy.Helard@gmail.com> Co-authored-by: Florian Rival <Florian.rival@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Clément Pasteau <4895034+ClementPasteau@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.