| Summary: | view.selection() returns ReferenceError: Range is not defined | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | loma <lomaharshana> |
| Component: | scripting | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | christoph, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 22.04.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/commit/0b593672fe32b2e359e3fc10390ad4c97617b7d4 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
loma
2022-07-14 05:18:01 UTC
Hmm, interesting, just looking at the code in KTextEditor I don't spot the obvious error. Can you share the script? A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/530 Git commit aad8b713f26858853052eb4f7eaa33682a7b7ad6 by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 29/03/2023 at 08:20. Pushed by cullmann into branch 'master'. Include range.js when initializing the engine Otherwise if one tries to use methods that return a range it results in an error. M +6 -1 src/script/katescript.cpp https://invent.kde.org/frameworks/ktexteditor/commit/aad8b713f26858853052eb4f7eaa33682a7b7ad6 Git commit 0b593672fe32b2e359e3fc10390ad4c97617b7d4 by Waqar Ahmed. Committed on 04/04/2023 at 18:55. Pushed by cullmann into branch 'kf5'. Include range.js when initializing the engine Otherwise if one tries to use methods that return a range it results in an error. M +6 -1 src/script/katescript.cpp https://invent.kde.org/frameworks/ktexteditor/commit/0b593672fe32b2e359e3fc10390ad4c97617b7d4 |