Skip to content

use get_expr rather than get_expr1#714

Merged
ZacLN merged 3 commits intomasterfrom
getModfix
May 25, 2020
Merged

use get_expr rather than get_expr1#714
ZacLN merged 3 commits intomasterfrom
getModfix

Conversation

@ZacLN
Copy link
Copy Markdown
Contributor

@ZacLN ZacLN commented May 25, 2020

fixes #713 ?

@ZacLN ZacLN added the bug label May 25, 2020
@ZacLN ZacLN added this to the Current milestone May 25, 2020
@ZacLN ZacLN requested a review from pfitzseb May 25, 2020 17:11
pfitzseb
pfitzseb previously approved these changes May 25, 2020
Copy link
Copy Markdown
Member

@pfitzseb pfitzseb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

davidanthoff
davidanthoff previously approved these changes May 25, 2020
@ZacLN
Copy link
Copy Markdown
Contributor Author

ZacLN commented May 25, 2020

Eek, 1 sec

x = get_expr1(getcst(doc), offset)
return get_module_of(StaticLint.retrieve_scope(x))
JSONRPC.parse_params(::Type{Val{Symbol("julia/getModuleAt")}}, params) = TextDocumentPositionParams(params)
function process(r::JSONRPC.Request{Val{Symbol("julia/getModuleAt")},TextDocumentPositionParams}, server)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that was the wrong merge conflict resolve here :) We want the function julia_getModuleAt_request(params::TextDocumentPositionParams, server::LanguageServerInstance, conn) version, and neither process nor parse_params.

@ZacLN ZacLN dismissed stale reviews from davidanthoff and pfitzseb via d98b514 May 25, 2020 18:49
@ZacLN ZacLN merged commit f42db74 into master May 25, 2020
@davidanthoff davidanthoff deleted the getModfix branch May 25, 2020 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'julia/getModuleAt' sometimes fails with MethodError

3 participants