Tagged: compiler, eslint, External Tools, jump, Output Bar
- AuthorPosts
- April 15, 2024 at 3:18 pm #29780jesus2099Participant
I have set up an external tool (npx eslint –format compact “$(FilenameEx)”) to check my javascript files.
{...}test.user.js: line 865, col 8, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 866, col 123, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 868, col 55, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 873, col 145, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 874, col 146, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 876, col 175, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 877, col 174, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 883, col 52, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 887, col 86, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 893, col 9, Warning - 'xhr' used outside of binding context. (block-scoped-var) {...}test.user.js: line 894, col 5, Warning - 'xhr' used outside of binding context. (block-scoped-var) {...}test.user.js: line 911, col 5, Warning - 'xhr' used outside of binding context. (block-scoped-var) {...}test.user.js: line 911, col 21, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 912, col 5, Warning - 'xhr' used outside of binding context. (block-scoped-var) {...}test.user.js: line 919, col 8, Error - 'refine' is already defined. (no-redeclare) {...}test.user.js: line 924, col 6, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 925, col 6, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 925, col 15, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 930, col 52, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 938, col 54, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 943, col 54, Warning - 'refine' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1259, col 13, Warning - 't' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1259, col 20, Warning - 't' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1259, col 47, Warning - 't' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1260, col 30, Warning - 't' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1263, col 13, Error - 't' is already defined. (no-redeclare) {...}test.user.js: line 1263, col 13, Warning - 't' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1263, col 20, Warning - 't' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1263, col 47, Warning - 't' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1264, col 30, Warning - 't' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1486, col 9, Error - 'xhr' is already defined. (no-redeclare) {...}test.user.js: line 1486, col 9, Warning - 'xhr' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1487, col 5, Warning - 'xhr' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1507, col 7, Error - Mixed spaces and tabs. (no-mixed-spaces-and-tabs) {...}test.user.js: line 1508, col 7, Error - Mixed spaces and tabs. (no-mixed-spaces-and-tabs) {...}test.user.js: line 1509, col 7, Error - Mixed spaces and tabs. (no-mixed-spaces-and-tabs) {...}test.user.js: line 1510, col 7, Error - Mixed spaces and tabs. (no-mixed-spaces-and-tabs) {...}test.user.js: line 1528, col 45, Error - Missing semicolon. (semi) {...}test.user.js: line 1576, col 5, Warning - 'xhr' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1577, col 5, Warning - 'xhr' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1691, col 2, Warning - 'releaseEditor' used outside of binding context. (block-scoped-var) {...}test.user.js: line 1692, col 2, Warning - 'releaseEditor' used outside of binding context. (block-scoped-var) 42 problems
I expect to be able to click on the the errors and that would make my cursor jump to that position in my file.
But nothing happens, I also tried another format (without –format compact) and also tried right-click Jump and nothing happens, either.What format does the Output Bar expect to enable the Jump feature?
May 8, 2024 at 9:04 am #29790Yutaka EmuraKeymasterHello,
I am sorry for my late reply. Please select “Tag Links” on the View menu. If you can’t find this command, please go to Search Commands on the Help menu, and search for “Tag Links”.
You can also press the F10 key to jump to the specified line even if tags are not hyperlinked.
Thanks,
May 8, 2024 at 4:19 pm #29794jesus2099ParticipantThanks anyway.
I have tried Tag Links:
https://imgur.com/a/o4qaCie
The error says “Specified file is not found”.I have tried F10 (while in the Ouput panel):
https://imgur.com/a/Ho6k7vw
It selects a line in the Output but does not bring me to the source code panel mentioned row and column.May 8, 2024 at 8:15 pm #29795Yutaka EmuraKeymasterPlease go to the Edit page of the Customize dialog, check Specify Tag Format using Regular Expressions, and enter :
^([\w\\\- \:\.&\$%~!\(\)]*?): line (\d+), col (\d+).*
I noticed there was a bug while highlighting and clicking the hyperlink if the file path or line number contains the column number. I will fix this issue on the next version. If the clicking hyperlink does not work, please press F10.
- AuthorPosts
- You must be logged in to reply to this topic.