Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

syntax: invalid operator ".!" #60

Closed
rapus95 opened this issue Aug 1, 2016 · 12 comments
Closed

syntax: invalid operator ".!" #60

rapus95 opened this issue Aug 1, 2016 · 12 comments

Comments

@rapus95
Copy link

rapus95 commented Aug 1, 2016

Version 0.5.0-rc0+0 (2016-07-26 20:22 UTC)
x86_64-w64-mingw32

julia> using JuliaParser
ERROR: LoadError: LoadError: syntax: invalid operator ".!"
in include_from_node1(::String) at .\loading.jl:426 (repeats 2 times)
in eval(::Module, ::Any) at .\boot.jl:234
in require(::Symbol) at .\loading.jl:357
while loading C:\Users\necka.julia\v0.5\JuliaParser\src\lexer.jl, in expression starting on line 46
while loading C:\Users\necka.julia\v0.5\JuliaParser\src\JuliaParser.jl, in expression starting on line 9

@KristofferC
Copy link
Member

Probably need a newer commit than rc0+0. Works on latest master for me.

@rapus95
Copy link
Author

rapus95 commented Aug 1, 2016

that means that rc0+0 wasn't built after the feature freeze?

@KristofferC
Copy link
Member

Maybe it was a bug fix :p

@rapus95
Copy link
Author

rapus95 commented Aug 2, 2016

Clarification seems not to be worth a single word... :/

@KristofferC
Copy link
Member

works for me on rc0+0 as well

julia> using JuliaParser

julia> versioninfo()
Julia Version 0.5.0-rc0+0
Commit 0030eec (2016-07-26 20:22 UTC)

@jakebolewski
Copy link
Member

@rapus95 I am getting this package ready to work on v0.5, but getting it to work on all pre-release versions is not an explicit goal. If you still see this error as we work to v0.5, please say something.

@rapus95
Copy link
Author

rapus95 commented Aug 2, 2016

@jakebolewski ok thanks, it seems to be a strange bug since it works at some places and doesn't at some other places :/
for me it still errors. my "fix" is replacing :(.!) by Symbol(".!")

@KristofferC are you on win10 64bit?

@jakebolewski
Copy link
Member

@rapus95 the only place where that symbol is defined is

[Symbol(".!"); :(<:); :(>:);

so I don't know why you are getting that error.

It seems worrying that behavior here is different on Windows / Unix for the same release candidate if that is indeed what you are seeing. The only way I could see that happening is that the rc for the windows builds is not built off the same commit as the tagged rc.

@KristofferC
Copy link
Member

That is what the current code has:

[Symbol(".!"); :(<:); :(>:);

@rapus95
Copy link
Author

rapus95 commented Aug 2, 2016

forget all i said until now... checkout to master obviously solved it -.-

But there still remains one question. What is .! for? the parser somehow doesn't seem to be able to parse it since the expression has to be written as a String. So how would i be able to use the operator without manually constructing the expression?

@KristofferC
Copy link
Member

Discussion at JuliaLang/julia#17393 (comment)

@tkelman
Copy link
Contributor

tkelman commented Aug 3, 2016

Always best to give Pkg.status() with all bug reports (or versioninfo(true)). The tagged version of this package doesn't work with rc0, but master here is apparently in better shape.

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

No branches or pull requests

4 participants