Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19281

Tern error when opening a jsp file

    XMLWordPrintable

Details

    • Sprint #1 April 2015
    • Hide

      1. Start Eclipse with JBT installed
      2. Create a dynamic web project
      3. Create a new JSP file in the project - once you finish the dialog, the file will be opened for you. That's when you should get the error window.

      Show
      1. Start Eclipse with JBT installed 2. Create a dynamic web project 3. Create a new JSP file in the project - once you finish the dialog, the file will be opened for you. That's when you should get the error window.

    Description

      I was just verying something in master for Rob and hit this issue:
      I created a dynamic web project, then a jsp file. Once the jsp was opened in Eclipse, I got this error popup immediately:

      This was in the workspace log:

      !ENTRY org.eclipse.core.jobs 4 2 2015-01-29 17:04:14.678
      !MESSAGE An internal error occurred during: "Refresh tern project job".
      !STACK 0
      java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/dynproj2
      	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
      	at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:134)
      	at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:333)
      	at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:85)
      	at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:298)
      	at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:118)
      	at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:2251)
      	at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1347)
      	at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1401)
      	at tern.eclipse.ide.internal.core.builder.TernBuilder.addTernBuilder(TernBuilder.java:231)
      	at tern.eclipse.ide.internal.core.resources.IDETernProject.doLoad(IDETernProject.java:186)
      	at tern.resources.TernProject.load(TernProject.java:332)
      	at tern.eclipse.ide.internal.core.resources.RefreshTernProjectJob.runInWorkspace(RefreshTernProjectJob.java:49)
      	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

      This was JBT nightly from today (2015/01/29) from http://download.jboss.org/jbosstools/updates/nightly/mars/ on top of Eclipse Mars M4. On top of that, I had one server PR of Rob's installed, but that shouldn't have any effect.
      My platform is OS X 10.10 Yosemite, running Oracle JDK 1.7.

      I realize this is master and it might be a known issue, but better to be safe

      Attachments

        Issue Links

          Activity

            People

              vrubezhny Victor Rubezhny (Inactive)
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: