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

Do not require new line or ";" at the end of import expression #11333

Merged
merged 2 commits into from
May 26, 2015

Conversation

yuyichao
Copy link
Contributor

This is the first time I write scheme so it's very likely I've got sth wrong.

julia> :(using A)
:(using A)

julia> :(using A.b, B.c)
:($(Expr(:toplevel, :(using A.b), :(using B.c))))

julia> :(using A: b, c.d)
:($(Expr(:toplevel, :(using A.b), :(using A.c.d))))

julia> :(importall A)
:(importall A)

julia> :(import A.b, C)
:($(Expr(:toplevel, :(import A.b), :(import C))))

Fix #10910
@mlubin
@JeffBezanson

@yuyichao
Copy link
Contributor Author

Also possible now.

julia> begin using Base end

julia> (using Base)

@yuyichao
Copy link
Contributor Author

The 64bit windows CI hang on linalg1 again???.......

@tkelman
Copy link
Contributor

tkelman commented May 19, 2015

The 64bit windows CI hang on linalg1 again???.......

Yeah, it does that occasionally. Suggestions for what to do about that very welcome. Probably related to #7942.

@yuyichao
Copy link
Contributor Author

@tkelman
It might be helpful to figure out when it is happening and cut down the script to reproduce. That's what I usually do to isolate those gc/crashing issues (which turns out to be pretty efficient, not sure how much that apply to a not so reproducible hanging issue though)....

It might also be good to do a few finish after attaching gdb to figure out which function is hanging. I've got lucky when debuging similar issues (on other projects) before to isolate it to a single function that I can examine it's internal state to figure out why it gets into an infinite loop.

@tkelman tkelman added the parser Language parsing and surface syntax label May 20, 2015
@@ -83,3 +83,14 @@ macro test999_str(args...); args; end

# issue #10994
@test parse("1 + #= \0 =# 2") == :(1 + 2)

# issue #10910
@test parse(":(using A)") == :(:(using A))
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this really counts as a test of the parser; it only tests that the parse function does the same thing as the parser used to read source files. You have to examine the parsed expression in some other way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On May 22, 2015 12:00 PM, "Jeff Bezanson" [email protected] wrote:

In test/parser.jl:

@@ -83,3 +83,14 @@ macro test999_str(args...); args; end

issue #10994

@test parse("1 + #= \0 =# 2") == :(1 + 2)
+
+# issue #10910
+@test parse(":(using A)") == :(:(using A))

I'm not sure this really counts as a test of the parser; it only tests
that the parse function does the same thing as the parser used to read
source files. You have to examine the parsed expression in some other way.

I see your point . The original goal is to just make sure it doesn't raise
an error. I guess making the @test actually test sth is better.


Reply to this email directly or view it on GitHub.

@yuyichao
Copy link
Contributor Author

Rebased and updated the test.

@@ -86,3 +86,14 @@ macro test999_str(args...); args; end

# issue #10985
@test expand(:(f(::Int...) = 1)).head == :method

# issue #10910
@test parse(":(using A)") == Expr(:quote, :(using A))
Copy link
Member

Choose a reason for hiding this comment

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

This still doesn't test the parser. If using A were parsed as the number 42, this test would still pass.

@yuyichao
Copy link
Contributor Author

Updated.
@JeffBezanson
In this case, how do you think about the test in my other PR. In particular, should I rewrite the ones for export the same way I did with using and import ?

JeffBezanson added a commit that referenced this pull request May 26, 2015
Do not require new line or ";" at the end of import expression
@JeffBezanson JeffBezanson merged commit 97072c8 into JuliaLang:master May 26, 2015
@yuyichao
Copy link
Contributor Author

I saw this CI failure right after my PR is merged. It looks totally unrelated and disappears after another totally unrelated PR but has this appeared somewhere else before?

@JeffBezanson
Copy link
Member

I saw the same thing in #11432.

@mbauman
Copy link
Member

mbauman commented May 27, 2015

Yeah, this has been happening sporadically for at least the past month (see https://travis-ci.org/JuliaLang/julia/jobs/60371436). Is there an API to download and/or search through travis' logs?

@yuyichao
Copy link
Contributor Author

Is there anything wrong with "Worker 6" (Edit: on 64bit) ???

https://travis-ci.org/JuliaLang/julia/jobs/64106038
https://travis-ci.org/JuliaLang/julia/jobs/64163024
https://travis-ci.org/JuliaLang/julia/jobs/60371436

(Edit2: I guess Worker 9 is also involved in one of them...)

@tkelman
Copy link
Contributor

tkelman commented May 28, 2015

Is there an API to download and/or search through travis' logs?

That's a really good idea. Travis does have an API, see http://docs.travis-ci.com/api/, though I haven't personally used the log-related parts of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Language parsing and surface syntax
Projects
None yet
Development

Successfully merging this pull request may close these issues.

using not allowed in :()
4 participants