Goto Symbol is broken for Shell Script (bash) in Build 3103.
Is this a known issue that will be fixed? Is there any way to work around this?
Goto Symbol is broken for Shell Script (bash) in Build 3103.
Is this a known issue that will be fixed? Is there any way to work around this?
Cannot reproduce? Also tried ctrl+r and ctrl+shift+r but both worked.
#!/bin/sh
# Define your function here
Hello () {
echo "Hello World"
}
# Invoke your function
Hello
Ok, the problem is that Sublime only recognizes functions that are defined using (empty) parentheses. Something like this:
#!/bin/bash
function Hello {
}
Hello
does not work, although it is perfectly valid syntax.
This is a known bug, reported here: https://github.com/SublimeTextIssues/DefaultPackages/issues/178 and here: https://github.com/SublimeTextIssues/DefaultPackages/issues/125
you may want to use this: https://packagecontrol.io/packages/ShellScriptImproved
but ideally the first-class-citizen default packages would be improved such that it wouldn’t be necessary to resort to third party packages for syntax highlighting ![]()
Ideally bug reports for default packages should be posted at https://github.com/sublimehq/Packages/issues. Providing an example of code in an issue with a description of the problem will allow us to improve the default packages.
That said, I’m not trying to dissuade users from using third-party package alternatives. There are a number of packages that need some heavy work, and we are slowly going through each to improve the accuracy and performance of each. Because of this, it will be a little while before we’ve gotten all of the major languages supported by default up to the latest standards.
However, if reports are never filed, then the default packages won’t improve!