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

cross-device link error #831

Open
mlmaria opened this issue Jul 3, 2024 · 4 comments
Open

cross-device link error #831

mlmaria opened this issue Jul 3, 2024 · 4 comments
Assignees

Comments

@mlmaria
Copy link

mlmaria commented Jul 3, 2024

Expected behavior

I wanted to run the add-in tutorial for Word to create the "Hello World" functionality.

Current behavior

Every time I try to usenpm run, I get this error Error: EXDEV: cross-device link not permitted, link 'manifest.xml' -> '/Users/mariiali/Library/Containers/com.microsoft.Word/Data/Documents/wef/a2e86463-2178-4fd6-b0b6-815d208cb7e1.manifest.xml'despite not having anything in the wef folder.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. yo office
  2. Select the Project Type for "Office Add-in Task Pane project using React framework " using Typescript and for MS Word
  3. npm start

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System: Sonoma 14.5
  • Node version: v20
  • Office version: 2021
  • Tool version:

Failure Logs

image
@LuyiH
Copy link

LuyiH commented Aug 12, 2024

@millerds can you help with this question? Thanks

@millerds millerds assigned LuyiH and unassigned millerds Aug 12, 2024
@millerds
Copy link
Contributor

I don't have expertise in Mac environments and that error is specific to Mac.

@Abhijit-Revamp
Copy link

This is happening because the script is trying to rename a file across "device" (partition) boundaries.
this is across linux / macOS etc.
if your adding root folder is on different partition than the /Users partition.

@millerds @LuyiH --> It seems the code is trying to move the manifest file (based on the guid). Instead use "mv" rather than "move". Or use first copy file target and then rename.

More details:
https://stackoverflow.com/questions/43206198/what-does-the-exdev-cross-device-link-not-permitted-error-mean
https://stackoverflow.com/questions/37153666/error-exdev-cross-device-link-not-permitted-rename-tmp-on-ubuntu-16-04-lts/44146825#44146825

@Abhijit-Revamp
Copy link

@millerds @LuyiH

on further investigation, the issue lies in the function "registerAddIn" in file

https://github.com/OfficeDev/Office-Addin-Scripts/blob/master/packages/office-addin-dev-settings/src/dev-settings-mac.ts

In this function, there is a call to "ensureLinkSync" which throws up.

I don't think this issue will be ever solved.

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

4 participants