facebook

JSP – Content Assist not available at the current location

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #294512 Reply

    whardwick
    Member

    I am unable to get Content Assist to work in a JSP that was recently working perfectly. I have tried restarting my machine, and I have also tried re-importing projects and creating a new workspace. The general layout of my file is below:

    
    <%@ page import="com.mycompany.managers.Manager"%>
    <%@page import="java.util.*"%>
    <%
    Manager manager = new Manager();
    manager.getContents();
    %>
    

    This is all at the top of the page as displayed above. If I type “manager” and hit ctr-space, I get the “Content Assist not available at the current location” error. This was happening in 6.5, just before I upgraded to 7.0 and it is still occurring.

    Note that com.mycompany.managers.Manager is in a separate project, being included as a JAR file (not as classes in WEB-INF/classes).

    Thanks.

    #294570 Reply

    whardwick
    Member

    Bumping, because I asked this question Friday with no response.

    #294812 Reply

    whardwick
    Member

    This is a serious problem and I need help. Am I not posting in the correct forum? This is now happening on a co-workers MyEclipse as well.

    #294841 Reply

    support-joy
    Member

    Hey whardwick,

    Can you verify your content assist options under Window -> Preferences. Click on Java -> Editor -> Content Assist.

    #294939 Reply

    whardwick
    Member

    Here are my settings:

    #294947 Reply

    support-joy
    Member

    whardwick,

    Your content assist looks good. I am unable to reproduce this. To replicate your issue. I have created 2 sample web projects – TestWebProject and WebProject. I added the jar file of TestWebProject to WebProject/WEB-INF/lib. And I am able to see the content-assist. Please see the attached screen shot.

    Attachments:
    You must be logged in to view attached files.
    #294973 Reply

    whardwick
    Member

    I have temporarily (hopefully permanently) fixed this issue.

    #295039 Reply

    support-joy
    Member

    Good to hear whardwick!

    Can you post your solution, so that other users can benefit from it? Did you move the jar file to WEB-INF/lib folder?

    #297520 Reply

    whardwick
    Member

    The solution was to build a new workspace from scratch. I do not feel like this was a good solution, as this is now happening to a co-worker as well. I think this needs to be looked into at some point.

    Thanks.

    #297554 Reply

    support-joy
    Member

    Can you give me pointers to reproduce at my end. As I have shown in the above screenshot content assist is working for me. I understand that you are facing this issue, but currently I cannot reproduce this at my end. If you can share a sample project where content assist doesn’t work, and also copy and paste your installation details, it will help me reproduce this issue. To share your project, I would recommend you to upload either a .zip/.rar of your project and send a mail to support@genuitec.com with this attachment. Please include ATTN: JOY in subject line and refer to this thread.

    Thanks for your help.

    #297759 Reply

    My content assist is not functioning at all. It was previously working but stopped functioning after one of the many updates. It is not possible to specify what triggered it exactly because I do not use it all of the time and there are updates to the MyEclipse platform often.

    #297772 Reply

    support-joy
    Member

    maherybe,

    Sorry to hear, you are running into this issue. Can you check under Window > Preferences > Java > Editor > Content Assist under Auto-Activation if enable Auto Activation is turned on? Click on Window > Preferences > Java > Editor > Content Assist > Advanced and set the relevant configurations. You should set Enable auto activation under Window > Preferences > Ant > Editor > Content Assist.
    Also set Enable auto activation under Window > Preferences > MyEclipse Enterprise Workbench > Files and Editors > Javascript > Content Assist. Let me know if this helps?

    #332546 Reply

    Fedarkyn
    Member

    This error exists until today.
    It happens every time you create a new jsp with your application already running. if you stop your container and restart your eclipse (or make a clean and build) it gets fixed

    #332554 Reply

    support-swapna
    Moderator

    Fedarkyn,

    I could not replicate the issue at my end on MyEclipse 10.7. I created a simple web project, deployed it to MyEclipse Tomcat. When my application is already running, I created a new JSP file and the content assist works as expected.

    Can you please let us know your installation details from MyEclipse > Installation Summary > Installation Details ?

    Also share with us the steps in detail to help us replicate the issue at our end.

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: JSP – Content Assist not available at the current location

You must be logged in to post in the forum log in