Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to JuliaInterpreter@0.8 #24

Merged
merged 4 commits into from
Dec 2, 2020
Merged

update to JuliaInterpreter@0.8 #24

merged 4 commits into from
Dec 2, 2020

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Sep 8, 2020

updates to JuliaInterpreter@0.8, which in turn will be the requirement to update Revise@3.0

ref: JuliaDebug/JuliaInterpreter.jl#425
closes: #23

  • update JuliaInterpreter in julia-vscode

@aviatesk aviatesk added the enhancement New feature or request label Sep 8, 2020
@aviatesk aviatesk added this to the Next Minor milestone Sep 8, 2020
Copy link
Contributor

@timholy timholy left a comment

Choose a reason for hiding this comment

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

Nice that it was a small reduction in code. Thanks for doing this so quickly!

src/debugger_core.jl Outdated Show resolved Hide resolved
@@ -65,8 +64,7 @@ function exec_notification(conn, state::DebuggerState, params::ExecArguments)

ex = Meta.parse(params.code)

state.top_level_expressions, _ = JuliaInterpreter.split_expressions(Main, ex)
state.current_top_level_expression = 0
state.expr_splitter = JuliaInterpreter.ExprSplitter(Main, ex) # TODO: line numbers ?
Copy link
Contributor

Choose a reason for hiding this comment

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

If you don't want the line number, the actual statement should always be ex.args[2].

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought that we may need to fix line numbers for this code block (params.code) like what we did for Juno. It's actually not related to the update of JuliaInterpreter, and we can improve this later.

Co-authored-by: Tim Holy <tim.holy@gmail.com>
pfitzseb
pfitzseb previously approved these changes Sep 14, 2020
@aviatesk
Copy link
Member Author

let's wait until Revise@3.0 comes out ;)

@pfitzseb pfitzseb closed this Nov 21, 2020
@pfitzseb pfitzseb reopened this Nov 21, 2020
@pfitzseb
Copy link
Member

So we now have the problem that JuliaInterpreter@0.8 is only compatible with Julia 1.5, afaict. Need to look into restoring backwards compat before this can be merged, I think.

@timholy
Copy link
Contributor

timholy commented Nov 23, 2020

It's compatible with Julia 1, Julia 1.5, and nightly. I don't remember how hard it would be to fix. GitHub's lovely blame view led me to JuliaDebug/JuliaInterpreter.jl#425 (comment), so that should give you a starting point.

@pfitzseb pfitzseb closed this Dec 2, 2020
@pfitzseb pfitzseb reopened this Dec 2, 2020
@pfitzseb pfitzseb merged commit e8f7718 into master Dec 2, 2020
@pfitzseb pfitzseb deleted the avi/juliainterpreter0.8 branch December 2, 2020 15:32
@oppo-source oppo-source removed the request for review from a team April 16, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants