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 198735 - projects with remote development host are always reparsed on connection to host
Summary: projects with remote development host are always reparsed on connection to host
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-05-19 15:15 UTC by Vladimir Voskresensky
Modified: 2011-06-01 13:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2011-05-19 15:15:33 UTC
Create remote and/or full remote project for host XXX
wait when project is parsed
open some files and system include files as well (should be read only)
close IDE
reopen IDE
activate any remote file (i.e. system include file)
notification about needed connection is shown
accept connection action
=> 
project is completely reparsed ignoring cache which is valid for this project, because no changes were made.
Comment 1 Vladimir Voskresensky 2011-05-19 15:17:03 UTC
it happens, because RemoteCodeModelUtils.scheduleReparse is called for connected execEnv which calls
CsmModelAccessor.getModel().scheduleReparse
which force full reparse of projects and libraries from host
Comment 2 Vladimir Kvashin 2011-05-27 15:11:11 UTC
http://hg.netbeans.org/releases/rev/98a2f5bc8f83
Comment 3 Alexander Simon 2011-05-28 05:02:27 UTC
Fix results in broken discovery unit tests.
See NPE in tests log:
java.lang.NullPointerException
	at org.netbeans.modules.cnd.remote.fs.CndFileSystemProviderImpl$ProblemListenerAdapter.access$000(CndFileSystemProviderImpl.java:313)
	at org.netbeans.modules.cnd.remote.fs.CndFileSystemProviderImpl.removeFileSystemProblemListenerImpl(CndFileSystemProviderImpl.java:303)
	at org.netbeans.modules.cnd.spi.utils.CndFileSystemProvider$DefaultProvider.removeFileSystemProblemListenerImpl(CndFileSystemProvider.java:443)
	at org.netbeans.modules.cnd.spi.utils.CndFileSystemProvider.removeFileSystemProblemListener(CndFileSystemProvider.java:94)
	at org.netbeans.modules.cnd.modelimpl.csm.core.LibProjectImpl.setDisposed(LibProjectImpl.java:86)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.disposeProject(ModelImpl.java:311)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.disposeProject(ModelImpl.java:301)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.shutdown(ModelImpl.java:481)
	at org.netbeans.modules.cnd.discovery.project.MakeProjectTestBase.shutdownModel(MakeProjectTestBase.java:165)
	at org.netbeans.modules.cnd.discovery.project.MakeProjectTestBase.tearDown(MakeProjectTestBase.java:160)
	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:414)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:237)
Comment 4 Vladimir Kvashin 2011-05-28 06:26:33 UTC
(In reply to comment #3)
> ... NPE in tests log:
Sorry. Fixed:
http://hg.netbeans.org/releases/rev/ae196420601e
Comment 5 Quality Engineering 2011-05-28 12:18:37 UTC
Integrated into 'main-golden', will be available in build *201105280401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/adff73fce40f
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixing #198735 projects with remote development host are always reparsed on connection to host
(transplanted from 98a2f5bc8f836ec1ee973250963a64c46e3f2a23)
Comment 6 Vladimir Kvashin 2011-05-31 12:14:01 UTC
http://hg.netbeans.org/releases/rev/9e49ac198672
Comment 7 Quality Engineering 2011-06-01 13:19:37 UTC
Integrated into 'main-golden', will be available in build *201106010401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/91520abf1f41
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #198735 projects with remote development host are always reparsed on connection to host
(transplanted from 9e49ac1986728712d297178157bb3897bc437b2a)