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

StackTrace does not show up on stack trace when use AddInManager 2025 #59

Open
jmosh6 opened this issue Dec 2, 2024 · 4 comments
Open

Comments

@jmosh6
Copy link

jmosh6 commented Dec 2, 2024

Describe the bug
I have noticed that the line # does not appear in the stacktrace of the exception. This seems to only be the case when loading my application through AddInManager rather than fully loading it in. I can see that I do have a .pbd file in the folder where the .dll exists, so I don't think it is that. My debug type is as follows. Full

This is a screenshot of a TaskDialog displaying the stacktrace when the application is fully loaded in.
FullyLoaded

This is a screenshot a TaskDailag displaying the stacktrace when it is run through AddinManager
AddInManagerLoaded

This is a simple project I created to demonstrate the issue. The issue can be reproduced by

First Scenario

  • installing this project,
  • clicking "Do Not Load
  • Load it through addinmanager
  • Run "TestCommand"
  • Trace line should not be shown.

Second Scenario

  • Re-opening Revit
  • clicking "Load Once"
  • Run "TestCommand"
  • Trace line should be shown.

https://github.com/jmosh6/ExampleProject

@chuongmep
Copy link
Owner

Hi @jmosh6 , this is result showed from my side use add-in manager by using your project example, I haven't change any thing, can you try with version of revit 2022 or lower version 2025, this is test in revit 2022
image

@jmosh6
Copy link
Author

jmosh6 commented Dec 3, 2024

Hi @chuongmep, thanks for the quick reply.

I failed to mention, that it is isolated to Revit 2025. I did just test it on Revit 2022 as a double check and it worked perfectly fine.

@chuongmep
Copy link
Owner

Hi @jmosh6 , I haven't have a chance to explore with revit 2025 yet, just basiclly Revit 2025 run in .net8 , so I guess have something need to recheck and verify

@jmosh6
Copy link
Author

jmosh6 commented Dec 3, 2024

Sounds good, thanks!
I appreciate the tool by the way, it is very helpful!

@chuongmep chuongmep changed the title Line # does not show up on stack trace when use AddInManager StackTrace does not show up on stack trace when use AddInManager 2025 Dec 5, 2024
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

2 participants