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

Navigate to Source not working as of 11.0.1 #12407

Closed
tkefauver opened this issue Aug 1, 2023 · 1 comment · Fixed by #12410
Closed

Navigate to Source not working as of 11.0.1 #12407

tkefauver opened this issue Aug 1, 2023 · 1 comment · Fixed by #12410
Assignees
Labels
area-infrastructure Issues related to CI/tooling infrastructur bug

Comments

@tkefauver
Copy link
Contributor

Describe the bug
With an Avalonia object/property under the caret pressing 'F12' or right clicking and selecting 'Go To Definition' will show an inline tooltip saying 'Please wait..' then doesn't navigate to the Avalonia source file.

To Reproduce
Install Avalonia 11.0.1 or above

  1. Right click project in Solution Explorer and Select 'Add New Item...'
  2. Pick 'Avalonia Window' and click 'Ok'
  3. Open 'Window1.axaml.cs' in Text Editor
  4. Move caret to the word 'Window' in the : Window class declaration
  5. Press F12

Expected behavior
The source file for Avalonia.Controls.Window will be opened.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 11.0.1

Additional context
I have confirmed that other external sources navigate properly and downgrading to 11.0.0 works as expected.

This maybe unrelated but I noticed in 'What's Changed' for 11.0.2 there's mentioning of Use embedded pdb for analyzers and build tasks by @MrJul in #12336

@tkefauver tkefauver added the bug label Aug 1, 2023
@MrJul
Copy link
Member

MrJul commented Aug 1, 2023

Thanks for the report!

The cause is #12216: symbol files at runtime from implementation assemblies (lib folder in nuget) are now external pdb files, and work fine while debugging / stepping into code.

However, we generate additional reference assemblies (ref folder), which are used only at build time and by the IDE. These are still using embedded pdb, but are now empty. I'll fix that.

@MrJul MrJul self-assigned this Aug 1, 2023
@MrJul MrJul added the area-infrastructure Issues related to CI/tooling infrastructur label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Issues related to CI/tooling infrastructur bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants