Closed b0arderman closed 1 year ago
First thing to try is clearing the cache: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/clear-cache If that doesn't work, try using runtime logging to get more information about the failure to load the functions: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/runtime-logging
Thanks so much for the quick response! I cleared the cache and opened a new project and it is working now. Thank you. I am still unable to debug a user defined function or see results from the debugger. I've tried several different methods over the past few hours. Should I open a new issue for this?
I've tried using the following command:
npx office-addin-debugging start .\manifest.xml
I've also tried using the following in the launch.json with the native debugger: "configurations": [ { "name": "Excel Desktop (Custom Functions)", "type": "node", "request": "attach", "port": 9229, "timeout": 600000, "preLaunchTask": "Debug: Excel Desktop", "postDebugTask": "Stop Debug", "resolveSourceMapLocations": null }... ]
The debugger appears to connect to VS Code, but I'm not seeing any output from console.log. Thanks, Eric
This is actually a known issue that happened not too long ago that we are still trying to figure out.
Ok, thanks. Are there any suggested work arounds, would you recommend temporarily using the sidebar as a log or another logging method other than console.log? Thanks, Eric
I don't have a good workaround right now. You could use if blocks and returning a message which will get written in the cell using the function. I'm not sure if it's possible to modify other cells from within a function if you want to output a series of output statements rather than a single message. These may or may not work for you.
Those are some greats thoughts. Thank you!
On Thu, Nov 17, 2022 at 3:27 PM Darren Miller @.***> wrote:
I don't have a good workaround right now. You could use if blocks and returning a message which will get written in the cell using the function. I'm not sure if it's possible to modify other cells from within a function if you want to output a series of output statements rather than a single message. These may or may not work for you.
— Reply to this email directly, view it on GitHub https://github.com/OfficeDev/generator-office/issues/744#issuecomment-1319226457, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGDIANMG2EKEXTLCU3SPPTWI2PL7ANCNFSM6AAAAAASDPNMTU . You are receiving this because you authored the thread.Message ID: @.***>
I am also getting the same issue,is it resolved? I am doing this on Mac and Web
Expected behavior
Ability to utilize a function that is defined in functions.js in Excel once it is loaded.
Current behavior
The sidebar task pane loads, but the user defined functions are not available.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Excel opens after the above and I can see the task pane. It appears to work and when I click run it highlights the cell in yellow. When I try to access any of the functions can't find them. I've tried the following:
=add( =contoso.add( =myfunctions.add( =mb_ns_excel_connector4.add(
Context
I am using Excel with Office 365 desktop version.
Below is the manifest.xml: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Failure Logs
Please include any relevant log snippets, screenshots or code samples here.