баг с ссылками на сборки
От: Andy Panda США  
Дата: 31.01.07 10:39
Оценка:
Использую то, что называется simple VS integration. Столкнулся с проблемой:

Есть сборки (стрелкой показано что на что ссылается)
Logic -> PowerCollections
Logic.Nemerle -> Logic

в сборке Logic определен класс вида
class aaa
{
  public Set<SomeClass> Property {get {..} set {..}};
}


при попытке в сборке на Nemerle сделать итерацию по элементам данного свойства
foreach( foo in aaa.Property)
{
}

компилятор валился с стектрейсом жуткого вида

:\Program Files\Nemerle\Nemerle.MSBuild.targets(167,9): error : internal compiler error: got some unknown exception of type System.NullReferenceException: Object reference not set to an instance of an object.
at Nemerle.Compiler.LibraryReference.NetType..ctor(LibraryReference lib, Type h, Node ns_node) in C:\Andy\Downloads\Архивы\nemerle-0.9.3.99.7360\nemerle-0.9.3.99.7360\ncc\external\LibrariesLoader.n:line 728
at Nemerle.Compiler.LibraryReference.ConstructTypeInfo(Type reflected_type, Node ns_node) in C:\Andy\Downloads\Архивы\nemerle-0.9.3.99.7360\nemerle-0.9.3.99.7360\ncc\external\LibrariesLoader.n:line 684
at Nemerle.Compiler.LibraryReferenceManager.GetInternalType(LibraryReference lib, Type t, Node node) in C:\Andy\Downloads\Архивы\nemerle-0.9.3.99.7360\nemerle-0.9.3.99.7360\ncc\external\LibrariesLoader.n:line 469

и т.д. и т.п.

И так глючило все время, пока до меня не дошло, что нужно добавить прямую ссылку еще и на PowerCollections

Logic -> PowerCollections
Logic.Nemerle -> Logic
Logic.Nemerle -> PowerCollections

В любом случае — не думаю, что компилятору стоило вываливаться с internal compiler error
... << RSDN@Home 1.2.0 alpha rev. 648>>
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.