heuermh / lick

LiCK, Library for ChucK
GNU General Public License v3.0
147 stars 21 forks source link

class/type 'Random' is already defined in namespace 'global' #11

Closed heuermh closed 1 year ago

heuermh commented 5 years ago
$ chuck import.ck
...
[Random.ck]:line(24): class/type 'Random' is already defined in namespace 'global'
[chuck](VM): sporking incoming shred: 126 (GaussianRandom.ck)...
[chuck](VM): sporking incoming shred: 127 (RandomFloor.ck)...
[chuck](VM): sporking incoming shred: 128 (RandomThreshold.ck)...
[chuck](VM): sporking incoming shred: 129 (SinusoidalIn.ck)...
[chuck](VM): sporking incoming shred: 130 (SinusoidalInOut.ck)...
[chuck](VM): sporking incoming shred: 131 (SinusoidalOut.ck)...
[chuck](VM): sporking incoming shred: 132 (Interpolate.ck)...
[chuck](VM): sporking incoming shred: 133 (Constrain.ck)...
[chuck](VM): sporking incoming shred: 134 (Interpolations.ck)...
[chuck](VM): sporking incoming shred: 135 (DurProvider.ck)...
[Humanize.ck]:line(65): class 'Random' has no member 'evaluate'
[Humanize.ck]:line(65): class 'Random' has no member 'evaluate'

Random is a chugin provided by https://github.com/ccrma/chugins/tree/master/Random

renderful commented 5 years ago

Same issue here. I removed the Random chugin to get over the lick errors which works for now, as I wasn't relying on the Random chugin.

heuermh commented 5 years ago

That was my workaround as well. I'd rather not rename the Random class in LiCK, perhaps I'll suggest a rename in chugins.

heuermh commented 3 years ago

Note: awaiting the merge of several open pull requests on https://github.com/ccrma/chugins, it is recommended to use the branch https://github.com/heuermh/chugins/tree/latest.

heuermh commented 1 year ago

I'm backing down on this one 😉

Refactored LiCK RandomChance in commit 7392215