Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCE0004 IEntity in booish.gui - both are *SAME* #107

Open
ghost opened this issue Mar 21, 2015 · 8 comments
Open

BCE0004 IEntity in booish.gui - both are *SAME* #107

ghost opened this issue Mar 21, 2015 · 8 comments

Comments

@ghost
Copy link

ghost commented Mar 21, 2015

I am unable to build extras/booish.gui and the error is complete nonsense:

[booc] b:\tests\boo\extras\booish.gui\src\CodeCompletionData.boo(78,38): BCE0004: Ambiguous reference 'IEntity': Boo.Lang.Compiler.TypeSystem.IEntity, Boo.Lang.Compiler.TypeSystem.IEntity.

How can I have ambiguity between two same things? There are more identical errors.

How it started: I have downloaded current boo-master, extracted and wanted to run booish.exe from the bin directory - ERROR! (Win8.1 CZ)

Neošetřená výjimka: System.Security.SecurityException: Požadavek na oprávnění typu System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 se nezdařil.
v System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
v System.Security.CodeAccessPermission.Demand()
v System.Environment.InternalGetFolderPath(SpecialFolder folder, SpecialFolderOption option, Boolean suppressSecurityChecks)
v System.Environment.GetFolderPath(SpecialFolder folder)
v Boo.Lang.Interpreter.InteractiveInterpreterConsole..ctor()
v BooishModule.Main(String[] argv)

So, downloaded NAnt, altered my system PATH variable and typed nant test. All went good. I wanted to try something, booish.gui looked good. It took me some time to find out that I need old SharpDevelop 3.x (4.x and 5.x use AvalonEdit) and create build.properties to set boo.profile=build. But now I am getting these strange errors. What is going on?

BTW: ILSpy found exactly one interface IEntity in all dlls in build directory of booish.gui.

@ghost
Copy link
Author

ghost commented Mar 21, 2015

boox failed as well:

BooExplorer.Common:

 [booc] Compiling 1 files to 'b:\tests\boo\extras\boox\build\BooExplorer.Common.dll'.
 [booc] b:\tests\boo\extras\boox\BooExplorer.Common\CodeCompletion.boo(51,43): BCE0019: 'GetAllMembers' is not a member of 'Boo.Lang.Compiler.TypeSystem.TypeSystemServices'.
 [booc] 1 error(s).

@ghost
Copy link
Author

ghost commented Mar 22, 2015

So... modifying the import to

import Boo.Lang.Compiler.TypeSystem from Boo.Lang.Compiler

...made a change, but all those extras (or at least booish.gui and those dependent on it) are way tooooooo old referencing SD1.1 and some older Boo version... all broken :(

Why is it still there?

@masonwheeler
Copy link
Contributor

The compiler is including itself and its dependencies as a reference by default, so you have two versions of IEntity: the one in the compiler, and the one in the version of Boo.Lang.Compiler that the project is referencing.

You can switch this off with the -nostdlib compiler switch, (or the project option that says to not reference mscorlib, in #Develop,) which causes the Boo compiler to not add any standard references.

@Andykid69
Copy link

Sorry, I am newby here (don't now English, write from my fingers and my tooth pain) and newby in .NET programming.
Windows booxw:
cd to boo-master\extras\boox and c:\utils\nant\bin\nant (SD 4.4)
I have same:
BCE0019: 'GetAllMembers' is not a member of 'Boo.Lang.Compiler.TypeSystem.TypeSystemServices'
What to do (russian (forwere) question, first from two)?

@masonwheeler
Copy link
Contributor

@Andykid69 I'm not sure what you mean by that.

@Andykid69
Copy link

Andykid69 commented Jul 28, 2016

I want to write small home programm. After (....) I decide (or deciding...) try that in boo
(I like python, but compiler does not like resources. When I write python programm, I can not debug this.)
I wanna compile (now) boox. Here is that error.
PS: I can read English, I can't write English.

@Andykid69
Copy link

When I compile boox
BCE0019: 'GetAllMembers' is not a member of 'Boo.Lang.Compiler.TypeSystem.TypeSystemServices'
What is

@masonwheeler
Copy link
Contributor

@Andykid69 As I pointed out above, you need to make sure the compiler doesn't add itself to your references when you build, by passing -nostdlib and making sure to resolve the needed references properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants