Re: ERROR: syntax: extra token after end of expression in Color.jl

3,515 views
Skip to first unread message

Patrick O'Leary

unread,
Mar 31, 2013, 11:53:41 AM3/31/13
to julia...@googlegroups.com
The "immutable" keyword was added after Julia v0.1 branched. Color.jl should have branched too, and it looks like they're working on it. https://github.com/JuliaLang/METADATA.jl/commit/f2b01806c5d83f7859b7a8a04d26bebd15a0928b

Hopefully this will settle out shortly.

On Sunday, March 31, 2013 8:09:31 AM UTC-5, Maarten Kruithof-Huijbers wrote:
When I try to run 'using Winston' I get the following error:

ERROR: syntax: extra token after end of expression
at C:\Users\kruithofmc\AppData\Roaming\julia\packages\Color\src\Color.jl:23

At line 23 of Color.jl:
immutable RGB <: ColorValue

When I try to run 'immutable' in Julia I get:
ERROR: immutable not defined

What is going wrong?

I am running Julia 0.1.2 on Windows 7

Thanks,
Maarten Kruithof

Tim Holy

unread,
Apr 1, 2013, 6:49:10 AM4/1/13
to julia...@googlegroups.com
Does saying "Pkg.update()" fix it for you? In theory it should already be
working (unless there's a problem in the version resolution), but it was
changed recently; if you haven't updated in a while, you could still locally
have the old copy of METADATA.

--Tim

Iain Dunning

unread,
Apr 1, 2013, 10:34:20 AM4/1/13
to julia...@googlegroups.com
Pkg.update() doesn't fix it for me. I suspect something is broken in Pkg for 0.1.2
I've had an issue open since last week.

This is right after running Pkg.update()

julia> Pkg.installed()
["IniFile"=>v"0.0.0","BinDeps"=>v"0.0.0","Winston"=>v"0.0.0","Distributions"=>v"
0.0.0","Color"=>v"0.0.0","MathProg"=>v"0.0.0","Clp"=>v"0.0.0","CoinMP"=>v"0.0.0"
,"Tk"=>v"0.0.0","Cairo"=>v"0.0.0"]

I nuked my package directory just to see, and Pkg.add("Winston") to get everything, and it still happens.

Maybe its something with how Winston specifies dependencies?

Tim Holy

unread,
Apr 1, 2013, 11:50:34 AM4/1/13
to julia...@googlegroups.com
I suspect the problem is that your Color is at "0.0.0" rather than "0.1.0". I
just deleted the 0.0.0 version from METADATA; can you see whether this fixes
it?

--Tim

Iain Dunning

unread,
Apr 1, 2013, 1:41:53 PM4/1/13
to julia...@googlegroups.com
So a simple Pkg.update() doesn't seem to fix it.
It looks like you updated the devel branch though, and the error is probably in the master branch .
In fact, the master is still pointing at a "bad" sha1

Stefan Karpinski

unread,
Apr 1, 2013, 2:07:16 PM4/1/13
to Julia Users
I just updated master. Can you try again? Sorry, this is (and probably will continue to be) a manual process. I like to sanity check the master changes when I make them since I don't quite trust my munging script to do everything right automatically. The problem will go away once we release 0.2 and start retiring the 0.1.x series.

Tim Holy

unread,
Apr 1, 2013, 2:29:01 PM4/1/13
to julia...@googlegroups.com
On Monday, April 01, 2013 02:07:16 PM Stefan Karpinski wrote:
> I just updated master. Can you try again? Sorry, this is (and probably will
> continue to be) a manual process. I like to sanity check the master changes
> when I make them since I don't quite trust my munging script to do
> everything right automatically. The problem will go away once we release
> 0.2 and start retiring the 0.1.x series.

Can we really start retiring 0.1 before Raring Ringtail goes off support?
Roughly in January 2014.

--Tim

Stefan Karpinski

unread,
Apr 1, 2013, 2:59:47 PM4/1/13
to Julia Users
Not really, I guess. Which is a bit of a shame, but c'est la vie. I guess I'll be running this remaster.jl script for a while...

Avik Sengupta

unread,
Apr 1, 2013, 4:19:14 PM4/1/13
to julia...@googlegroups.com
I can confirm that using Color now works correctly on  julia 0.1.2 branch as of about 15 minutes ago. You should have Color.jl v0.1.0 resolved in a julia v0.1.2 environment.  You might have to manually install the Iterators package. 

julia> Base.version_string
"Version 0.1.2"

julia> Pkg.installed()["Color"]
v"0.1.0"

julia> using Color

julia> color("blue")
RGB(0.0,0.0,1.0)

COSMO CASTELLANO

unread,
Aug 7, 2013, 11:52:44 AM8/7/13
to julia...@googlegroups.com
I am new to Julia -  How is manual installation and updating accomplished?

John Myles White

unread,
Aug 7, 2013, 11:56:17 AM8/7/13
to julia...@googlegroups.com
Are you familiar with GitHub? If you are, you can just clone the Iterators package's repo and place it in your .julia directory.

 -- John

COSMO CASTELLANO

unread,
Aug 8, 2013, 3:24:22 PM8/8/13
to julia...@googlegroups.com
OK - Thanks
Reply all
Reply to author
Forward
0 new messages