Libraryless. Click here for Pure Java version (14762L/103K).
!7 sclass ShowErrorLine extends DynTextArea { transient L<S> lastOne; void start { dm_requireModule("#1016638/LineAtMouse"); doEvery(1.0, r updateMe); } void update { O mod = dm_moduleOfType("#1016638/LineAtMouse"); S text = castCall(mod, 'getText); if (empty(text)) ret; L<S> l = regexpFirstGroups([[\(m(\d+)\.java:(\d+)\)]], text); //print("Have groups: " + l); if (empty(l) || eq(lastOne, l)) ret; lastOne = l; S progID = fsI(first(l)); int line = parseInt(second(l)); setModuleName("Error line " + progID + " : " + line); setText(getServerTranspiledWithoutLibs(progID)); textAreaGoToRow(textArea, line); } }
Began life as a copy of #1012341
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016639 |
Snippet name: | Show Error Line [Dyn Module] |
Eternal ID of this version: | #1016639/10 |
Text MD5: | 6de91e2be6ba1ac60875486532f96fca |
Transpilation MD5: | 6ce0b5fe3d79909bab59b0f3ae7ac9d2 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-07 15:48:45 |
Source code size: | 720 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 412 / 763 |
Version history: | 9 change(s) |
Referenced in: | [show references] |