IS there a actionpack/subsonic generator for 3.0 like there was for 2.0?
No. All code generation for SubSonic is handled through T4 templates: http://subsonicproject.com/docs/Setting_up_SubSonic_3.0
Related
For a project I need to use LCIA method EF 3.0. The JRC has provided all sort of files: https://eplca.jrc.ec.europa.eu/LCDN/developerEF.xhtml.
However I don't have any clue how I could implement this in bw2, as I'm just starting to use bw2. Does someone have experience in implementing EF 3.0 in bw2 who can help me with this?
Implementing EF 3.0 is basically impossible for someone who is just starting, as you need to have strong knowledge of the whole Brightway stack, as well as LCA, including its unstated assumptions and common metadata. However, you aren't the only one working on this, so we will take it up in the developer's circle, and try to get a method implemented by June 2021.
I'm using VS 2017 and ReSharper Ultimate 2016.3.2.
The code builds fine but in text editor I'm getting something like errors:
and
When I suspend ReSharper the errors are gone. What is the problem?
Initial support for C# 7.0 was introduced only a month ago by Resharper team, so it's basically isn't ready:
C# 7 and VB.NET 15 come with some additional language enhancements that we’re also adding support for in ReSharper but are still in early stages in our nightly builds
Right now these features are supported:
C# 7.0/VB.NET 15 binary literals and digit separators (parsing, several context actions, support for literals written in different base/separated differently)
Support for C# local functions (parsing, analyzing null)
Limited support for C# pattern-matching expressions (as the language design itself is not finished), C# output variables, C# tuples and C# deconstruction
There was a new release earlier this week, yet to support the features you're pointing to. So you should wait for a while.
On the ANTLR download page it states that the latest version of ANTLR is 4.4. From the C# Target section on the same page, clicking "ANTLR 4 C# Target (Latest Release)" brings me to the 4.3 Target Release GitHub page that has a link for Readme.md, which when clicked, results in a 404.
Question 1: Although the download page states that the latest version for C# 4.4, the version I get via NuGet is 4.3. Does this mean 4.4 isn't available for C#?
Question 2: Where do I find the tools for code generation that correspond to the version I got from NuGet (that is, Antlr 4.3)?
We attempted using antlr-4.4-complete.jar for code generation - we substituted that jar for the previous (antlr4-csharp-4.0.1-SNAPSHOT-complete.jar) in our build script and now we get: "error(31): ANTLR cannot generate CSharp_v4_5 code as of version 4.4" (which we didn't get previously). We also tried antlr-4.3-complete.jar and got similar results.
What do we need to take advantage of the latest release?
First of all, I corrected the link to the Readme.md in the release notes. Thanks for pointing it out, although a more reliable way to notify the maintainer is to file an issue directly for the project.
Second, the C# target is not based on the version of ANTLR posted on antlr.org, but instead on a fork of the project I created to optimize performance and (especially) memory overhead associated with parsing highly complex grammars. The tools use different serialization formats and are not interchangeable.
The C# code generator is distributed via NuGet, as described in the readme file.
ANTLR 4.4's primary differences over ANTLR 4.3 are the following:
Inclusion of additional targets (irrelevant for the C# target, since the runtime libraries are not C# and also use the other serialization format)
A bug-fix in the tool that has minimal effect on users (it throws an exception instead of reporting an error at code generation time for a specific type of grammar error)
Fixes a bug that occurs when an unknown target is specified (also not applicable to the C# target, since the MSBuild integration automatically selects the correct target language)
Based on this, the 4.3 release of the C# target is functionally equivalent to 4.4. I'm waiting to release a "4.4" version until I can address other performance concerns and functionality which doesn't apply to the reference version. In particular, I'm working on the following:
Improving concurrency by reducing contention (sharwell/antlr4#13)
Supporting indirect left recursion (currently a work-in-progress in the indirect-lr and java8-grammar branches)
Supporting a new baseContext option, shown here for a Java 8 grammar
I'm very new at ANTLR and use V4 to generate a lexer to integrate with netbeans.
The generated java-file gives me an error: "constant too long" at the serialized ATN.
How can i configure ANTLR to generate an compliant String (ore more of them)?
kind regards
Jan
This is a limitation of the first release of ANTLR 4 that has since been fixed. Here is the issue report:
Serialized ATN strings should be split when longer than 2^16 bytes (class file limitation)
Until ANTLR 4.1 is released sometime this Summer, you have two options:
Build a current version of ANTLR from source code, and use that.
Modify your lexer/parser to be simpler, thus requiring fewer states.
I am having big issues with rich:tree in 3.3 version but the all application is written in 4 therefor refactoring all the system is not advise can i take just tree component from 4 ?...
You either use 3.x or 4.x for everything, mixing them is probably not possible.