-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
PR 16130 deprecate symbol ==> Symbol #16130
PR 16130 deprecate symbol ==> Symbol #16130
Conversation
corrected one problem -- force pushed the change into the single commit. |
@hayd I know you are correct. I am very unfamiliar with this process and after trying it the 'right way' umpteen times without success I was able to proceed this less than perfect way. Regarding @stevengj's comments, as there was an unexpected, indirect conflict that arose when I did attempt incorporating his comments -- one that I did not know how to fix, on the advice of others I went back to the original purpose which was to replace symbol with Symbol. Once this is clean, the checks are good and it can be accepted, then it is possible to readdress the additional suggestions in a separate PR. |
The last change was to comment out a test in replutil.jl (done in accord with prior advice). The advice (as I understood it) was to eliminate the test involving Symbol generating: "expected failure but no error thrown" because this failure mode was no longer relevant. |
The test commented out is at lines 230-2 of test/replutil.jl |
@test contains(err_str, "MethodError: no method matching Symbol()") | ||
#PR 16130 (Symbol) | ||
#err_str = @except_str Symbol() MethodError | ||
#@test contains(err_str, "MethodError: no method matching Symbol()") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about using some other type that doesn't have a 0-argument constructor? that would capture the point of this test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tkelman I did not realize that here Symbol() is not important as Symbol per se. I will see how this works substituting Float64(), which generates a MethodError
Apart from the comment this looks good to me! |
@nalimilan @tkelman The only change was to remove the comment |
That's a random failure, next time it will likely succeed. |
Let's merge this? |
Has |
symbol has been deprecated |
@hayd OOPS! nice catch -- that got lost in translation -- remedying now |
@hayd symbol is once again deprecated, but now there are conflicts and this is where I have had trouble. Each time I have tried to fix a merge conflict, I have messed up my repository. |
Damn, there are conflicts with master again. Could you rebase? |
@nalimilan I did rebase locally -- and I could push that up to github ... but each time I did that in the past, there was trouble. After pushing the correction to deprecated.jl, here is what I did locally: |
@nalimilan git says "Successfully rebased and updated refs/heads/jas/deprecate_symbol" |
I don't think you want to interactively rebase. Just |
@KristofferC for me "master" is https://github.com/jeffreysarnoff-dev/julia which is now 6 commits behind JuliaLang:master. my "upstream" is ..JuliaLang/julia.git. And I have no more commits, I could edit the commit message in an inconsequential way if I need to be able to force push something that is local. |
@KristofferC git status is telling me that (locally) I am on branch jas/deprecate_symbol and "Your branch is up-to-date with 'origin/jas/decprecate_symbol' |
|
Have a look at the GitHub docs to understand how all of this works. In particular: |
@nalimilan I understand how git works .. I just don't like it. I have been using an app, SmartGit, along with using command line git because the app prevents me from doing some things wrong. It may set me to do other things oddly. It is that app that 'decided' origin is my github branch and upstream is JuliaLang. My local master branch points up to my github fork. Right now, I need use git on the command line to rebase things using JuliaLang master so I can see the conflicts and then address them. Any guidance is welcome -- not about how git works, about how to play this current game of cat's cradle to properly re-entangle things. |
When I close the git-assist App, it goes away and I can do anything I want from the command line. Should I restart that app, it just picks up from whatever state the git repository is in right then. |
Using Note: The conflict is just in the My advice is not to use a git app (or git within your IDE) until you have understood everything that the app/ide is doing at every step of the process. |
@hayd Thank you. |
This has been a hike; at times I became weary and would have been uncomfortable without you: |
@@ -368,6 +368,9 @@ end | |||
@deprecate flipud(A::AbstractArray) flipdim(A, 1) | |||
@deprecate fliplr(A::AbstractArray) flipdim(A, 2) | |||
|
|||
@deprecate sub2ind{T<:Integer}(dims::Array{T}, sub::Array{T}) sub2ind(tuple(dims...), sub...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a lot of unrelated changes in this file.
EDIT: not a lot, just this one and sprandbool
below.
I unattached the PR from the github branch -- pls see 16150 which is running the checks |
sweeping away more bits -- |
Note: (from @hayd) this was eventually merged in #16154 (originally #15995).
PR 16130 deprecate symbol ==> Symbol (clean version)
[apologies for needing three PR numbers to do one thing]