question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EmbedUntrackedSources not honoured for F# projects on GitHub

See original GitHub issue

I have a project that includes a build-time generated (and untracked) file of the form

namespace MyNameSpace
module SolutionRoot =
  let location = """some/file/path"""

which is located at some\file\path\_Generated\SolutionRoot.fs

If I build the project with SourceLink (Microsoft.SourceLink.GitHub Version="1.0.0-beta-63127-02") and <EmbedUntrackedSources>true</EmbedUntrackedSources> the untracked file is not detected as such, but is linked by URL instead along with all the others that generate symbols. So when I invoke the sourcelink global tool on the symbols with option test, I get error: url failed NotFound: Not Found when it tries to locate this untracked file in GitHub at the url _Generated\SolutionRoot.fs relative to the current commit root.

Using EmbedAllSources instead does embed every file that generates symbols, including this one, and sourcelink test passes.

I am assuming that as the F# compiler is source-control agnostic, the issue lies somewhere on the SourceLink side.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bordingcommented, Mar 28, 2019

@saul You can get it from http://msbuildlog.com/

1reaction
tmatcommented, Sep 30, 2018

The log shows that SourceLink identifies correctly the files that need to be embedded:

image

It seems however that the F# build targets do not read the EmbeddedFiles items. This has been fixed recently in F#: https://github.com/Microsoft/visualfsharp/issues/4075, but the fix doesn’t seem to make it to VS 2017 update. Can you try the latest build? See https://github.com/Microsoft/visualfsharp/wiki/Using-CI-Builds

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sourcelink not working if snupkg is present, but ...
Okay - So i have tried to set up my project with SourceLink and noticed that some versions did support stepping in while...
Read more >
Generated resource files are not included by ...
Currently, Resx generated files don't get embedded into sourcelink enabled PDBs. Hopefully, sourcelink would populate the embedded files ...
Read more >
Unable to satisfy conflicting requests for the same version ...
When building in debug mode, we want to reference these projects as ProjectReferences , but in release mode or during the package building...
Read more >
Drop Paket? · Issue #184 · fabulous-dev/Fabulous
I would like to uniformize the repo by going either full Paket or full NuGet. Problem is: Paket is not supported by Visual...
Read more >
Default VS symbol loading mechanism does not work ...
Description pdbs should be published in a way which is easily consumable with VS default Symbol server, respective with SourceLink.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found