-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Loading some addins with loaddependencies prevents cake file from being loaded #163
Comments
@bjorkstromm any thoughts on this one? I believe I am right in saying that you will see output from Bakery in the Omnisharp log which you can switch to here: |
According to logs, Bakery is trying to look at a native library when searching for addins. This should be fixed. Only CLR assemblies should be inspected by Mono Cecil. We already have this check in Cake, so it should be easy to port to Bakery. |
Analysis of cake file isn't full story of this issue. While adding logging, I simply skipped over files which could not be loaded, but there is also an issue in later part of the file. I.e. after ignoring loading in part I described above, I still get error. But this time at least I can see it in OmniSharp Log pane. @bjorkstromm, I don't see messages from Cake.Bakery in OmniSharp Log pane. I also tried changing VS Code
|
I realized Cake.Bakery logging depends also on OmniSharp logging level. But this realization did not help much :D After setting OmniSharp level to Debug and Trace, Cake.Bakery still doesn't log anything. Note that log level is correctly passed to Omnisharp.exe, but it's not propagated further to Cake.Bakery.exe. |
@nikola-nignite this is completely unrelated to your problem, but where are you getting those screenshots for the arguments that were passed into the executable? I have never seen these before, and now I feel like a noob! |
These logs seems to indicate that native assemblies are passed as metadata references to the compilation. This is a bug. Only CLR assemblies should be passed. Native deps should be filtered out in Bakery. Even better if we could filter out all runtime-dependencies. IIRC, Cake.NuGet "should" already support this, so don't know why this is getting through all the way to the OmniSharp compilation. |
My bad... In Cake we ACTUALLY want runtime deps. In Bakery we don't. So this might be the issue. |
@gep13 Apologies about that. True, they are unrelated issues. Submitted separate issue #164 . Albeit, it's debatable whether it's Cake.Bakery or OmniSharp bug. |
GH163: Only find aliases in CLR assemblies
🎉 This issue has been resolved in version 0.9.1 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Thanks for pushing a fast update. One note when testing this fix:
But now in OmniSharp log I get logged following:
Software I used: |
nupkg contains a CILproxy exe to work cross-platform with Omnisharps embedded mono runtime which is used on non-Windows OSs. |
There is absolutely no need to apologise here, it was me that was apologising! I was the one asking the question that had nothing to do with this thread. I had no idea that you could get information about the command line argument passed through to the process within Process Explorer. Thank you for sharing that information! And thank you for creating the follow up issue. |
If I try to reference some more recent Microsoft nuget packages, VS Code simply does not offer any intellisense or debug support.
I tracked it down to how Cake.Bakery loads references.
In my case, I tried following:
#addin "nuget:?package=Microsoft.Data.SqlClient&loaddependencies=true&version=4.0.0
I added some logging to file to Cake.Bakery.Scripting and got following:
However, if I do not
loaddependencies
, then i will have to list them each manually in order for the script to execute correctly :(I have to note that script does execute correctly even with
loaddependencies
switched on.By the way, is there a guide on how to view log output of Cake.Bakery? I did not manage to find output in any of the VS Code windows, so I ended up manually writing to file :(
The text was updated successfully, but these errors were encountered: