The selected type is not visible and cannot be run by Pex - moles

I'm running Pex 1.4.40602.0. When I try to run Pex on an internal" type I get a "The selected type is not visible and cannot be run by Pex." error dialog. I have tried to place the following commands in my Assembly.cs file, but all to no avail:
[assembly: InternalsVisibleTo("Groucho.Generic.Tests")]
[assembly: InternalsVisibleTo("Groucho.Generic.Moles")]
[assembly: InternalsVisibleTo("Groucho.Generic.Explorables")]
Any help in this regard would be greatly appreciated....

Related

Compiling vb project using VBC throwing error

I have VB project, which is compiling/building perfectly using vb6 IDE in XP mode.
My objective is to automate the deployment process, so am trying to build this project in command line using VBC.
But while compiling vb project in window 7 using VBC.exe and cmd its throwing following error/exception.
Example:
error: BC30203: Identifier expected.
error: BC30481:'class' statement must end with matching end class.
error: BC30617:'Module' statement can occur only at file or namespace level.
Does anybody have any suggestion ideas what am missing here.
Thanks in advance.

PHPUnit not working on netbeans "--ansi" is not registered

When generating the Test with Netbeans I got the following ouput message error:
"C:\wamp\bin\php\php5.4.3\php.exe" "C:\wamp\bin\php\php5.4.3\phpunit-skelgen" "--ansi" "generate-test" "newPHPClass" "C:\Users\Alfonso\Documents\NetBeansProjects\PHPUnit_Test\newPHPClass.php" "newPHPClassTest" "C:\Users\Alfonso\Documents\NetBeansProjects\PHPUnit_Test\Tests\newPHPClassTest.php"
The referenced parameter '--ansi' is not registered.
Done.
However when I run,in the commandline, the following command:
phpunit-skelgen --test newPHPClass
it works.
It seems netbeans does not run the proper command. How to correct this problem?
Thanks

Typescript: unexpected reserved word in PHPStorm

I´m trying to get a simple TypeScript file working in PHPStorm, but sadly there seem to be some misconfiguration by default as the class keyword is not recognized properly
This is my TypeScript file:
class Test{
}
And this is the error I´m facing:
And this is my FieWatcher configuration of TypeScript
How can I get TypeScript working?
The Program options should not be node.exe (that would mean you are trying to typescript code as javascript). It needs to be tsc or node tsc(that means you want to run tsc to compile the file to javascript).
PS: this video might be helpful : https://www.youtube.com/watch?v=RWXGMug_Rmo&hd=1

The ECLIPSE RCP project could not be exported successfully

I met an error when I exported the Eclipse Product using the export wizard on the overview tab of the .product file ,
the error message is as below .
but it worked just fine when I ran it from inside of Eclipse as an Eclipse Application.
can anybody provide some idea about this .
C:\workSpace\0709\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:90: The following error occurred while executing this line:
C:\workSpace\0709\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:1140: The following error occurred while executing this line:
C:\tool\eclipse-standard-kepler-SR2-win32-x86_64\eclipse\plugins\org.eclipse.pde.build_3.8.100.v20130514-1028\scripts\genericTargets.xml:243: A problem occured while invoking the director.
Thanks & Regards,
Jeff
The originating problem is somewhere else.. To find it out add following line to your genericTargets.xml under node <target name="runDirector"> -> <record name="path_to_log_output_file" loglevel="verbose"> . Then you will probably see actual problem.

Flex compiler error: "please put definition in a package" for classes that ARE in a package

This is with Flexbuilder 3.2, Eclipse 3.3.2.
I am moving my development environment to a new machine. Actionscript classes that compiled in the old environment now get a compile error:
A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.
I do declare the package in these classes - I think failure to declare the package is the usual reason for this error.
To add to the mystery, many classes in this project compile without errors.
What should I check to diagnose this?
Problem solved - I had missed out some items in the path in the environment where I was launching Eclipse.
"C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0"\bin
"C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0"\frameworks
"C:\Program Files\Adobe\Flex Builder 3 Plug-in\jre"\bin
"C:\Program Files\Adobe\Flex Builder 3 Plug-in\jre"\lib
I'm amazed anything at all worked with this much missing from my path.