Kotlin / kotlin-fullstack-sample

Kotlin Full-stack Application Example
https://kotlinlang.org
Apache License 2.0
1.21k stars 169 forks source link

Not able to load source map #8

Open StokeMasterJack opened 7 years ago

StokeMasterJack commented 7 years ago

Cannot find resource with the requested URI: /frontend/kotlinx-html-js.js.map

cy6erGn0m commented 7 years ago

Most likely frontend plugin doesn't unpack source maps

andrewarrow commented 7 years ago

making progress with this one:

sm

I found the file needed (kotlinx-html-js.js.map) in:

frontend/build/tmp/expandedArchives/kotlinx-html-js-0.6.2.jar_e71v0axznn9quz3zm11v28wlo/

but this only leads to paths like:

/mnt/agent/work/98f895b616b33a5e/target/checkout/shared/src/main/kotlin/generated/gen-tags-a.kt

and that path is deep inside my frontend/build/node_modules/ dir

not just gen-tags-a but lots of them like:

/mnt/agent/work/98f895b616b33a5e/target/checkout/shared/src/main/kotlin/filter-consumer.kt /mnt/agent/work/98f895b616b33a5e/target/checkout/shared/src/main/kotlin/delayed-consumer.kt /mnt/agent/work/98f895b616b33a5e/target/checkout/shared/src/main/kotlin/generated/gen-tag-unions.kt etc

The NPE at line 51 of gen-tags-a.kt is nice, but I want to see the line number in my kt file. Why does it stop at gen-tags-a when I'm causing the NPE inside my app?

andrewarrow commented 7 years ago

fyi from Alexey Andreev:

Please, try EAP 1.1.4, which contains a lot of fixes for source maps