Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Visual Studio 2013 Extension - v0.1.1433.0 #29

Open
bmingles opened this issue Mar 3, 2015 · 4 comments
Open

Visual Studio 2013 Extension - v0.1.1433.0 #29

bmingles opened this issue Mar 3, 2015 · 4 comments

Comments

@bmingles
Copy link

bmingles commented Mar 3, 2015

I'm loving this project. I was able to start a new grammar that works fine in the Visualizer application, but I can't seem to get it to recognize my files in VS. The included .njson and .ncs grammars work fine.

I am running Nitra v0.1.1433.0 and have installed the extension in VS2013 update 4. Are there any known issues / workthroughs for editing new grammars in VS?

@someone-with-default-username
Copy link
Contributor

Look for NitraGlobalConfig.xml file in Nitra installation diretory. You have to add section for your own language

<Language Name="MyLang" FileExtensions=".abc" Grammar="Parser.Class.Name" StartRule="StartRuleName">
      <Module>C:\mylang\My.Lang.dll</Module>
</Language>

Unfortunately there is not support for environment variables in config.

Now we are completely redesign custom languages integration with VS, so this config will be dropped soon. Instead we are making tool (Nitra.LanguageCompiler.exe) that generates entire VS package project for custom language.

@bmingles
Copy link
Author

bmingles commented Mar 3, 2015

Sadly, I tried that and it still didn't work.

<Language Name="Perl" FileExtensions=".npl" Grammar="PerlNitraGrammar" StartRule="CompilationUnit">
    <Module>C:\code\githome\PerlParser\PerlNitraGrammar\bin\Debug\PerlNitraGrammar.dll</Module>
</Language>

@VladD2
Copy link
Contributor

VladD2 commented Mar 31, 2015

At present we are working on a new version of VS integration. Wait a bit and we will publish it.

@LucaGabi
Copy link

Is this still true: "At present we are working on a new version of VS integration. Wait a bit and we will publish it" ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants