Bug #1070

creating of instances when copying module is broken

Added by Nils Peters over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:2012-02-05
Priority:ImmediateDue date:
Assignee:Nils Peters% Done:

100%

Category:-Spent time:6.00 hours
Target version:core-maintenance-sprint
Branch: OS:

Description

This is related to the recent additions of the alias feature in jcom.hub.

See attached picture

Screen_shot_2012-02-05_at_8.53.33_AM.png (48.9 KB) Nils Peters, 2012-02-05 05:55 pm

History

#1 Updated by Nils Peters over 7 years ago

after some testing, it looks like this bug happens only with modules created with the Jamoma keyboard shortcuts (Shift-I, Shift-O, Shift-X)

#2 Updated by Nils Peters over 7 years ago

correction: it happens when you supply also a name of the module when creating the bpatcher e.g.

bpatcher @name jmod.input~ @args /myInput

if you create another module with the name /myInput, no instance number will be added.

#3 Updated by Nils Peters over 7 years ago

  • Status changed from Assigned to Rejected

it looks like things work now as they should - My working copy must have been screwed up ....

#4 Updated by Trond Lossius over 7 years ago

Hi Nils,

I have seen the same here, but didn't have the time so far to debug further.

Cheers,
Trond

#5 Updated by Nils Peters over 7 years ago

  • Status changed from Rejected to Assigned

#6 Updated by Nils Peters over 7 years ago

interestingly, the bug appears with

bpatcher @name jmod.input~ @args /myInput

but not with

bpatcher @name jmod.input~ @args myInput

so the slash at the given name seems to be important ...

#7 Updated by Nils Peters over 7 years ago

  • Target version set to 0.5.5

#8 Updated by Trond Lossius over 7 years ago

Here's a patch to illustrate the problem:

  1. Open patch
  2. Select the two modules, named /withSlash and withoutSlash respectively
  3. Create copies by alt-dragging
  4. Create yet new copies in the same way
  5. And once more, so that you now have 8 modules altogether.

Expected result: 8 modules named:

  • withSlash
  • withSlash.1
  • withSlash.2
  • withSlash.3
  • withoutSlash
  • withoutSlash.1
  • withoutSlash.2
  • withoutSlash.3

Observed result:

  • All four withSlash modules are named just withSlash
  • Two modules are named withoutSlash and there is no withoutSlash.3 module

----------begin_max5_patcher----------
267.3ocsPEsSCCBE8Y3qfvy0J0N2V72vGMFCs8lVZZABvlyrL+1EtsqtnOXh
5dA3b3bO4bOGoDdk4.34rGXOwHjiTBAoRDjYLgOJOTOH8nLdkUFp6.GOa5SU
CRap5uoPblTKGAjtezzj2.sNYC7ddzn3zKh1MpzCP.8sblz5.OnCxfxnewA0
gorsZqHWjwJVWltJEHZS7j87mtY1E9pcRW671weUE5hJdLtIc7kwllI7lElk
wyXbupUKGt30hbb4U51KiVw1TXt69ukrzHmnzzQ1euc2b0JWLxhecwdapY+2
q0BQ4OWqnAbo0tGb93RgMapWisZuwkfqyPnROAEHzA6Um0uhlb6D8C.ac7qk
-----------end_max5_patcher-----------

#9 Updated by Trond Lossius over 7 years ago

The Xcode jcom.hub project is currently broken, and I'm unable to use the debugger. This needs to be fixed first before I'll be able to get further on the issue.

#10 Updated by Trond Lossius over 7 years ago

  • Target version changed from 0.5.5 to core-maintenance-sprint

#11 Updated by Nils Peters over 7 years ago

  • Assignee changed from Trond Lossius to Nils Peters

#12 Updated by Nils Peters over 7 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:1a6343f11a326fb1425187f0ba103a68f799f5ea.

Also available in: Atom PDF