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

Fix index set parsing in JuMP macros on Julia 1.0. #1428

Merged
merged 2 commits into from
Aug 19, 2018
Merged

Conversation

IainNZ
Copy link
Collaborator

@IainNZ IainNZ commented Aug 19, 2018

This is a change introduced between Julia v0.7 and v1.0.

This is a change introduced between Julia v0.7 and v1.0.
@IainNZ IainNZ requested a review from mlubin August 19, 2018 03:29
src/parseexpr.jl Outdated
@@ -4,7 +4,11 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

function tryParseIdxSet(arg::Expr)
if arg.head === :(=)
if arg.head === :kw # Julia 1.0 onwards.
Copy link
Member

Choose a reason for hiding this comment

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

It's better to use explicit VERSION checks so that they can be removed semi-automatically in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should the version check be added for the old behaviour of the new behaviour?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we have a convention, just as long as it's clear which code blocks can be removed when.

Copy link
Member

@mlubin mlubin left a comment

Choose a reason for hiding this comment

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

LGTM pending CI

@codecov
Copy link

codecov bot commented Aug 19, 2018

Codecov Report

Merging #1428 into master will decrease coverage by 0.04%.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1428      +/-   ##
==========================================
- Coverage   88.93%   88.88%   -0.05%     
==========================================
  Files          25       25              
  Lines        3677     3681       +4     
==========================================
+ Hits         3270     3272       +2     
- Misses        407      409       +2
Impacted Files Coverage Δ
src/parseexpr.jl 93.57% <60%> (-0.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67a1d6f...d75546c. Read the comment docs.

@mlubin mlubin merged commit 1f9bd39 into master Aug 19, 2018
@mlubin mlubin deleted the ird/macrov1 branch August 19, 2018 12:16
@IainNZ
Copy link
Collaborator Author

IainNZ commented Aug 19, 2018

For reference it was here:
JuliaLang/julia#25631
I'm not sure what the lack of deprecation warning was caused by.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants