[chuck-users] Windows, drives, and Machine.add

Tom Lieber tom at alltom.com
Sat Oct 16 01:00:08 EDT 2010


2010/10/15 Rebecca Fiebrink <fiebrink at princeton.edu>:
> Thanks, but this doesn't work: ChucK parses this OK but then fails to find
> the file.
> Machine.add("/Users/rebecca/tmp.ck") works fine.
> Machine.add("C\\:/Users/rebecca/tmp.ck") produces
> [tmp.ck] no such file or directory
> (And re: previous posts, thanks, but Windows does handle forward-slash-style
> path names fine, without any need for escape characters. Hence the forward
> slashes in my strings. Escaped "\\" produces same results. Should've
> mentioned that before.)
> Has anyone actually gotten this to work in practice?
>
> The source code in chuck-1.2.1.3 that processes the argument to Machine.add
> is expecting to parse a filename and optional arguments using colons to
> separate the filename and arguments, but it also looks like it's trying to
> allow \: to escape a colon.

Ge and I just fixed the argument extraction code to work with Windows
paths that look like "c:\\rebecca\\pwn.ck". It was just committed to
CVS and is in the release notes for 1.2.1.4... Try it out?

-- 
Tom Lieber
http://AllTom.com/
http://favmusic.net/


More information about the chuck-users mailing list