[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] quarks first time checkout



I think it's a mistake to store paths with escape characters already
in them. I had a brief headache last night trying to add a help button
to the quark info window in the GUI because something like
"/Users/mrgrinch/Library/Application\
Support/quarks/dewdrop_lib/dewdrop_lib/dewdrop_lib.html".pathMatch
fails. I worked around it by removing the escape chars only when
needed in the gui, but I didn't change the path storage.

If you are building a unix command that needs to escape spaces in
paths, that's a special case that should be done while building the
command. For data storage, my vote is that it's a bad idea.
someObject.path should return an un-escaped path.

#1 is the bug, and #3 is correct IMHO.

hjh


On Jan 11, 2008 12:20 PM, Till Bovermann
<tboverma@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> A strange issue:
>
> // 0. recompile
>
> // 1.
> Quarks.global.local.path
> // /Users/tboverma/Library/Application\ Support/SuperCollider/quarks
>
> // 2.
> Quarks.global.repos.quarks
>
> // 3.
> Quarks.global.local.path
> // /Users/tboverma/Library/Application Support/SuperCollider/quarks
>
> (note the lack of escape char \ in the second example)
>
> there seems to be an oddness in the repos.quarks implementation i
> cannot figure out... unfortunately this breaks the svn code.
>
> cannot figure it out ATM. any help?



-- 
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman