How to change Model location in Collaboration plugin

Started by tomas.rollo, December 02, 2019, 20:56:26 PM

Previous topic - Next topic

tomas.rollo

Hi,

I'm using Archi 4.5.1 and Collaboration plugin 0.5.2 on Windows and have problem with the plugin storing the git files with names that are too long for windows, I'm getting following error:

C:\Users\tro8940\AppData\Roaming\Archi4\model-repository\idm-architecture>git reset --hard HEAD
error: unable to create file model/application/079412db-df08-4025-97a1-aa85ed926112/aa600be0-f750-4951-aa6f-608159b03f2d/6b17340d-a935-4ea1-9475-a84c2a463541/ApplicationComponent_354229f9-2ff2-4062-aeaa-55121eea7467.xml: Filename too long


I want to Abort Uncommitted Changes but Archi always prompts me to commit first, I reckon because it can't revert files like the one above and this git keeps telling Archi that there are modified files in the working directory.

Is there a way how to move the whole directory %APPDATA%\Roaming\Archi4\model-repository to another location (where the filenames would not be that long)?

Thanks
T.

Jean-Baptiste Sarrodie

Hi,

Quote from: tomas.rollo on December 02, 2019, 20:56:26 PM
Is there a way how to move the whole directory %APPDATA%\Roaming\Archi4\model-repository to another location (where the filenames would not be that long)?

You can simply change it in Edit > Preferences > Collaboration

Quote from: tomas.rollo on December 02, 2019, 20:56:26 PM
'm using Archi 4.5.1 and Collaboration plugin 0.5.2 on Windows and have problem with the plugin storing the git files with names that are too long for windows, I'm getting following error:

C:\Users\tro8940\AppData\Roaming\Archi4\model-repository\idm-architecture>git reset --hard HEAD
error: unable to create file model/application/079412db-df08-4025-97a1-aa85ed926112/aa600be0-f750-4951-aa6f-608159b03f2d/6b17340d-a935-4ea1-9475-a84c2a463541/ApplicationComponent_354229f9-2ff2-4062-aeaa-55121eea7467.xml: Filename too long


I want to Abort Uncommitted Changes but Archi always prompts me to commit first, I reckon because it can't revert files like the one above and this git keeps telling Archi that there are modified files in the working directory.

Archi has no issues with long file names. Only softwares based on the old WIndows API (like the explorer) have such issue. coArchi being based on the JGit java library there are no issues with long names. So I doubt this will solve anything.

The issue is most certainly related to someone else in your team using another version of Archi. The internal version of the schema of the model has certainly been updated, and each time you open this model, you revert it back to the schema version associated with your version of Archi, leading to a change that doesn't reflect in the UI but has to be commited.

BTW, I don't see how Archi could prompt you to commit when you try to abort  because this never raises a commit (the whole point of aborting is to remove commits).

Regards,

JB
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.