Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Koneki » Some questions of LDT on MacOSX
Some questions of LDT on MacOSX [message #1416375] Sun, 01 April 2012 05:56 Go to next message
xu cao is currently offline xu caoFriend
Messages: 10
Registered: April 2012
Junior Member
Hi,

I am a new user of LDT and have some questions for it.

I've installed LDT on eclipse 3.7 and the OS is MacOSX, I found the feature Code Assistance didn't work for me. The message "No completions available" will be given if I want to trigger this feature even on some system module like io.

And there is a bug of Error Markers and Variable Highlighting. If the lua source file contains some non-ascii characters like Chinese as below, the Error Markers and Variable Highlighting will appear in wrong position. I guess it is because that the scanner gets wrong length of tokens' length of Chinese strings.

-- 联动相关方法
--visible、invisible、enable、disable在checkbox不选择中时要执行相反功能。而radio/select则不需要,他们只需执行新选择的radio/option对应的功能;
--参数长度任意,每个参数为控件的name,参数之间用逗号分隔,如RYTVisiable("",userName,password),当多个控件有相同的name时同等处理;
--调用此方法后,请调用screen:reflash();
--第一个参数为引起控件本身的name值,checkbox必需填值,其它控件可选,也可传空值("")。
function RYTL:visiable(name, ...)
for i, v in ipairs(arg) do
local vars = document:getElementsByProperty{name=v; -- '}' expected
for j, c in ipairs(vars) do
if self:needDoReverse(name) == true then
c:setStyleByName("display", "none");
else
c:setStyleByName("display", "block");
end
end
end
end

Finally, I want to build LDT from source code but I get the following error when I run 'mvn package' on the project that I downloaded from github.

localhost:koneki.ldt apple$ mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.eclipse.koneki.ldt:aggregator

Reason: Cannot find layout implementation corresponding to: 'p2' for remote repository with id: 'eclipse'. for project org.eclipse.koneki.ldt:aggregator


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find layout implementation corresponding to: 'p2' for remote repository with id: 'eclipse'. for project org.eclipse.koneki.ldt:aggregator
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)


Is there a tutorial that introduces how to hack, build, test and contribute? Any help will be appreciate.
Re: Some questions of LDT on MacOSX [message #1416376 is a reply to message #1416375] Sun, 01 April 2012 06:02 Go to previous messageGo to next message
xu cao is currently offline xu caoFriend
Messages: 10
Registered: April 2012
Junior Member
Sorry for the repeated commits, please delete them
Re: Some questions of LDT on MacOSX [message #1416377 is a reply to message #1416376] Sun, 01 April 2012 16:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

in order to build LDT from source you need Maven 3. I am pretty much sure the error message you got is because you're running Maven 2.
Unfortunately there's no decent "Contributor guide" yet... I have initiated this http://wiki.eclipse.org/Koneki/LDT/Tutorials/Building_LDT_from_source though ; please feel free to add anything you think would be useful to newcomers!

Regarding the markers and variable highlighting being messed up, this seems to be related to non-ASCII characters indeed.
If you'd be willing to have a look at the bug, we could definitely give you some hints to help you look in the right place!
Could you please https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Koneki;component=LuaTools so as we can track the problem?

Thanks!
Re: Some questions of LDT on MacOSX [message #1416390 is a reply to message #1416377] Mon, 09 April 2012 09:39 Go to previous messageGo to next message
xu cao is currently offline xu caoFriend
Messages: 10
Registered: April 2012
Junior Member
Thanks.

After installed maven3, I can build the project now. And I've created a ticket that refers to the bug: id=376304

Hoping you could help to fix it.
Re: Some questions of LDT on MacOSX [message #1416398 is a reply to message #1416377] Thu, 12 April 2012 07:31 Go to previous message
xu cao is currently offline xu caoFriend
Messages: 10
Registered: April 2012
Junior Member
Hi

Could you please give me some hints about how you implement the feature Error Markers and which part of the source code should I look at to fix the bug?

Thanks
Previous Topic:External Tools Configurations
Next Topic:Cannot create OMA-DM simulator
Goto Forum:
  


Current Time: Mon Nov 19 03:05:22 GMT 2018

Powered by FUDForum. Page generated in 0.02504 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top