Skip to main content



      Home
Home » Newcomers » Newcomers » Templates not working
Templates not working [message #1304064] Sat, 19 April 2014 13:04 Go to next message
Eclipse UserFriend
Hello Everyone!
I just installed Eclipse Kepler (Build id: 20140224-0627) on a freshly installed Lubuntu 14.04 (64bit, 3.13.0-24-generic kernel).
My problem is that I can't get the templates to work. I created a new Java project, class file etc. and typed "sysout" and hit <Ctrl>+<Space>. From what I've understood (I have never used templates before) Eclipse should now automatically convert this to "System.out.println("")" but it doesn't do anything except underline the word with an error message saying "sysout cannot be resolved to be a variable".
I don't know if it's related but the Code Assist completion generally doesn't work before the first dot ("."); If I type "Syst" and hit <Ctrl>+<Space>, nothing happens. Just as soon as I type "System." all the suggestions pop up.
I have absolutely no clue how to fix this and I couldn't find a solution on the web, but maybe someone of you has an idea what to try...
Re: Templates not working [message #1307840 is a reply to message #1304064] Mon, 21 April 2014 16:34 Go to previous messageGo to next message
Eclipse UserFriend
Do you see that template on the Java>Editor>Templates preference page?
Re: Templates not working [message #1307941 is a reply to message #1307840] Mon, 21 April 2014 17:51 Go to previous messageGo to next message
Eclipse UserFriend
Yes, I do. I also tried it with other pre-installed and selfmade templates with the same "result".
Re: Templates not working [message #1307966 is a reply to message #1307941] Mon, 21 April 2014 18:11 Go to previous message
Eclipse UserFriend
SOLVED:
The problem was a really stupid one: Together with the new Lubuntu version came a new preinstalled tool to quickly switch keyboard layouts/languages. And the sortcut to do this was Ctrl+Space. So I could get the Content Assist to work perfectly again by disabling this tool.
Previous Topic:eclipse startup problem
Next Topic:Eclipse not running certain programs/Java SE crashing
Goto Forum:
  


Current Time: Tue Jun 17 01:42:52 EDT 2025

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

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

Back to the top