Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace collisions #87

Open
DavidBrainard opened this issue Jul 14, 2018 · 2 comments
Open

Namespace collisions #87

DavidBrainard opened this issue Jul 14, 2018 · 2 comments

Comments

@DavidBrainard
Copy link
Collaborator

It is not uncommon to have some function in a repository or that is downloaded from matlabcentral have a name that matches a function added into a newer version of Matlab. In cases where the repo is under our control, we can simply fix this by renaming and fixing the calls. But that's harder for someone else's repository. It would be nice to have a way to tell TbTb to rename certain functions after download, to match the needs of a particular project.

This might be hard to implement in the general case.

Some rename commands in the local hook file is probably the most straightforward way to handle it fo now.

@gkaguirre
Copy link

Issue #83 is relevant to this. It would be helpful to have a way to detect collisions in the first place.

@npcottaris
Copy link
Collaborator

which -all functionName

If it returns more than 1 path there is a collision.

We could run this against all function names within a downloaded toolbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants