I have Eclipse PDT 3.0.2 All In Ones installed with Aptana Studio 3.2.0 plug-in. When I create a web project (Project Natures/Web is set to primary) with javascript file and try to use code completion (ctrl + space) this results in "No Default proposals" message. I can right-click on project and select "Configure/Convert to JavaScript Project" though but this is the feature of Eclipse not Aptana.
P.S. CSS and HTML code completion works fine.
That did it. I have changed an editor associated with .js files to JavaScript Source editor instead of JavaScript Editor which was set as default at installation. It would be nice if they added "Aptana" after the name of editor to distinguish it from other editors.
Related
I am writing a custom editor for eclipse, it works fine when I run it as an eclipse application, but when I install it through an update site, the editor has no content when opened. How do I fix this?
Source code for plugin, feature, and update-site: https://github.com/programmerjake/peg_parser_generator-eclipse commit 4c01fba773ea2cd60ab0efd08fae1331b18b62bc
update site url: http://programmerjake.tk/peg_parser_generator-eclipse/tk.programmerjake.peg_parser_generator.update_site/ version 0.1.1.5
The reason is that the plugin built didn't contain the actual editor classes, because the jvm version was set to 1.6 but the source code contains version 1.7 features.
after i installed snipmatch plugin to eclipse mars, i could not see code assist proposals in eclipse. i want to see code proposals from code recommenders plugin. it is very usable.
after installed the plugin, it can be seen as below.
[]
after hitting ctrl + space, it can be seen as below.
[]
i could not configure eclipse to see proposals. by the way snipmatch plugin works in eclipse. how can i correct this ?
I am a committer of the Code Recommenders project. This happens because of our change for Bug 470372. In order to prevent errors when working with other Java editors, we disable Code Recommenders proposals for editors other than the standard Java Editor.
Since you installed the newest version of Snipmatch, you also updated to the newest version of Code Recommenders, which includes this change.
In your case, you opened the Java File with Window Builder, which includes a Java Editor.
If you open it in the standard Java Editor instead (Right Click > Open With > Java Editor) and try content assist, I believe you will see the proposals again.
Another workaround would be to disable Code Recommenders and use the standard JDT proposals. They won't give you proposals with percentages, but at least you'll have them. To do so, go to Preferences > Code Recommenders > Completions and uncheck Enable Code Recommenders code completion.
I have opened Bug 474318 to track this issue with Code Recommenders and WindowBuilder.
I just added JBoss tools and I like a lot of what I get from it. However, I noticed that my .xhtml files are loading a /lot/ slower (on the order of several seconds) than before I installed JBoss tools. I'm willing to accept some slowdown (there's always overhead from using tooling sitting ontop of Eclipse) but this is a pretty long wait. I suspect it has to do with the visual editor that JBoss has added for .xhtml. I am using windows 64 bit and I can't use this editor. I've also tried following the advice at this link
http://docs.jboss.org/tools/whatsnew/vpe/vpe-news-3.3.0.M2.html
and adding -Dorg.jboss.tools.vpe.loadxulrunner=false to the eclipse.ini but I didn't notice any speedups. I also uninstalled the plugin for the JBoss visual editor and didn't see any results. After uninstalling the plugin the visual/source, source, and preview tabs are still at the bottom of the .xhtml editor, so maybe I uninstalled the wrong one?
I'm using Eclipse for Java EE Juno service release 1 Build id: 20120920-0800. I have the CDI, dynamic web module, Java, javascript, JSF 2.1, JAX-RS 1.1 JBoss Maven Integration 1.0 and JPA 2.0 facets installed on this project.
It is hard to say what you just uninstalled.
If you want just uninstall visual editor you can do such thing:
Just install onece again Eclipse and when you install JBoss Tools just doesn't select visual editor
Try to unistall visual editor. I think (but I never tested it) you should remove from plugins and features directoris wich starts from org.jboss.tools.vpe
I don't know if there can be some problems with dependencies and so on - you should make backup of Eclipse directory before making any changes.
Maybe it will be sufficient just open the files with other editor:
You can just open single file using other editor, just click in Package explorer view on the file with right click and choose Open with... menu - then you can open the file with for example HTML editor:
You can change the default editor for all files by open Window->Preferences menu and find Find associations position. There should be *.xhtml extensions - choose it and change the default editor.
Am looking for a plugin that will allow me to have code completion is my phonegap .html file and also highlight the javascript tags. I have installed the JSDT plugins but can't seem to have the code highlighting/autocomplete. It highlights only the HTML but doesn't seem to work for the scripts inside the <script> tag.
You can have a look in eclipse at
Help -> Install Software
Work with... Select your eclipse version (e.g. juno)
In the selection box below scroll to the entry "Web, XML, Java, ... " and expand it.
Select
Eclipse Java Web Developer Tools
Eclipse Web Developer Tools
Eclipse XML Developer Editors and Tools
JavaScript Development Tools
Web Page Editor
and then Next to install them.
Now you should have HTML, JS syntax highlighting and code completion.
This happens until I right-click and open the file once by selecting "Open with > Text editor". Subsequent double-clicks on that PHP file will open in the same Aptana instance. Any ideas about how to fix this?
Which version of Aptana Studio are you using?
In Studio 2, there is no default PHP plugin installed, so there is no PHP editor, and until you install the PDT plugin, you will get the above behavior.
In Studio 3, there is a default PHP plugin, so a double-click on a file should open it in the PHP editor.
As pointed out above, once you explicitly pick an editor for a file, it will continue to open in that editor. You can set up file associations here:
http://wiki.appcelerator.org/display/tis/Changing+your+file+association+preferences
Since this is still seems to be a bug in Aptana, this thread:
https://aptanastudio.tenderapp.com/discussions/problems/3707-aptana-opens-a-new-instance-when-i-click-on-a-file
led me to here:
https://jira.appcelerator.org/browse/APSTUD-23?focusedCommentId=151446&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-151446
Which fixed the issue on multiple computers (with fresh installs) for me.