This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 171714 - [68cat] Increase parsing.api's major version before 6.8 code freeze
Summary: [68cat] Increase parsing.api's major version before 6.8 code freeze
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL: http://statistics.netbeans.org/except...
Keywords: API
: 176464 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-08 13:54 UTC by Peter Nabbefeld
Modified: 2009-11-13 04:58 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158058


Attachments
stacktrace (1.63 KB, text/plain)
2009-09-08 13:54 UTC, Peter Nabbefeld
Details
The proposed changes (42.37 KB, patch)
2009-11-10 09:54 UTC, Vitezslav Stejskal
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2009-09-08 13:54:34 UTC
Build: NetBeans IDE Dev (Build 200909071948)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.AbstractMethodError
        at org.netbeans.modules.csl.core.EmbeddingIndexerFactoryImpl.filesDeleted(EmbeddingIndexerFactoryImpl.java:84)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.delete(RepositoryUpdater.java:1357)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSource(RepositoryUpdater.java:2671)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$AbstractRootsWork.scanSources(RepositoryUpdater.java:2587)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$RootsWork.getDone(RepositoryUpdater.java:2421)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$InitialRootsWork.getDone(RepositoryUpdater.java:2728)
Comment 1 Peter Nabbefeld 2009-09-08 13:54:38 UTC
Created attachment 87272 [details]
stacktrace
Comment 2 Peter Nabbefeld 2009-09-08 14:23:54 UTC
Seems to be a /var folder issue. What about adding some version information to the caches? Then You could easily throw
away the cache, if it's invalid after some update - this would improve "stability experience" dramatically, as there
seem to be often problems like this.
Comment 3 Vitezslav Stejskal 2009-09-08 14:46:04 UTC
"Seems to be a /var folder issue" - Unlikely, although it may have fixed the problem for you.

Most likely the problem is that you installed modules that were not updated and built against 6.8 dev version of
parsing.api. Looking at the log I can see several candidates:

	org.netbeans.modules.languages.execution [0.10.1 nbms-and-javadoc-3334-on-090617]
	org.netbeans.modules.languages.refactoring/0 [1.1.0.1 1 nbms-and-javadoc-3334-on-090617]
	org.netbeans.modules.languages.prolog [1.4 nbms-and-javadoc-3485-on-090707]
	org.netbeans.modules.languages.tcl [1.4 nbms-and-javadoc-3334-on-090617]
	org.netbeans.modules.languages.antlr [0.2.6 090615]

There have been incompatible changes in parsing.api in 6.8 and there might be more. We will increment parsing.api's
major version number before code freeze, which will effectively prevent using modules compiled against older versions to
be loaded in 6.8 IDE.
Comment 4 Peter Nabbefeld 2009-09-08 14:56:05 UTC
Will there be a summary of changes / some help available for upgrading the modules?
Comment 5 Vitezslav Stejskal 2009-09-08 15:06:34 UTC
Maybe, but the changes so far were pretty straightforward - eg. using Iterable instead of Collection, etc. All changes
were recorded in apichanges.xml and so are available at
http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-parsing-api/apichanges.html
Comment 6 Peter Nabbefeld 2009-09-08 15:13:21 UTC
Prolog uses NBS, don't know if others, too. What about these? Is Schliemann further supported, or will there be any
updates for these?
Comment 7 Vitezslav Stejskal 2009-09-09 07:51:29 UTC
No idea. I know nothing about Schliemann/NBS. This particular issue concerns parsing.api and incompatible changes that
we have been doing in it during 6.8, nothing else. So please stay on the topic. If you have other problems/concerns with
Schliemann please file a separate defect. Thanks
Comment 8 Peter Nabbefeld 2009-09-09 09:42:19 UTC
No problem. Just thought You could tell me about NBS, and cannot file a new bug report without having a statement :(
Comment 9 Vitezslav Stejskal 2009-11-10 06:00:15 UTC
This is not really a change, but due to the incompatible changes previously done in parsing.api in 6.8 I'm going to increase the module's major version in order to prevent problems such as the exceptions reported in this issue. If anybody has a problem with this please speak up now. I'd like to push the change before the code freeze (ie. by the end of this week). I'll update all modules in the standard distribution (default repository). Thanks
Comment 10 Vitezslav Stejskal 2009-11-10 09:54:13 UTC
Created attachment 90729 [details]
The proposed changes
Comment 11 Vitezslav Stejskal 2009-11-11 06:49:36 UTC
http://hg.netbeans.org/jet-main/rev/36427ecf6f17
Comment 12 Jan Lahoda 2009-11-13 04:58:24 UTC
*** Bug 176464 has been marked as a duplicate of this bug. ***