home recent topics recent posts search faq  

Pretty Objects Visual T# Forum



register | lost password   open id sign in with Twitter
Messages in this topic - RSS

Home » T# Compiler » unknown type errors

Conversations on T# compiler features, usability, wish list...
11/24/2010 4:35:55 PM

Ben McClure
Ben McClure
Posts: 3
I don't know the best place to post this question. I've been trying to get my first T# test case of the simplest type (testing the 'get' accessor of a property) all afternoon, and it's just not working.

Project namespace I'm testing: GameLib.Backups.Components (components is a subfolder of the GameLib.Backups project)
Test project: GameLib.BackupsTest

whether or not I add a 'using' statement in test class file, I get an 'unknown type' error for the class I'm testing (happens to be ZipBackupSelectFileFilter)

When I mouse over any of the 'using' statements, the tooptip states "*** Unknown! ***" (even for System and TSharp.Criteria) so I'm not sure if that's a problem or not.

There are references to the GameLib.Backups, as well as mscorlib, System, and TSharp.

Also, possibly related, I get:
'unknown member 'TSharpCompiler.References.ExternalType+PrivateErrorType.Filter'

Unsure where to go from here... I don't seem to have done anything different than in the 'Product' test case in the documentation.

--
Ben McClure
0 permalink
11/25/2010 7:49:46 AM

Ludovic Dubois
Ludovic Dubois
Administrator
Posts: 159
The best place to post bugs is: http://bugs.prettyobjects.com:8888/ but you will have to create another account (you can use the same username and password) because we do not have single sign-on.


It seems it cannot parse your source file correctly!
  • Where do you specify using statements? At file top level or inside namespace?
  • Can you verify Path property of the references?
  • Can you ensure all these paths exist?
  • Can you try a fool test like test { int i; runtest i = 1; assert i == 1; }, without any new reference than the ones provided at project creation time?
The best would be to create a bug in our bug tracking system and post there the answers to these questions.


Thanks a lot.
0 permalink

Home » T# Compiler » unknown type errors





Powered by Jitbit Forum 7.2.14.1 © 2006-2011 Jitbit Software