gusarov / metacreator Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/metacreator
Automatically exported from code.google.com/p/metacreator
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:47
GOAL:
class Program
{
static void Main()
{
/*! for(int i=0;i<10;i++) { */
Console.WriteLine(/*= i */);
/*! } */
}
}
Original issue reported on code.google.com by [email protected]
on 10 Feb 2011 at 7:43
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:37
-
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 11:57
ConsoleWriteLine("Now is ${DateTime.Now}.")
=>
ConsoleWriteLine("Now is " + DateTime.Now + ".")
or e.g.
var someLicalVariable = DateTime.Now;
ConsoleWriteLine("Now is ${someLicalVariable}.")
see [http://boo.codehaus.org/String+Interpolation BooLang]
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:46
I have a project with one tt file that generates sql file. Project don't produce dll and event don't have cs files. At some circumstances error appeared:
Error Metadata file '...\obj\Debug@0_bin..._MLevel0.dll' could not be found
What steps will reproduce the problem?
1. Typed /*!*/ in metacode, for example to make in code space for metacode, but
doesn't fill it
2. Compile
3. Get error MetaCode: End-of-file found, '*/' expected
What version of the product are you using? On what operating system?
1.4
Original issue reported on code.google.com by [email protected]
on 21 Mar 2011 at 11:14
class Program
{
int Method()
{
return 5;
}
/*!
WriteLine("public override string ToString(){"
WriteLine("return " + Program.Method() + ".ToString()");
WriteLine("}"
*/
}
That can be done with double passes compilation with intermediate assembly.
Just like WPF building.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 11:59
MetaCreator utilizes separate AppDomain for compilation of macroses. But is you
run msbuild or devenv on a builder as a separate process, there are no reason
in separate AppDomain, because this process will exit just after build, and
releases all temporary assemblies.
consider to use special property in targets or conditional compilation symbol
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 11:01
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:34
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:49
1) MetaCode: Compile errors
/*! #error */
2) MetaCode: Evaluation exception
/*! throw null; */
3) Processed code compile errors
var q = /*= "unknown"+"variable" */ ;
Original issue reported on code.google.com by [email protected]
on 25 Jul 2010 at 4:13
-
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 9:49
// <summary>
/// Author: Salvatore Previti - 08-April-2009.
///
/// Visual studio host compiler keeps a cache of files during the MSBuild step, so they are not readed from disk.
/// This is ok for performance and intellisense, right, but this introduces also some subtle bug!
///
/// See forum thread "Generated Code Not Building - VS Caching Problem?" at http://social.technet.microsoft.com/Forums/en-US/msbuild/thread/14bb304d-d8e6-4227-bc2b-e2e6d4f979be?ppud=4 for more informations.
/// This task contains a simple but effective work around to this caching bug :)
///
/// How it works:
///
/// Visual studio keeps MSBuild Tasks dll loaded also between different compilations in the same appdomain where MSBuild is executed.
/// Due to this fact, we can keep some states (static variables) between different compilations during the same development session.
/// This class, infact, uses a static synclocked dictionary to keep states between different compilations.
/// Each time static function UpdateFileUsageCount is called with the same prefix and with the same filename (case insensitive), the resulting value is incremented.
///
/// There is another "feature" (bug?) in visual studio cache mechanism... <Compile Include="c:\test.cs"> and <Compile Include="c:\test.cs ">
/// are considered different files, so, they are cached as two different files (look the space character in "test.cs " in the second Compile tag).
/// MSBuild and all filesystems, instead, treat both files as the same :)
///
/// So the solution! Each time we generate a file, we use a different number of spaces using our in-ram dictionary.
/// The static function that does this is UpdateSpaces.
/// During tests, a single space seems sufficient, but to be safe, I used MaxSpaces constant to use more than one space.
///
/// This system has some drawback, though:
/// 1) You need to use this Task, so, you have to include a DLL and add some tags to your MSBuild project.
/// 2) This should works for full pathed filenames.
/// 3) Not garbage collector friendly - some objects (internal static dictionary and some Visual Studio cached files) will never be released and there is no way to release them.
/// This is a small amount of RAM, though, and should not be a problem during development.
/// During command-line MSBuild this problem can be ignored.
/// </summary>
Original issue reported on code.google.com by [email protected]
on 17 Oct 2012 at 5:53
Does we really need this? how about reusing current assembly references? How
about including all namespaces for metacode?
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:39
-
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 11:54
-
Original issue reported on code.google.com by [email protected]
on 28 Feb 2012 at 8:58
What steps will reproduce the problem?
/*!
using(var sr = new StreamReader("Types.txt"))
{
while(!sr.EndOfStream)
{
var typeName = sr.ReadLine();
var type = Type.GetType(typeName);
*/
public partial class /*= type.Name */Serializer : MySerializer</*= type.Name */>
{
What is the expected output?
NullReferenceException in line
public partial class /*= type.Name
What do you see instead?
NullReferenceException in line *.meta.cs
Write( type.Name );
Original issue reported on code.google.com by [email protected]
on 19 Jun 2011 at 9:01
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:48
-
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 11:30
I should release V1.3
Original issue reported on code.google.com by [email protected]
on 15 Feb 2011 at 10:28
-
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 11:58
Research, do we really need that?
Why WPF generates this?
Does MS DSL Tools generates this?
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:30
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:35
/*! dynamic q = 5; */
Original issue reported on code.google.com by [email protected]
on 10 Feb 2011 at 6:50
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:48
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:35
-
Original issue reported on code.google.com by [email protected]
on 24 Jun 2010 at 8:08
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Error 2 MetaCode: An assembly with the same identity 'mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has already
been imported. Try removing one of the duplicate
references. C:\Users\Administrator\AppData\Local\Temp\MQuantity.meta.cs MtG.Doma
in
Original issue reported on code.google.com by dmitrinesteruk
on 13 Sep 2010 at 7:22
research
Original issue reported on code.google.com by [email protected]
on 12 Feb 2011 at 3:12
1) notify
2) object-downcast-dispatching problem
3) 'compiled at'
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 1:00
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 11:46
What steps will reproduce the problem?
1. Make double pass metacode
2. Use some class in 2nd pass from 1st pass
Ideally there should be no extra work to bring this in live.
Original issue reported on code.google.com by [email protected]
on 9 Nov 2014 at 2:43
CreditMaster.Service.Dal -> M:\WS3\Credit Master\Main\Source\Service\bin\CreditMaster.Service.Dal.dll
------ Rebuild All started: Project: CreditMaster.Service.Contract,
Configuration: Debug Any CPU ------
* MetaCreator.targets: Clean
* MetaCreator.targets: Execute MetaCreator (Targets v1.6)...
* MetaCreator.dll: Data\IDataService.tt - 38 macros processed. Evaluating...
* MetaCreator.dll: Data\IDataService.tt - 38 macros processed to =>
[Not changed] Data\IDataService.g.cs
Original issue reported on code.google.com by [email protected]
on 14 Mar 2012 at 5:11
now it is allways '0'
calculate and use real line number.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 4:22
What steps will reproduce the problem?
1. Open any solution with MetaCreator inside SharpDevelop
2. Build
3. Error: $(SolutionDir)
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 10:04
Both csc and metacreator tasks are ignored. Output is not updated.
This is expected behaviour from msbuild's point of view. But workatounds should
exist. May be BuildAction=Meta? Or custom property for this item, like
<None Include="something.xml">
<AffectsMetacode/>
</None>
Original issue reported on code.google.com by [email protected]
on 11 Feb 2011 at 2:43
-
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 11:55
1. Install into %programfiles%
2. GAC
3. NGEN
4. Register safe MetaCreator.targets for VS in HKLM
5. Extend Custom.Before.Microsoft.Common.targets
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 9:57
Just like in BooLang
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:42
VS and msbuild allows to use 'link' instead of 'add existing' cs file to
project.
Lets work with this accurately
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:27
Research for security problems. Apply required restrictions to separate app
domain.
Original issue reported on code.google.com by [email protected]
on 26 Jun 2010 at 12:32
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.