Closed ijsgaus closed 3 years ago
When Run in Rider produce error: [Error] Unresolved include: LinqToDB.Tools.ttinclude
Could you provide more details, please? How exactly was LinqToDB.Tools.ttinclude
included when it produced the error?
As for MultipleFiles.ttinclude
, that's a known issue, EnvDTE is indeed not supported yet. Please, feel free to upvote this issue: https://youtrack.jetbrains.com/issue/RIDER-35770
This functionality was indeed broken. Thank you for your report! The fix is now merged into the branch net193 and will be available in the next EAP of Rider
was this fixed? I have the latest Rider
JetBrains Rider 2020.1.3
Build #RD-201.7846.1, built on May 15, 2020
but the issue still persists.
I believe it was. Could you also tell me the version of the T4 plugin installed in your instance of Rider, please? It can be found in settings:
I have this [cid:image001.png@01D63DA7.94803030]
Do I need to subscribe to EAP channel for Rider?
From: Kirill Glazyrin notifications@github.com Reply-To: JetBrains/ForTea reply@reply.github.com Date: Monday, June 8, 2020 at 12:46 PM To: JetBrains/ForTea ForTea@noreply.github.com Cc: Eugeniu Rata eugen.rata@gmail.com, Comment comment@noreply.github.com Subject: Re: [JetBrains/ForTea] Error reporting in T4 templates in Linq2Db (#12)
I believe it was. Could you also tell me the version of the T4 plugin installed in your instance of Rider, please? It can be found in settings: [image]https://user-images.githubusercontent.com/31822295/84073584-c832ef00-a9d9-11ea-873a-37fa33378d0b.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/JetBrains/ForTea/issues/12#issuecomment-640848723, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOBPMJKHV4B2HWPUVSXIE3RVU5Y7ANCNFSM4JQVZCXA.
here it is again.
Thank you for reporting that! We will investigate this issue
Same where! Plugin 2020.2.284
still not working :( I'm using eap 2020.3
@integral-llc, @alejandrod and @pavelvondrasek, thanks for your reports! I've checked that the red code only appears in files that are not included into any of your T4 files. For instance, in this example Linq2DB.ttinclude
is indirectly included into Template.tt
and hence has no errors, while NotifyDataErrorInfo.ttinclude
is not included into Template.ttinclude
and hence contains the red code.
Is that the case in your projects, or do you experience red code in files that are included into T4 files that compile and run correctly?
I'm not using T4 templates (and I don't know how it should work) but it was annoying for me that I only install my favourite database layer and see all red...
So that I cannot help you with answer I fixed it with removing linq2db.postgresql and added npgsql directly (how guys from linq2db recommended me) 😀
You saw all red after installing templates because linq2db includes are not self-sufficient. Some templates contain references to assemblies, other templates contain usages of symbols from these assemblies, so without a template that includes those ttincludes it is impossible to resolve symbols from them. I'll think about what we can do about that
Upvote for it. It is pain to see red errors across the project tree because of not self-sufficiency linq2db.
I found a workaround to remove the red hell from your projects. You can disable code analysis of *.ttinclude files in Rider:
You can use it until that issue will be resolved. If it will be resolved, of course
This templates worked fine in Visual Studio, but produced errors in Rider IDE.