@@ -123,6 +123,28 @@ describe('analyze', () => {
123
123
"severity": 3,
124
124
"source": "bash-language-server",
125
125
},
126
+ {
127
+ "message": "Source command could not be analyzed: failed to resolve path.
128
+
129
+ Consider adding a ShellCheck directive above this line to fix or ignore this:
130
+ # shellcheck source=/my-file.sh # specify the file to source
131
+ # shellcheck source-path=my_script_folder # specify the folder to search in
132
+ # shellcheck source=/dev/null # to ignore the error
133
+
134
+ Disable this message by changing the configuration option "enableSourceErrorDiagnostics"",
135
+ "range": {
136
+ "end": {
137
+ "character": 49,
138
+ "line": 26,
139
+ },
140
+ "start": {
141
+ "character": 0,
142
+ "line": 26,
143
+ },
144
+ },
145
+ "severity": 3,
146
+ "source": "bash-language-server",
147
+ },
126
148
]
127
149
` )
128
150
@@ -847,6 +869,7 @@ describe('initiateBackgroundAnalysis', () => {
847
869
[ expect . stringContaining ( 'parse-problems.sh: syntax error' ) ] ,
848
870
[ expect . stringContaining ( 'sourcing.sh line 16: failed to resolve path' ) ] ,
849
871
[ expect . stringContaining ( 'sourcing.sh line 21: non-constant source not supported' ) ] ,
872
+ [ expect . stringContaining ( 'sourcing.sh line 26: failed to resolve path' ) ] ,
850
873
] )
851
874
852
875
// Intro, stats on glob, one file skipped due to shebang, and outro
0 commit comments