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

Refresh files from g.xlf failed with error: EPERM: operation not permitted #416

Open
AyoubChaouachi opened this issue Nov 14, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@AyoubChaouachi
Copy link

Describe the bug
Refresh files from g.xlf failed with error: EPERM: operation not permitted

Versions used
VSCode: 1.73.1
NAB AL Tools: 1.28

To Reproduce
Refrech XLF files from g.xlf

@AyoubChaouachi AyoubChaouachi added the bug Something isn't working label Nov 14, 2022
@jwikman
Copy link
Owner

jwikman commented Nov 14, 2022

Hi @AyoubChaouachi,

Do you get this error every time you run Refresh XLF functions?
Did it use to work on the same repo before?

@AyoubChaouachi
Copy link
Author

AyoubChaouachi commented Nov 14, 2022

Hi @jwikman
yes I have this error when Refrech XLF for all projects and also when trying to create a new XLF file

Yes it work fine last week on version 1.26
I tried also to install the old version but I still have the same issue

@AyoubChaouachi
Copy link
Author

AyoubChaouachi commented Nov 14, 2022

Hi @jwikman
The Errors

Cannot read properties of undefined (reading 'status')

Refresh files from g.xlf failed with error: EPERM: operation not permitted, open
...vscode\extensions\nabsolutions.nab-al-tools-1.28.0\dist\en-gb.json'

@jwikman
Copy link
Owner

jwikman commented Nov 14, 2022

Since it did work last week on v1.26, but not this week with the same version, I am wondering if there could be some changes to the permissions of your user folder? The error message suggests that it is a permissions related issue.

I can see in the telemetry that you've got this error a LOT of times today 🙂, but no one else is experiencing the same error - so it hints that it is something on your machine.

  • Does the file %userprofile%\.vscode\extensions\nabsolutions.nab-al-tools-1.28.0\dist\en-gb.json exist on your computer?
  • If so
    • what size is it?
    • Do you have permissions to read and modify that file?
  • If not
    • can you create a file in that folder (without the admin popup)

One more thing you could test is to run VSCode as Administrator to see if that helps.

@AyoubChaouachi
Copy link
Author

AyoubChaouachi commented Nov 14, 2022

Hello

The File exist when visual code is open ,When I close Visual code the file disappears
The file is Empty
I have permission on the folder and I can create a specfic file

@jwikman
Copy link
Owner

jwikman commented Nov 14, 2022

This is strange.

Can you please test the NAB: Download Base App Translation files function to see if you got the file downloaded. Could there be a firewall that is stopping the download of the files for base app translations?

Btw, if you are not using the Base App suggestions for translation there is a setting that disables that feature when running Refresh XLF... called NAB.MatchBaseAppTranslation - setting this to false should probably remove your error (but also disabling that feature...)

@AyoubChaouachi
Copy link
Author

I have this issue when tryin Download of Base Application translation files
failed with error: Cannot read properties of undefined (reading 'status')
thank you for your suggestion indeed I don't have the issue anymore when disabling the proprety

@theschitz
Copy link
Collaborator

Does the issue persist when running VS Code as administrator?

@AyoubChaouachi
Copy link
Author

Hi @theschitz
yes the same issue when running VS Code as administrator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants