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

office-addin-debugging 'stop' doesn't work on MacOS #160

Closed
andrewconnell opened this issue Jul 2, 2019 · 9 comments
Closed

office-addin-debugging 'stop' doesn't work on MacOS #160

andrewconnell opened this issue Jul 2, 2019 · 9 comments
Assignees

Comments

@andrewconnell
Copy link

On macOS 10.14.5, starting the debugger with npm run start which runs office-addin-debugging start manifest.xml spins up a debugging server but in a detached process. Running npm run stop or office-addin-debugging stop manifest.xml does not stop the process.

The only way I was able to get it to stop was to find the node process that had port 3000 open and kill it with Activity Monitor.

@akrantz
Copy link
Contributor

akrantz commented Jul 2, 2019

You can avoid this by starting it with npm run dev-server in a separate Terminal window tab, or if using VS Code, use Terminal, Run Task..., Dev Server to run it inside VS Code. You can then close the Terminal window tab or close VS Code to stop the task.

We've already done some work to know the process id of the detached process which is started. We need office-addin-debugging start to write this to disk so that office-addin-debugging stop can know to stop the process.

@andrewconnell
Copy link
Author

Good to know... would have helped me this week. However as it stands now, the stop command doesn't work when it says it successfully completed it's task.

@akrantz
Copy link
Contributor

akrantz commented Jul 2, 2019

Yes, I agree. I'm not disputing that. We will work to make improvements here. Sorry if this caused problems for you.

@akrantz
Copy link
Contributor

akrantz commented Jul 18, 2019

This is now fixed. I have published office-addin-debugging using the "next" dist-tag, so you install the updated package using "npm install -D office-addin-debugging@next".

@akrantz akrantz closed this as completed Jul 18, 2019
@jpshankle
Copy link

jpshankle commented Jul 18, 2019

MacOS still appears to have the problem of getting
$ office-addin-debugging stop manifest.xml env: node\r: No such file or directory error Command failed with exit code 127.
The way to resolve the issue locally is to change the line ending in .bin -> office-addin-debugging from CRLF to LF.

@akrantz
Copy link
Contributor

akrantz commented Jul 18, 2019

@jpshankle I opened a separate issue about that: #168.

@akrantz
Copy link
Contributor

akrantz commented Jul 18, 2019

@jpshankle Please see comments in #168. I wasn't able to mention your username there. Not sure why, but please reply there and we will follow up. Thanks.

@suuunly
Copy link

suuunly commented Apr 16, 2024

This is now fixed. I have published office-addin-debugging using the "next" dist-tag, so you install the updated package using "npm install -D office-addin-debugging@next".

I tried doing so, updating from 5.0.12, to 5.1.0. However, running
office-addin-debugging stop manifest.xml
still shows webpack in my Activity Monitor. What is more worrying is that it is slowly creeping upwards - suggesting a memory leak.

image

@suuunly
Copy link

suuunly commented Apr 16, 2024

@akrantz, I found the solution! I need to run the command with sudo!
So in my react based office add-in, I have to run sudo npm run stop.
Which is the equivalent to sudo office-addin-debugging stop manifest.xml 😁

@andrewconnell, if you haven't found the solution yet, then hopefully this helps :)

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

No branches or pull requests

5 participants