Elements command line not cooperating with me

elements --ref=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/rt.jar -d -t=library -m=cooper Test.swift

RemObjects Elements (Oxygene, C# and Swift) Compiler for .NET, Cocoa, Java and Island.
Version 9.1.99.2151 (master) built on bajor, 20170531-171224. Commit 78e15e2.
Copyright 2003-2017 RemObjects Software, LLC. All rights reserved.
Source file: /Users/perezd/Desktop/Test.swift
Reference: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/rt.jar
Entering phase “Loading Source Files” (00:00:02.3067289)
Entering phase “Loading Resources” (00:00:00.1224638)
Entering phase “Resolving Namespaces” (00:00:00.0007925)
Entering phase “Resolving Types” (00:00:00.0107163)
Entering phase “Resolving Properties and Events” (00:00:00.1358087)
Entering phase “Resolving Interfaces” (00:00:00.0240464)
Entering phase “Resolving Bodies” (00:00:00.0716422)
Entering phase “Checking Members” (00:00:00.1604622)
Entering phase “Generating Helper Types” (00:00:00.0560030)
Entering phase “Inlining code” (00:00:00.0407298)
Entering phase “Pre-Simplifying Code” (00:00:00.0057779)
Entering phase “Simplifying Code” (00:00:00.0002684)
Entering phase “Flow Analysis” (00:00:00.0257351)
Entering phase “Generating Output” (00:00:00.0150436)
(0:0) [E253] Error while generating executable: Could not resolve type with token 01000015 (from typeref, class/assembly RemObjects.Elements.RTL.String, Elements, Version=9.1.99.2151, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098)
Entering phase “Done” (00:00:00.1256206)
Compilation failed

Any idea what I’ve done wrong? Here’s Test.swift:

public final class Test { 
	private var testing: String!

	 init() {
		self.testing = "foo"
	}
}

Rename Elements.exe to ElementsC.exe for now. it seems there’s a conflict between Elements.exe and Elements.dll, the latter of which contains the type it cannot find :(.

I’ll log to get this fixed.

Thanks, logged as bugs://77952

That doesn’t seem to fix it. I get the same error, I updated the “elements” script to point to ElementsC.exe as well.

Strange. What version of Elements and of Mono do you have installed?

The latest released elements and whatever version of mono the docs link to.

Ok. i think i have an idea whats causing this, i’ll have a look tuesday (as i’m probably out all day tomorrow). In the mean time, can you use xbuiild (or Fire)?

For my needs I really need the command line tools working. I can wait.

ok, i’ll keep you posted. FWIW, using xbuild instead of elements(.exe) would be command line, as well.

Ah ok, I’m trying to integrate elements with bazel.build. I’d prefer to use
elements directly.

Any update on this? Would love to start hacking.

should be fixed in the current beta.

Noob question here…where do I download betas from?

https://secure.remobjects.com/ will have a betas link if you have an active subscription. That will have the latest betas.

and http://beta.remobjects.com will take you directly there, for convenience, as well.

I haven’t purchased a silver license yet…I’m still evaluating it :frowning: Is this coming to a stable release anytime soon?

It’ll be a bit longer; We’re eying a potential 9.2 release in late July or August. I can send you a newer beta build, whats your account name on remobjects.com?

—marc

I believe its perezd, thanks!!

Cool. I’ve uploaded last weeks beta of the command line zip distro to https://secure.remobjects.com/portal/downloads/personal for you.

much appreciated, I will report back!

1 Like