{"action":"created","issue":{"url":"https://api.github.com/repos/mads-hartmann/bash-language-server/issues/77","repository_url":"https://api.github.com/repos/mads-hartmann/bash-language-server","labels_url":"https://api.github.com/repos/mads-hartmann/bash-language-server/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/mads-hartmann/bash-language-server/issues/77/comments","events_url":"https://api.github.com/repos/mads-hartmann/bash-language-server/issues/77/events","html_url":"https://github.com/mads-hartmann/bash-language-server/issues/77","id":352668625,"node_id":"MDU6SXNzdWUzNTI2Njg2MjU=","number":77,"title":"Extension reports errors everywhere, not just where they happen","user":{"login":"achekulaev","id":402007,"node_id":"MDQ6VXNlcjQwMjAwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/402007?v=4","gravatar_id":"","url":"https://api.github.com/users/achekulaev","html_url":"https://github.com/achekulaev","followers_url":"https://api.github.com/users/achekulaev/followers","following_url":"https://api.github.com/users/achekulaev/following{/other_user}","gists_url":"https://api.github.com/users/achekulaev/gists{/gist_id}","starred_url":"https://api.github.com/users/achekulaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achekulaev/subscriptions","organizations_url":"https://api.github.com/users/achekulaev/orgs","repos_url":"https://api.github.com/users/achekulaev/repos","events_url":"https://api.github.com/users/achekulaev/events{/privacy}","received_events_url":"https://api.github.com/users/achekulaev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-21T19:00:05Z","updated_at":"2018-09-05T19:35:24Z","closed_at":null,"author_association":"NONE","body":"This one seems to be related to this extension rather then tree-sitter, correct me if I am wrong. \r\n\r\nBash IDE highlights the whole function (or even the whole file!) as erroneous, despite parsing error actually happens only in a single line of the function. Example:\r\n\r\n<img width=\"382\" alt=\"ex3\" src=\"https://user-images.githubusercontent.com/402007/44422884-7134ff00-a552-11e8-87e3-db0a7c2ecba2.png\">\r\n\r\nAnd even worse when it is the whole file\r\n\r\n<img width=\"343\" alt=\"ex2\" src=\"https://user-images.githubusercontent.com/402007/44422863-5bbfd500-a552-11e8-982f-c5f8923bedbb.png\">\r\n\r\nSo the issue here is the line `[[ \"$x\" == *\"something something\"* ]]`. If I remove it, the underline will be gone. It is a Tree-sitter issue and this is fine, I will report it and hope they will fix it.\r\n\r\nWhat is puzzling here is why Bash IDE has highlighted the whole file in red, rendering it impossible to spot the problematic place. I would expect Bash IDE to only highlight the line, where the error has happened. **Maybe** also the function name. \r\n\r\nBut not all the lines in the function and definitely not all the lines in the file. \r\n\r\nAs bash developer I really want to see those highlights, because it helps to spot error early, but they need to be meaningful to be useful."},"comment":{"url":"https://api.github.com/repos/mads-hartmann/bash-language-server/issues/comments/418854753","html_url":"https://github.com/mads-hartmann/bash-language-server/issues/77#issuecomment-418854753","issue_url":"https://api.github.com/repos/mads-hartmann/bash-language-server/issues/77","id":418854753,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODg1NDc1Mw==","user":{"login":"skovhus","id":1260305,"node_id":"MDQ6VXNlcjEyNjAzMDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1260305?v=4","gravatar_id":"","url":"https://api.github.com/users/skovhus","html_url":"https://github.com/skovhus","followers_url":"https://api.github.com/users/skovhus/followers","following_url":"https://api.github.com/users/skovhus/following{/other_user}","gists_url":"https://api.github.com/users/skovhus/gists{/gist_id}","starred_url":"https://api.github.com/users/skovhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skovhus/subscriptions","organizations_url":"https://api.github.com/users/skovhus/orgs","repos_url":"https://api.github.com/users/skovhus/repos","events_url":"https://api.github.com/users/skovhus/events{/privacy}","received_events_url":"https://api.github.com/users/skovhus/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T19:35:24Z","updated_at":"2018-09-05T19:35:24Z","author_association":"COLLABORATOR","body":"Until we improve the parser you disable the error from showing up by setting the config parameter: `bashIde.highlightParsingErrors`. \r\n\r\nWith they latest version you still see the two errors reported above?"}}
{"actor":{"display_login":"skovhus"}}