Verified Commit c942f19a authored by Konstantin Kopper's avatar Konstantin Kopper
Browse files

Initialise code mapping of debugger after saving the executed file

parent dd77c0ff
Pipeline #13967 passed with stages
in 5 minutes and 52 seconds
......@@ -28,6 +28,9 @@ Use the following template:
-->
## [Unreleased][]
### Fixed
* Autocompletion no longer triggered on `<?`.
* Debugger initialises internal code mapping only after saving the executed file.
## [2.0.3][] - 2019-05-28
### Added
......
......@@ -34,16 +34,14 @@ class FXDebugger(toBeExecuted: File, out: OutputStream, err: OutputStream, owner
* @author Konstantin Kopper
* @since 2.0.0
*/
internal val pseuCoLines: Map<Int, String>
constructor(toBeExecuted: File, owner: Window) : this(toBeExecuted, System.out, System.err, owner)
init {
pseuCoLines = super.toBeExecuted.bufferedReader().useLines {
internal val pseuCoLines: Map<Int, String> by lazy {
super.toBeExecuted.bufferedReader().useLines {
it.mapIndexed { index, s -> index + 1 to s.trim() }.toMap()
}
}
constructor(toBeExecuted: File, owner: Window) : this(toBeExecuted, System.out, System.err, owner)
override fun executeGeneratedJavaCode() {
val classLoader = URLClassLoader(arrayOf(this.includeDir.absoluteFile.parentFile.toURI().toURL()))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment