Skip to content
New issue

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

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

Already on GitHub? # to your account

git diff fatal exception #65

Closed
vk3il opened this issue Jul 16, 2021 · 11 comments
Closed

git diff fatal exception #65

vk3il opened this issue Jul 16, 2021 · 11 comments

Comments

@vk3il
Copy link

vk3il commented Jul 16, 2021

git-xl has been working well for some time, but I've recently had it failing on my main excel project file. The error is as follows:

$ git diff
[21228] Failed to execute script diff
Traceback (most recent call last):
  File "diff.py", line 47, in <module>
  File "diff.py", line 12, in get_vba
  File "site-packages\oletools\olevba3.py", line 2793, in extract_all_macros
  File "site-packages\oletools\olevba3.py", line 2738, in extract_macros
  File "site-packages\oletools\olevba3.py", line 2749, in extract_macros
  File "site-packages\oletools\olevba3.py", line 1324, in _extract_vba
  File "site-packages\oletools\olevba3.py", line 1301, in check_value
oletools.olevba3.UnexpectedDataError: Unexpected value in VBA/dir for variable PROJECTLCID_Id: expected 0002 but found 004A!
fatal: external diff died, stopping at CDR compliance tool.xlsb

I tried creating a new excel workbook with a simple VBA macro and it too throws the same error. The environment is Microsoft® Excel® for Microsoft 365 MSO (16.0.14131.20278) 64-bit

Seems that the PROJECTLCID_Id value is wrong in the file, but Excel doesn't seem to mind and running a repair doesn't fix the problem. Has MS changed this value perhaps?

@fzumstein
Copy link
Contributor

Hi @vk3il, thanks for reporting! this looks like an issue with https://github.com/decalage2/oletools. I'll try to find the time to upgrade to the latest version to see if that solves the issue.

@vk3il
Copy link
Author

vk3il commented Jul 16, 2021

Thanks @fzumstein . Looking at that repository, it may in fact be a newly opened bug - see: decalage2/oletools#701
Maybe let them know of the downstream impact of it?

@alzec
Copy link

alzec commented Jul 27, 2021

Hello,

Does anyone know if there is a temporary solution for this problem?

@caiocesart
Copy link

Hello,

Does anyone know if there is a temporary solution for this problem?

Hi, have you found any solution?

@dnsnx
Copy link

dnsnx commented Dec 14, 2021

Same here. Would be interested in a solution to this issue.

@allezzy
Copy link

allezzy commented Apr 7, 2022

This could be related to an update in the VBA file format for version 11.0 where CompatVersionRecord was added:
https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/5abef063-3661-46dd-ba80-8cb507afdb1d

004A is the identifier for this new record.

@junxu94
Copy link

junxu94 commented May 1, 2022

Hi, I am seeing the exact same issue, but not to see solution in this thread. Can someone provide the solution? Thanks so much!

@jspraul
Copy link

jspraul commented May 2, 2022

Update to newest version of oletools, update for python 3.10.4 #70

I think you have to clone and build the latest from this repository, as nothing has been released yet.

@fzumstein
Copy link
Contributor

Yeah, to make a new release, I'd need to port the pipeline over to GitHub actions, and that takes a lot of time a nerves (that I currently a bit short of).

@winnieXY
Copy link

winnieXY commented Jul 5, 2022

Any news on that? I'm hitting the same issue

@fzumstein
Copy link
Contributor

this is now released with 0.5.1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants