2 projects with shared content roots

... just won't work.

Yeah I know... it's a feature. IDEA teaches you that it is not a good idea to have two projects sharing content roots. Right? Is it?

Ok, so enlighten me please: the project has a core, then some PDA code and some PC code. I want to setup a project for the PDA (which uses core) and one for PC (which uses core too).
So then I cannot open the two IDEA projects at the same time, right?


Thanks,
Michael

5 comments
Comment actions Permalink

ah, great. Problem persists after restart:

Assertion failed
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:78)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:86)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:276)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:27)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:394)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:98)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getFirstChild(TreeWrapperPsiElement.java)
at com.intellij.codeInsight.folding.impl.FoldingPolicy.getRangeToFold(FoldingPolicy.java:132)
at com.intellij.codeInsight.folding.impl.FoldingPolicy.getElementsToFold(FoldingPolicy.java:362)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:15)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.a(CodeFoldingManagerImpl.java:47)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.access$100(CodeFoldingManagerImpl.java:16)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl$1$1.run(CodeFoldingManagerImpl.java:3)
at com.intellij.openapi.editor.impl.FoldingModelImpl.runBatchFoldingOperation(FoldingModelImpl.java:59)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl$1.editorCreated(CodeFoldingManagerImpl.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.EventDispatcher.a(EventDispatcher.java:29)
at com.intellij.util.EventDispatcher.a(EventDispatcher.java:45)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:17)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:2)
at $Proxy15.editorCreated(Unknown Source)
at com.intellij.openapi.editor.impl.EditorFactoryImpl.a(EditorFactoryImpl.java:15)
at com.intellij.openapi.editor.impl.EditorFactoryImpl.createEditor(EditorFactoryImpl.java:20)
at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.b(TextEditorComponent.java:40)
at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.(TextEditorComponent.java:97) at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.(TextEditorImpl.java:49) at com.intellij.openapi.fileEditor.impl.text.TextEditorProvider.createEditor(TextEditorProvider.java:25) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:323) at com.intellij.openapi.fileEditor.impl.EditorsSplitters.readExternalPanel(EditorsSplitters.java:264) at com.intellij.openapi.fileEditor.impl.EditorsSplitters.openFiles(EditorsSplitters.java:13) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$6$1$1.run(FileEditorManagerImpl.java:0) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:39) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:70) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$6$1.run(FileEditorManagerImpl.java:1) at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:6) at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:1) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:18) at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:51) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:143) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) java.lang.NullPointerException at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:216) at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:27) at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:394) at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:98) at com.intellij.psi.impl.source.TreeWrapperPsiElement.getFirstChild(TreeWrapperPsiElement.java) at com.intellij.codeInsight.folding.impl.FoldingPolicy.getRangeToFold(FoldingPolicy.java:132) at com.intellij.codeInsight.folding.impl.FoldingPolicy.getElementsToFold(FoldingPolicy.java:362) at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:15) at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.a(CodeFoldingManagerImpl.java:47) at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.access$100(CodeFoldingManagerImpl.java:16) at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl$1$1.run(CodeFoldingManagerImpl.java:3) at com.intellij.openapi.editor.impl.FoldingModelImpl.runBatchFoldingOperation(FoldingModelImpl.java:59) at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl$1.editorCreated(CodeFoldingManagerImpl.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.util.EventDispatcher.a(EventDispatcher.java:29) at com.intellij.util.EventDispatcher.a(EventDispatcher.java:45) at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:17) at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:2) at $Proxy15.editorCreated(Unknown Source) at com.intellij.openapi.editor.impl.EditorFactoryImpl.a(EditorFactoryImpl.java:15) at com.intellij.openapi.editor.impl.EditorFactoryImpl.createEditor(EditorFactoryImpl.java:20) at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.b(TextEditorComponent.java:40) at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.(TextEditorComponent.java:97) at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.]]>(TextEditorImpl.java:49)
at com.intellij.openapi.fileEditor.impl.text.TextEditorProvider.createEditor(TextEditorProvider.java:25)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:323)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters.readExternalPanel(EditorsSplitters.java:264)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters.openFiles(EditorsSplitters.java:13)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$6$1$1.run(FileEditorManagerImpl.java:0)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:39)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:70)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$6$1.run(FileEditorManagerImpl.java:1)
at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:6)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:51)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:143)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:78)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:86)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:276)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:27)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:394)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:98)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getTextRange(TreeWrapperPsiElement.java:88)
at com.intellij.codeInsight.folding.impl.FoldingPolicy.getRangeToFold(FoldingPolicy.java:270)
at com.intellij.codeInsight.folding.impl.FoldingPolicy.getElementsToFold(FoldingPolicy.java:362)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:15)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.a(CodeFoldingManagerImpl.java:47)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegionsAsync(CodeFoldingManagerImpl.java:25)
at com.intellij.codeInsight.daemon.impl.CodeFoldingPass.doCollectInformation(CodeFoldingPass.java:7)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:6)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:189)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:16)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:36)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:42)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:7)



java.lang.NullPointerException
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:216)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:27)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:394)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:98)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getTextRange(TreeWrapperPsiElement.java:88)
at com.intellij.codeInsight.folding.impl.FoldingPolicy.getRangeToFold(FoldingPolicy.java:270)
at com.intellij.codeInsight.folding.impl.FoldingPolicy.getElementsToFold(FoldingPolicy.java:362)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:15)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.a(CodeFoldingManagerImpl.java:47)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegionsAsync(CodeFoldingManagerImpl.java:25)
at com.intellij.codeInsight.daemon.impl.CodeFoldingPass.doCollectInformation(CodeFoldingPass.java:7)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:6)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:189)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:16)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:36)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:42)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:7)



java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:78)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:86)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:276)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:27)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:394)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:98)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getFirstChild(TreeWrapperPsiElement.java)
at com.intellij.psi.util.PsiUtil.hasErrorElementChild(PsiUtil.java:886)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.a(PostHighlightingPass.java:236)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.a(PostHighlightingPass.java:254)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:331)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:6)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:189)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:16)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:36)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:42)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:7)



java.lang.NullPointerException
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:216)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:27)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:394)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:98)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getFirstChild(TreeWrapperPsiElement.java)
at com.intellij.psi.util.PsiUtil.hasErrorElementChild(PsiUtil.java:886)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.a(PostHighlightingPass.java:236)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.a(PostHighlightingPass.java:254)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:331)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:6)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:1)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:189)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:16)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:36)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:42)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:7)

0
Comment actions Permalink

assuming that it is a cache problem,
can I have a "clean cache"-Button, please?

Thanks ;)

0
Comment actions Permalink

Michael Damberger wrote:

Ok, so enlighten me please: the project has a core, then some PDA code and some PC code. I want to setup a project for the PDA (which uses core) and one for PC (which uses core too).
So then I cannot open the two IDEA projects at the same time, right?


Make it three separate java modules: core, PDA, and PC

Place all three modules in a single idea project
PDA depends on core
PC depends on core

done.

0
Comment actions Permalink

ah right, and I can set PDA to JDK1.2 independently? This would indeed help.

And please: safe poor dumb users like me from corrupting their caches / vcs / whatever has been corrupted by the fact of opening 2 projects with shared content roots ;)

While I have not yet done this - another questions:
I have IDEA_PROPERTIES env. variable set, but IDEA does seem to ignore it (5.1)
where are the caches? they are not where I configured in the idea.properties that is pointed to by the env var, and also not in $user.home

Because now I cannot cvs commit due to some cache error.

Thanks!!!

0
Comment actions Permalink

as I lost my jira bookmark, I paste it here: this was the problem with checkin.
Found my cache in the meantime, cleared it, problem solved.

2006-04-27 16:28:13,296 ERROR - llij.ide.plugins.PluginManager -
2006-04-27 16:28:13,296 ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 5.1.1 Build #4192
2006-04-27 16:28:13,296 ERROR - llij.ide.plugins.PluginManager - JDK: 1.5.0_06
2006-04-27 16:28:13,296 ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) Client VM
2006-04-27 16:28:13,296 ERROR - llij.ide.plugins.PluginManager - Vendor: Sun Microsystems Inc.
2006-04-27 16:28:13,296 ERROR - llij.ide.plugins.PluginManager - OS: Windows XP
2006-04-27 16:28:13,296 ERROR - llij.ide.plugins.PluginManager - Last Action: CheckinFiles
2006-04-27 16:28:13,296 ERROR - llij.ide.plugins.PluginManager -
java.lang.NullPointerException
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:216)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:27)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:394)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:98)
at com.intellij.psi.impl.source.PsiImportStatementImpl.getImportReference(PsiImportStatementImpl.java:2)
at com.intellij.psi.impl.source.codeStyle.ImportHelper.a(ImportHelper.java:236)
at com.intellij.psi.impl.source.codeStyle.ImportHelper.a(ImportHelper.java:180)
at com.intellij.psi.impl.source.codeStyle.ImportHelper.prepareOptimizeImportsResult(ImportHelper.java:175)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.prepareOptimizeImportsResult(CodeStyleManagerImpl.java:104)
at com.intellij.codeInsight.actions.OptimizeImportsProcessor.preprocessFile(OptimizeImportsProcessor.java:16)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor.a(AbstractLayoutCodeProcessor.java:40)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor.access$200(AbstractLayoutCodeProcessor.java:69)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$4.run(AbstractLayoutCodeProcessor.java)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:189)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8.run(AbstractLayoutCodeProcessor.java)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:42)
at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9.run(AbstractLayoutCodeProcessor.java:6)
at java.lang.Thread.run(Thread.java:595)

0

Please sign in to leave a comment.