intersystems-community / cache-tort-git

Access to Tortoise Git interface from Caché Studio
https://github.com/intersystems-ru/cache-tort-git/wiki
MIT License
31 stars 20 forks source link

Git > Export All does not export updated cls files after importing new project.xml from Studio #30

Open aedahh opened 9 years ago

aedahh commented 9 years ago

Hello, I am having this issue with Export All. My workflow is as follow:

  1. Studio currently have latest master checkout from git.
  2. From Studio Import Local> select an updated project.xml export that had updated several cls files.
  3. From Studio Git > Export All ("Progam export is done" message is displayed)
  4. From Studio Git > Commit
    Here is where issue is, only project.xml is listed as changed files, no other cls files that got updated from the project.xml import are listed.

I am using Studio 2015.1 Does anyone have a workaround to force Export All after doing a Import Local?

Thanks!

adaptun commented 8 years ago

Hi aedahh.

Do you have "compile classes" checked when importing project.xml?

If yes, then automatic export of updated classes should work

aedahh commented 7 years ago

Hello adptun, Yes, I have both check boxes selected when importing. I am still having this issue. Today I got an updated project.xml and import. When open .cls file I don't see changes.

What is interesting is when do Edit > Search in file for known string in updated project.xml, Studio does show the result in both .cls and .int file, but when double-click on search result .cls file is opened but no update. If open .int file then I do see updated code.

Okay: here is what I am seeing when I do Tools > Import Local [...] mycalss.CLS is not newer than on-disk version, skipping export <-- this is my problem Imported class: mycalss.CLS [...]

Output window say file is not newer than on-disk version, skipping export, but this is not true! The content of myclass.CLS inside the project.xml is actually newer and have few characters changed. Question is how is the plugin comparing to decide if file is newer or not? Hopefully not just by some timestamp but by content...

Very frustrating... any suggestions so that I can get the updated code to show up in the .cls file? I check this plugin website today, hoping for an update to resolve this issue, but no changes in awhile...

Thanks

aedahh commented 7 years ago

Okay, so I was able to get plugin to export new cls files imported from project.xml by changing system time to a past date, touch all files inside git folder (need to repeat process for each subfolders, as touch [using unix port of touch for win32] doesn't do it recursively), then Import Local and finally Studio/git plugin exported modified cls!

Still would like to know how is the plugin comparing to decide if file is newer or not? Hopefully this can be improve in future release.

Thanks