Skip to content

Commit 22b642c

Browse files
authored
Merge pull request #684 from julia-vscode/davidanthoff/issue668
Hide a bug on Julia 1.2.0
2 parents c4eaf33 + 9d047a3 commit 22b642c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/requests/features.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ function process(r::JSONRPC.Request{Val{Symbol("textDocument/definition")},TextD
121121
push!(locations, Location(filepath2uri(joinpath(_dirname(uri2filepath(doc._uri)), valof(x))), Range(0, 0, 0, 0)))
122122
end
123123
catch err
124-
isa(err, Base.IOError) || isa(err, Base.SystemError) || rethrow()
124+
isa(err, Base.IOError) ||
125+
isa(err, Base.SystemError) ||
126+
(VERSION==v"1.2.0" && isa(err, ErrorException) && err.msg=="type Nothing has no field captures ") ||
127+
rethrow()
125128
end
126129
end
127130
end

0 commit comments

Comments
 (0)