Skip to content

Conversation

@tlakollo
Copy link
Contributor

@tlakollo tlakollo commented Jan 10, 2023

Change github illink links to point from dotnet/linker to dotnet/runtime
Delete scripts that clone illink into runtime since illink now lives in runtime
Create a forward link for error 1012 in illink, which leads users to open an issue in runtime

This PR does not cover renaming all the uses of the word linker to illink.

Delete scripts that clone illink into runtime since illink now lives in runtime
Create a forward link for error 1012 in illink, that leads users to open an issue in runtime
@tlakollo tlakollo added the area-Tools-ILLink .NET linker development as well as trimming analyzers label Jan 10, 2023
@tlakollo tlakollo self-assigned this Jan 10, 2023
@ghost
Copy link

ghost commented Jan 10, 2023

Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas
See info in area-owners.md if you want to be subscribed.

Issue Details

Change github illink links to point from dotnet/linker to dotnet/runtime
Delete scripts that clone illink into runtime since illink now lives in runtime Create a forward link for error 1012 in illink, which leads users to open an issue in runtime

This PR does not cover renaming all the uses of the word linker to illink.

Author: tlakollo
Assignees: tlakollo
Labels:

area-Tools-ILLink

Milestone: -

@tlakollo tlakollo mentioned this pull request Jan 10, 2023
18 tasks
</data>
<data name="LinkerUnexpectedErrorMessage" xml:space="preserve">
<value>IL Trimmer has encountered an unexpected error. Please report the issue at https://github.com/dotnet/linker/issues</value>
<value>IL Trimmer has encountered an unexpected error. Please report the issue at https://aka.ms/AAj69i2</value>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note (not necessarily for this PR): It's weird that we have a shared error message which is "for the linker". I definitely hope that NativeAOT doesn't use this. Ideally this should be moved to non-shared code (even if we have to duplicate it, since we probably want different message to be shown from NativeAOT)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NativeAOT will not make use of the IL1012 since is produced by illink Driver file (which is not shared with NativeAOT).
At this moment we don't even have a DiagnosticId range for NativeAOT-specific errors (and I'm not sure that we want one), we could always reuse the warning range IL3050+ to display something similar if needed.
I still believe that DiagnosticIds should be shared given that most of the warnings can be reused by NativeAOT, and if not used they can just be ignored, illink basically ignores NativeAOT and single file warning Ids.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we should share diagnostic IDs (to a point), my point was about the message string in this case - that ideally we would have a way to specify different message for illink/ilc because they might need to mention the tool by name. But it's not a big problem rigth now.

@tlakollo tlakollo merged commit 657f665 into dotnet:main Jan 11, 2023
@tlakollo tlakollo deleted the ChangeILLinkLinks branch January 11, 2023 19:59
@ghost ghost locked as resolved and limited conversation to collaborators Feb 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Tools-ILLink .NET linker development as well as trimming analyzers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants