tunnelvisionlabs / LangSvcV2

"Language Service V2" reference repository
Other
86 stars 38 forks source link

ANTLR templates do not appear in new project system #84

Closed sharwell closed 7 years ago

sharwell commented 7 years ago

:link: Originally reported by @jamesqo in https://github.com/tunnelvisionlabs/LangSvcV2/pull/83#issuecomment-309955557.

sebandraos commented 7 years ago

Might this have to do with this old issue https://github.com/tunnelvisionlabs/LangSvcV2/issues/61?

sharwell commented 7 years ago

It actually turned out that the templates were mostly fine. In my first attempt to reproduce the problem, I wasn't able to because I was using the new project system to target net45. However, when I changed to netstandard1.3, the templates disappeared.

As I often do when examining template issues, I went and found one of the template files which still appeared in .NET Standard projects and opened its definition:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class\Class.vstemplate

Comparing this to the templates for ANTLR, it was immediately clear where the difference lied.

kappa7194 commented 7 years ago

I downloaded the Tvl.VisualStudio.Tools.Antlr.vsix file from build 1.0.44 and installed it in Visual Studio Professional 2017 (15.2.0+26430.15) and the extension seems to be enabled, but I'm unable to find the templates even for non-Core projects, I don't even have the "ANTLR" category in the add file pop-up. Am I missing something?

Add New Item pop-up

sharwell commented 7 years ago

@kappa7194 Try uninstalling the extension, restarting Visual Studio, and then installing it again from the VSIX.

kappa7194 commented 7 years ago

Try uninstalling the extension, restarting Visual Studio, and then installing it again from the VSIX.

Found the problem, my fault: I downloaded and installed Tvl.VisualStudio.Tools.Antlr.vsix instead of Tvl.VisualStudio.Language.Antlr3.vsix.