Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Improve Error Experience in the linker - #719

Merged
marek-safar merged 4 commits into
dotnet:masterfrom
tlakollo:ImproveErrorExperience
Sep 9, 2019
Merged

marek-safar merged 4 commits into
dotnet:masterfrom
tlakollo:ImproveErrorExperience

Conversation

@tlakollo

Copy link
Copy Markdown
Contributor

src/ILLink.Tasks/LinkTask.cs – Increase Standard Error output logging importance so default verbosity is able to print it

src/linker/Linker/AssemblyResolver.cs – Include a warning message for
suspicious series of common punctuation characters in assembly names,
although supported they are likely typos in assembly names. Warning is
only printed upon failure.

src/linker/Linker/LinkContext.cs – skip assembly if it’s null (means is
an unresolved assembly and skip flag was used)
src/linker/Linker.Steps/ResolveFromXmlStep.cs – skip assembly if it’s
null (means is an unresolved assembly and skip flag was used)

See issue #653 for more information

importance so default verbosity is able to print it

src/linker/Linker/AssemblyResolver.cs – Include a warning message for
suspicious series of common punctuation characters in assembly names,
although supported they are likely typos in assembly names. Warning is
only printed upon failure.

src/linker/Linker/LinkContext.cs – skip assembly if it’s null (means is
an unresolved assembly)
src/linker/Linker.Steps/ResolveFromXmlStep.cs – skip assembly if it’s
null (means is an unresolved assembly)
@tlakollo tlakollo self-assigned this Aug 23, 2019
@dnfclas

dnfclas commented Aug 23, 2019 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@sbomer sbomer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for doing this!

Comment thread src/linker/Linker/AssemblyResolver.cs Resolved
Comment thread src/linker/Linker/AssemblyResolver.cs Resolved
  add space to match repo convention

-src/linker/Linker/AssemblyResolver.cs
  delete invalid chars check
  add "skipping this assembly" message
Comment thread src/linker/Linker/LinkContext.cs Resolved

@sbomer sbomer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Not sure we even need to change the error message - I'll let @marek-safar comment on that.

@marek-safar
marek-safar merged commit 9a525c6 into dotnet:master Sep 9, 2019
tlakollo added a commit that referenced this pull request Oct 15, 2019
I added the word Ignoring to the unresolved assembly log message for PR #719, but I also delete the warning word section which is useful since it can be printed using the --verbose flag in the linker options, adding it again.
marek-safar pushed a commit that referenced this pull request Oct 16, 2019
I added the word Ignoring to the unresolved assembly log message for PR #719, but I also delete the warning word section which is useful since it can be printed using the --verbose flag in the linker options, adding it again.
@tlakollo
tlakollo deleted the ImproveErrorExperience branch February 19, 2021 02:22
tkapin pushed a commit to tkapin/runtime that referenced this pull request Jan 31, 2023
* src/ILLink.Tasks/LinkTask.cs – Increase Standard Error output logging
importance so default verbosity is able to print it

src/linker/Linker/AssemblyResolver.cs – Include a warning message for
suspicious series of common punctuation characters in assembly names,
although supported they are likely typos in assembly names. Warning is
only printed upon failure.

src/linker/Linker/LinkContext.cs – skip assembly if it’s null (means is
an unresolved assembly)
src/linker/Linker.Steps/ResolveFromXmlStep.cs – skip assembly if it’s
null (means is an unresolved assembly)

* - src/linker/Linker.Steps/ResolveFromXmlStep.cs
  add space to match repo convention

-src/linker/Linker/AssemblyResolver.cs
  delete invalid chars check
  add "skipping this assembly" message

* Update src/linker/Linker/LinkContext.cs to match mono repo conventions

Co-Authored-By: Sven Boemer <[email protected]>

* Update AssemblyResolver.cs


Commit migrated from dotnet/linker@9a525c6
tkapin pushed a commit to tkapin/runtime that referenced this pull request Jan 31, 2023
I added the word Ignoring to the unresolved assembly log message for PR dotnet/linker#719, but I also delete the warning word section which is useful since it can be printed using the --verbose flag in the linker options, adding it again.

Commit migrated from dotnet/linker@1b4417d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants