tolc / intellij_jahia_plugin Goto Github PK
View Code? Open in Web Editor NEWJahia's definitions.cnd files syntax highlighting, code completion, and other amazing stuff
License: Apache License 2.0
Jahia's definitions.cnd files syntax highlighting, code completion, and other amazing stuff
License: Apache License 2.0
What steps will reproduce the issue?
What is the expected result?
IDEA doesn't start to reindex the Java home dir again.
What happens instead?
IDEA starts to reindex the Java home dir again.
Note: when the plugin is disabled this issue is not reproducible
Here is the cause exception of it:
2020-04-15 10:02:28,338 [1424864] INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index filetypes
java.lang.Throwable: Reindexing after adding Jahia jar
at fr.tolc.jahia.intellij.plugin.cnd.components.CndProjectComponent$1$1.run(CndProjectComponent.java:122)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:976)
at fr.tolc.jahia.intellij.plugin.cnd.components.CndProjectComponent$1.run(CndProjectComponent.java:60)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:728)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:1030)
at com.intellij.openapi.progress.util.ProgressWindow.pumpEventsForHierarchy(ProgressWindow.java:199)
at com.intellij.openapi.progress.util.ProgressWindow.lambda$startBlocking$3(ProgressWindow.java:189)
at com.intellij.openapi.application.impl.ApplicationImpl.runUnlockingIntendedWrite(ApplicationImpl.java:857)
at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:188)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$legacyExec$6(ProgressRunner.java:302)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:753)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:731)
at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2108)
at com.intellij.openapi.progress.impl.ProgressRunner.legacyExec(ProgressRunner.java:300)
at com.intellij.openapi.progress.impl.ProgressRunner.submit(ProgressRunner.java:248)
at com.intellij.openapi.progress.impl.ProgressRunner.submitAndGet(ProgressRunner.java:169)
at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:426)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:492)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:84)
at com.intellij.platform.ProjectUiFrameAllocator$run$1.run(ProjectFrameAllocator.kt:85)
at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:467)
at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:485)
at com.intellij.platform.ProjectUiFrameAllocator.run(ProjectFrameAllocator.kt:68)
at com.intellij.platform.PlatformProjectOpenProcessor$Companion.openExistingProject(PlatformProjectOpenProcessor.kt:175)
at com.intellij.ide.RecentProjectsManagerBase.openProject(RecentProjectsManagerBase.kt:304)
at com.intellij.ide.ReopenProjectAction.actionPerformed(ReopenProjectAction.java:62)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:280)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:296)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:281)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:77)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:285)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:112)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:112)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:401)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:349)
at com.intellij.openapi.wm.impl.GlobalMenuLinux.lambda$_handleEvent$13(GlobalMenuLinux.java:785)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:739)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2020-04-15 10:02:28,535 [1425061] INFO - il.indexing.FileBasedIndexImpl - scheduleIndexRebuild, reason: checkRebuild
Hello,
I installed this plugin.
I don't understand why Intellij doesn't find reference to native node and property.
For instance :
Error occurs after IntelliJ IDEA update
java.lang.NoClassDefFoundError: com/intellij/psi/jsp/el/ELElementType
at fr.tolc.jahia.intellij.plugin.cnd.references.CndJspReferenceContributor.registerReferenceProviders(CndJspReferenceContributor.java:19)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistryImpl.registerContributedReferenceProviders(ReferenceProvidersRegistryImpl.java:112)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistryImpl.createRegistrar(ReferenceProvidersRegistryImpl.java:82)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistryImpl.getRegistrar(ReferenceProvidersRegistryImpl.java:118)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistryImpl.doGetReferencesFromProviders(ReferenceProvidersRegistryImpl.java:139)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.lambda$getReferencesFromProviders$0(ReferenceProvidersRegistry.java:39)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:158)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:227)
at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:227)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:228)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:155)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:121)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.java:38)
at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.java:31)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getReferences(CndPsiImplUtil.java:487)
at fr.tolc.jahia.intellij.plugin.cnd.psi.impl.CndSuperTypeImpl.getReferences(CndSuperTypeImpl.java:34)
at com.intellij.psi.impl.SharedPsiElementImplUtil.addReferences(SharedPsiElementImplUtil.java:59)
at com.intellij.psi.impl.SharedPsiElementImplUtil.findReferenceAt(SharedPsiElementImplUtil.java:33)
at com.intellij.psi.impl.SharedPsiElementImplUtil.findReferenceAt(SharedPsiElementImplUtil.java:51)
at com.intellij.psi.impl.PsiElementBase.findReferenceAt(PsiElementBase.java:86)
at com.intellij.psi.AbstractFileViewProvider.findReferenceAt(AbstractFileViewProvider.java:238)
at com.intellij.psi.SingleRootFileViewProvider.findReferenceAt(SingleRootFileViewProvider.java:223)
at com.intellij.psi.impl.source.PsiFileImpl.findReferenceAt(PsiFileImpl.java:531)
at com.intellij.codeInsight.TargetElementUtilBase.findReference(TargetElementUtilBase.java:189)
at com.intellij.codeInsight.TargetElementUtilBase.doGetReferenceOrReferencedElement(TargetElementUtilBase.java:160)
at com.intellij.codeInsight.TargetElementUtilBase.getReferenceOrReferencedElement(TargetElementUtilBase.java:204)
at com.intellij.codeInsight.TargetElementUtilBase.getReferencedElement(TargetElementUtilBase.java:248)
at com.intellij.codeInsight.TargetElementUtilBase.doFindTargetElement(TargetElementUtilBase.java:227)
at com.intellij.codeInsight.TargetElementUtilBase.findTargetElement(TargetElementUtilBase.java:292)
at com.intellij.codeInsight.TargetElementUtil.findTargetElement(TargetElementUtil.java:147)
at org.jetbrains.android.AndroidGotoDeclarationHandler.getGotoDeclarationTargets(AndroidGotoDeclarationHandler.kt:50)
at com.intellij.codeInsight.navigation.impl.GtdProvidersKt.fromGTDProvidersInner(gtdProviders.kt:31)
at com.intellij.codeInsight.navigation.impl.GtdProvidersKt.access$fromGTDProvidersInner(gtdProviders.kt:1)
at com.intellij.codeInsight.navigation.impl.GtdProvidersKt$fromGTDProviders$1.invoke(gtdProviders.kt:18)
at com.intellij.codeInsight.navigation.impl.GtdProvidersKt$fromGTDProviders$1.invoke(gtdProviders.kt)
at com.intellij.codeInsight.navigation.impl.CommonKt.processInjectionThenHost(common.kt:26)
at com.intellij.codeInsight.navigation.impl.GtdProvidersKt.fromGTDProviders(gtdProviders.kt:17)
at com.intellij.codeInsight.navigation.actions.GotoDeclarationOrUsageHandler2.gotoDeclarationOrUsages(GotoDeclarationOrUsageHandler2.kt:29)
at com.intellij.codeInsight.navigation.actions.GotoDeclarationOrUsageHandler2.getCtrlMouseInfo(GotoDeclarationOrUsageHandler2.kt:35)
at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.getCtrlMouseInfo(GotoDeclarationAction.java:94)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:392)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.lambda$execute$0(CtrlMouseHandler.java:370)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:521)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$3(NonBlockingReadActionImpl.java:486)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:158)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:115)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:57)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:57)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:112)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:486)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:407)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
In Java class code (maybe in other place, didn't check), if you have a string containing the pattern 'cndNamespace:[A-Za-z]+', the plugin will try to match against declared nodes.
If the nodetype doesn't exist, the editor will mark the string as if there were an error. But sometimes you need to reference a property that has the same pattern (for example, jcr:title) and is not a node, and the error will be there, even if you know that's not an error. I don't know if that affects the build process, but it's middly disturbing.
I think the plugin should warn about the fact that it's not a known node, but not mark the string as if there was an error.
Edit : just checked, same thing in JSPs
'type' can only be css or javascript.
'resources' completion based on 'type' attribute.
To prevent the nodetypes list from taking too much place
For a while I have some definitions added which are using namespace "jnt".
This issue occurs for the last 3-4 months ( I always update to the latest Intellij Idea Ultimate)
When scrolling through the definitions file Intellij breaks when I come scroll to any content type definition with namespace "jnt".
I think the plugin is trying to load the image (the NT image to the left of the definition - in the annotations column) because it's throwing these exceptions when i try showing annotations for git blame, and throwing URI exception I scroll to it.
Title says it all
Need some instructions how to tune and build IDEA project, containing plugin.
I have some errors, trying to build project by default:
CndPropertiesLineMarkerProvider:
Error:(8, 45) java: package com.intellij.lang.properties.psi.impl does not exist
CndJspElVariablesProvider:
Error:(17, 31) java: package com.intellij.psi.jsp.el does not exist
I used this http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/prerequisites.html but this is not enough.
Views are not in the "views" group when the name contains an underscore in the cnd :
[mynt:name_width_underscore] > jnt:content
Hello,
The plugin doesn't recognize multiple resources in <template:addResources if it contains whitespaces.
Ex: <template:addResources type="javascript" targetTag="body" resources="vendors/jquery.js, vendors/jquery.sticky.js"/> => jquery is OK but jquery.sticky.js is KO nevertheless the file exists in the directory (src/main/resources/javascript/vendors/jquery.sticky.js).
NB: If I remove the space, it's OK.
NB: Plugin version 2.0.3
Best regards,
Thomas
Hello,
I wanted to use the CND file syntax highlighting and editing support but I can't because the plugin will not start unless it has JSP support.
JSP support is not available in intellij community edition however.
Could you please make the functionality available in Intellij Community edition? I believe it should be possible to extract it somehow.
Thanks,
18:06 Plugin Error
Problems found loading plugins:
Plugin "CND Language / Jahia Framework" was not loaded: required plugin "com.intellij.jsp" not installed.
Disable CND Language / Jahia Framework
Open plugin manager
I'm using:
IntelliJ IDEA 2017.1.3
Build #IC-171.4424.56, built on May 12, 2017
JRE: 1.8.0_131-8u131-b11-2-b11 amd64
JVM: OpenJDK 64-Bit Server VM by Oracle Corporation
Linux 4.9.0-3-amd64
In definitions.cnd:
- indices (string) multiple
Generated JSP code:
<c:set var="indices" value="${currentNode.properties['indices']}"/>
<c:forEach items="${indices}" var="item">
${item}
</c:forEach>
Should be ${item.string}
instead of ${item}
.
Of course depending on the property type declared.
KO
OK
Jahia considers that a - or a + is the beginning of a new property. So the plugin should not allow - or + in choices without quotes.
When trying to use autocomplete within brackets, i got the following exception :
com.intellij.codeInsight.lookup.LookupElementBuilder.create(Ljava/lang/Object;)Lcom/intellij/codeInsight/lookup/LookupElementBuilder;
java.lang.NoSuchMethodError: com.intellij.codeInsight.lookup.LookupElementBuilder.create(Ljava/lang/Object;)Lcom/intellij/codeInsight/lookup/LookupElementBuilder;
at fr.tolc.jahia.intellij.plugin.cnd.CndCompletionContributor$3.addCompletions(CndCompletionContributor.java:98)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:135)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:128)
at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$2.addCompletions(LiveTemplateCompletionContributor.java:90)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81)
at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:112)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:796)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$1000(CompletionProgressIndicator.java:90)
at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:778)
at com.intellij.codeInsight.completion.AsyncCompletion$1$1$1.run(CompletionThreading.java:93)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:878)
at com.intellij.codeInsight.completion.AsyncCompletion$1$1.run(CompletionThreading.java:88)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
at com.intellij.codeInsight.completion.AsyncCompletion$1.run(CompletionThreading.java:84)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:405)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)
Intellij version : 14.1.2
Current project structure is too difficult and doesn't satisfy some Java standards
DEW IT!!
IntelliJ IDEA 2022.1 (Ultimate Edition) Build #IU-221.5080.210, built on April 12, 2022
java.lang.Throwable: Assertion failed: Directory index can only be queried after project initialization
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:218)
at com.intellij.openapi.roots.impl.RootIndex.(RootIndex.java:69)
at com.intellij.openapi.roots.impl.RootIndex.(RootIndex.java:56)
at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getRootIndex(DirectoryIndexImpl.java:172)
at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getRootIndex(DirectoryIndexImpl.java:155)
at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getInfoForFile(DirectoryIndexImpl.java:182)
at com.intellij.openapi.roots.impl.FileIndexBase.getInfoForFileOrDirectory(FileIndexBase.java:96)
at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getInfoForFileOrDirectory(ProjectFileIndexImpl.java:27)
at com.intellij.psi.search.ProjectScopeBuilderImpl$3.contains(ProjectScopeBuilderImpl.java:99)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294)
at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206)
at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300)
at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
at com.intellij.util.containers.ContainerUtil.newHashSet(ContainerUtil.java:245)
at com.intellij.util.indexing.FileBasedIndexEx.getContainingFiles(FileBasedIndexEx.java:233)
at com.intellij.util.indexing.FileBasedIndexImpl.getContainingFiles(FileBasedIndexImpl.java:1090)
at com.intellij.psi.search.FileTypeIndex.getFiles(FileTypeIndex.java:43)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndProjectFilesUtil.getProjectCndFiles(CndProjectFilesUtil.java:413)
at fr.tolc.jahia.intellij.plugin.cnd.toolWindow.JahiaToolWindowCondition$1.compute(JahiaToolWindowCondition.java:16)
at fr.tolc.jahia.intellij.plugin.cnd.toolWindow.JahiaToolWindowCondition$1.compute(JahiaToolWindowCondition.java:13)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:920)
at fr.tolc.jahia.intellij.plugin.cnd.toolWindow.JahiaToolWindowCondition.value(JahiaToolWindowCondition.java:13)
at fr.tolc.jahia.intellij.plugin.cnd.toolWindow.JahiaToolWindowCondition.value(JahiaToolWindowCondition.java:9)
at com.intellij.toolWindow.ToolWindowSetInitializerKt$computeToolWindowBeans$1.accept(ToolWindowSetInitializer.kt:277)
at com.intellij.toolWindow.ToolWindowSetInitializerKt$computeToolWindowBeans$1.accept(ToolWindowSetInitializer.kt)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processWithPluginDescriptor(ExtensionPointImpl.java:301)
at com.intellij.toolWindow.ToolWindowSetInitializerKt.computeToolWindowBeans(ToolWindowSetInitializer.kt:274)
at com.intellij.toolWindow.ToolWindowSetInitializer$1.get(ToolWindowSetInitializer.kt:101)
at com.intellij.toolWindow.ToolWindowSetInitializer$1.get(ToolWindowSetInitializer.kt:83)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Hi,
It would be great, if you can handle this kind of syntax in "richtext" bracket.
I get an syntax error with : - test (string, richtext[ckeditor.customConfig='$context/modules/test-jahia7-template/javascript/test/ckeditor/ckconfig_basic.js']) mandatory
thank guy ! keep it up ! 👍
Perhaps we can add these Jahia CND definitions to make the checker more robust?
Intellij won't recognize the following for me:
Mixins:
NodeType:
Intellij IDEA marks XML attributes containing a colon :
as error "Cannot resolve symbol":
The inspection symbol 🚨 says "Unresolved reference"
Restart, Update, Rebuild, Invalidate Caches, nothing helps
IntelliJ IDEA 2024.1.1 (Ultimate Edition)
Build #IU-241.15989.150, built on April 29, 2024
Licensed to XXX GmbH / Anton YYY (Company is hidden for privacy)
Subscription is active until October 31, 2024.
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-107-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 10000M
Cores: 12
Registry:
analyze.exceptions.on.the.fly=true
Non-Bundled Plugins:
org.intellij.plugins.hcl (241.15989.49)
org.jetbrains.plugins.go-template (241.14494.150)
GrepConsole (13.0.2-IJ2023.3)
MavenRunHelper (4.28.0-IJ2022.2)
com.atlassian.bitbucket.references (2023.1.282)
fr.tolc.jahia.intellij.plugin (2.2.0)
org.sonarlint.idea (10.5.0.78339)
zielu.gittoolbox (500.2.7+233)
Kotlin: 241.15989.150-IJ
Current Desktop: ubuntu:GNOME
[lol:myNode]
+ subNode (lol:myOtherNode)
should generate <jcr:node path="subNode"/>
in JSP
When using autocomplete feature, there is no "mandatory" propostition but a "madatory" one. Jahia doesn't like this propostion.
Also have a line marker maybe.
Same for 'protected' properties
Hello Thomas,
Thanks for the previous hot fix.
I have a new Bug on this version 2.0.6:
java.lang.StackOverflowError
at java.base/java.util.DualPivotQuicksort.sort(DualPivotQuicksort.java:412)
at java.base/java.util.DualPivotQuicksort.sort(DualPivotQuicksort.java:106)
at java.base/java.util.Arrays.sort(Arrays.java:172)
at com.intellij.util.indexing.containers.ChangeBufferingList.removingDupesAndSort(ChangeBufferingList.java:162)
at com.intellij.util.indexing.containers.ChangeBufferingList.intIterator(ChangeBufferingList.java:249)
at com.intellij.util.indexing.impl.ValueContainerImpl.getIntIteratorOutOfFileSetObject(ValueContainerImpl.java:303)
at com.intellij.util.indexing.impl.ValueContainerImpl.access$200(ValueContainerImpl.java:25)
at com.intellij.util.indexing.impl.ValueContainerImpl$1.getInputIdsIterator(ValueContainerImpl.java:169)
at com.intellij.util.indexing.FileBasedIndexEx.lambda$processValuesInScope$9(FileBasedIndexEx.java:321)
at com.intellij.util.indexing.FileBasedIndexEx.lambda$processValueIterator$10(FileBasedIndexEx.java:350)
at com.intellij.util.indexing.FileBasedIndexEx.lambda$processExceptions$5(FileBasedIndexEx.java:248)
at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:234)
at com.intellij.util.indexing.FileBasedIndexEx.lambda$processExceptions$6(FileBasedIndexEx.java:248)
at com.intellij.util.indexing.diagnostic.IndexAccessValidator.validate(IndexAccessValidator.java:42)
at com.intellij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:248)
at com.intellij.util.indexing.FileBasedIndexEx.processValueIterator(FileBasedIndexEx.java:349)
at com.intellij.util.indexing.FileBasedIndexEx.processValuesInScope(FileBasedIndexEx.java:318)
at com.intellij.util.indexing.FileBasedIndexEx.getContainingFiles(FileBasedIndexEx.java:200)
at com.intellij.psi.search.FileTypeIndex.getFiles(FileTypeIndex.java:42)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndProjectFilesUtil.getProjectCndFiles(CndProjectFilesUtil.java:413)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndUtil.findNodeTypes(CndUtil.java:91)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndUtil.findNodeType(CndUtil.java:115)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getParentsNodeTypes(CndPsiImplUtil.java:236)
at fr.tolc.jahia.intellij.plugin.cnd.psi.impl.CndNodeTypeImpl.getParentsNodeTypes(CndNodeTypeImpl.java:140)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getAncestorsNodeTypes(CndPsiImplUtil.java:248)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getAncestorsNodeTypes(CndPsiImplUtil.java:250)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getAncestorsNodeTypes(CndPsiImplUtil.java:250)
at fr.tolc.jahia.intellij.plugin.cnd.psi.impl.CndNodeTypeImpl.getAncestorsNodeTypes(CndNodeTypeImpl.java:146)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:171)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:176)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:176)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:176)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:176)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
... (same line )
-> occurs 4 times
And this one a few minutes before:
java.lang.StackOverflowError
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:603)
at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:678)
at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:722)
at com.intellij.concurrency.JobLauncherImpl.processQueue(JobLauncherImpl.java:357)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.processInOrder(LocalInspectionsPass.java:414)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.visitPriorityElementsAndInit(LocalInspectionsPass.java:357)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.inspect(LocalInspectionsPass.java:227)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:127)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:414)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:407)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:406)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:382)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:181)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:380)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:184)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.StackOverflowError
at java.base/java.util.DualPivotQuicksort.sort(DualPivotQuicksort.java:412)
at java.base/java.util.DualPivotQuicksort.sort(DualPivotQuicksort.java:106)
at java.base/java.util.Arrays.sort(Arrays.java:172)
at com.intellij.util.indexing.containers.ChangeBufferingList.removingDupesAndSort(ChangeBufferingList.java:162)
at com.intellij.util.indexing.containers.ChangeBufferingList.intIterator(ChangeBufferingList.java:249)
at com.intellij.util.indexing.impl.ValueContainerImpl.getIntIteratorOutOfFileSetObject(ValueContainerImpl.java:303)
at com.intellij.util.indexing.impl.ValueContainerImpl.access$200(ValueContainerImpl.java:25)
at com.intellij.util.indexing.impl.ValueContainerImpl$1.getInputIdsIterator(ValueContainerImpl.java:169)
at com.intellij.util.indexing.FileBasedIndexEx.lambda$processValuesInScope$9(FileBasedIndexEx.java:321)
at com.intellij.util.indexing.FileBasedIndexEx.lambda$processValueIterator$10(FileBasedIndexEx.java:350)
at com.intellij.util.indexing.FileBasedIndexEx.lambda$processExceptions$5(FileBasedIndexEx.java:248)
at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:234)
at com.intellij.util.indexing.FileBasedIndexEx.lambda$processExceptions$6(FileBasedIndexEx.java:248)
at com.intellij.util.indexing.diagnostic.IndexAccessValidator.validate(IndexAccessValidator.java:42)
at com.intellij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:248)
at com.intellij.util.indexing.FileBasedIndexEx.processValueIterator(FileBasedIndexEx.java:349)
at com.intellij.util.indexing.FileBasedIndexEx.processValuesInScope(FileBasedIndexEx.java:318)
at com.intellij.util.indexing.FileBasedIndexEx.getContainingFiles(FileBasedIndexEx.java:200)
at com.intellij.psi.search.FileTypeIndex.getFiles(FileTypeIndex.java:42)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndProjectFilesUtil.getProjectCndFiles(CndProjectFilesUtil.java:413)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndUtil.findNodeTypes(CndUtil.java:91)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndUtil.findNodeType(CndUtil.java:115)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getParentsNodeTypes(CndPsiImplUtil.java:236)
at fr.tolc.jahia.intellij.plugin.cnd.psi.impl.CndNodeTypeImpl.getParentsNodeTypes(CndNodeTypeImpl.java:140)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getAncestorsNodeTypes(CndPsiImplUtil.java:248)
at fr.tolc.jahia.intellij.plugin.cnd.psi.impl.CndNodeTypeImpl.getAncestorsNodeTypes(CndNodeTypeImpl.java:146)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndUtil.findExtensionNodeTypes(CndUtil.java:194)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getExtensions(CndPsiImplUtil.java:257)
at fr.tolc.jahia.intellij.plugin.cnd.psi.impl.CndNodeTypeImpl.getExtensions(CndNodeTypeImpl.java:152)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:175)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:176)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:176)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:172)
at fr.tolc.jahia.intellij.plugin.cnd.psi.CndPsiImplUtil.getProperties(CndPsiImplUtil.java:176)
... (same line )
Regards
Cédric
Hello,
I have a problem with the plugin when it parses my definitions.cnd with a property multiple which have 2 default values :
[mynt:socialsharing] > jnt:content, jmix:socialComponent
So, the other components and their views are not visible.
Best regards,
Thomas
In IntelliJ IDEA 2022.3 (Ultimate Edition) Build #IU-223.7571.182 when definition.cnd is open, intellij is freezing and has trouble to update the ui with jahia pluggin v2.1.1
Content is not updated when scrolling and clicking on the edit window make some part of the file updated.
Passing the first 100 lignes restore the behavior.
My definition.cnd has currently more then 700 ligne of definition.
Disable the pluggin restore intellij behavior to normal.
I get this message in my Event Log :
13:42:33 NullPointerException: null
Multiple times.
Detailed StackTrace :
null
java.lang.NullPointerException
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndProjectFilesUtil.getJahiaWorkFolderPath(CndProjectFilesUtil.java:42)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndProjectFilesUtil.getNodeTypeFolderPath(CndProjectFilesUtil.java:65)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndProjectFilesUtil.getNodeTypeViewTypeFolderPath(CndProjectFilesUtil.java:77)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndProjectFilesUtil.findViewFiles(CndProjectFilesUtil.java:139)
at fr.tolc.jahia.intellij.plugin.cnd.utils.CndProjectFilesUtil.findViewFiles(CndProjectFilesUtil.java:166)
at fr.tolc.jahia.intellij.plugin.cnd.treeStructure.view.ViewMergerTreeStructureProvider$1.compute(ViewMergerTreeStructureProvider.java:64)
at fr.tolc.jahia.intellij.plugin.cnd.treeStructure.view.ViewMergerTreeStructureProvider$1.compute(ViewMergerTreeStructureProvider.java:45)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:890)
at fr.tolc.jahia.intellij.plugin.cnd.treeStructure.view.ViewMergerTreeStructureProvider.modify(ViewMergerTreeStructureProvider.java:45)
at com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:53)
at com.intellij.ide.util.treeView.AbstractTreeUi$32.perform(AbstractTreeUi.java:1624)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1830)
at com.intellij.ide.util.treeView.AbstractTreeUi.getChildrenFor(AbstractTreeUi.java:1621)
at com.intellij.ide.util.treeView.AbstractTreeUi.access$4700(AbstractTreeUi.java:62)
at com.intellij.ide.util.treeView.AbstractTreeUi$31.perform(AbstractTreeUi.java:1546)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1830)
at com.intellij.ide.util.treeView.AbstractTreeUi.processUnbuilt(AbstractTreeUi.java:1533)
at com.intellij.ide.util.treeView.AbstractTreeUi.doUpdateChildren(AbstractTreeUi.java:1259)
at com.intellij.ide.util.treeView.AbstractTreeUi.access$3100(AbstractTreeUi.java:62)
at com.intellij.ide.util.treeView.AbstractTreeUi$26$1.perform(AbstractTreeUi.java:1182)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.ide.util.treeView.AbstractTreeUi.execute(AbstractTreeUi.java:1830)
at com.intellij.ide.util.treeView.AbstractTreeUi.access$2500(AbstractTreeUi.java:62)
at com.intellij.ide.util.treeView.AbstractTreeUi$26.perform(AbstractTreeUi.java:1179)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:101)
at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:108)
at com.intellij.ide.util.treeView.AbstractTreeUi.updateNodeChildren(AbstractTreeUi.java:1174)
at com.intellij.ide.util.treeView.AbstractTreeUi.updateSubtreeNow(AbstractTreeUi.java:1080)
at com.intellij.ide.util.treeView.AbstractTreeUpdater$3.perform(AbstractTreeUpdater.java:258)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:101)
at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:108)
at com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:254)
at com.intellij.ide.util.treeView.AbstractTreeUi$13.perform(AbstractTreeUi.java:510)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:101)
at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:108)
at com.intellij.ide.util.treeView.AbstractTreeUi.doExpandNodeChildren(AbstractTreeUi.java:506)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.expandNodeChildren(AbstractTreeBuilder.java:355)
at com.intellij.ide.projectView.BaseProjectTreeBuilder.expandNodeChildren(BaseProjectTreeBuilder.java:118)
at com.intellij.ide.util.treeView.AbstractTreeUi$MyExpansionListener.treeExpanded(AbstractTreeUi.java:4817)
at javax.swing.JTree.fireTreeExpanded(JTree.java:2774)
at javax.swing.JTree.setExpandedState(JTree.java:3625)
at javax.swing.JTree.expandPath(JTree.java:2211)
at com.intellij.ide.util.treeView.AbstractTreeUi$51.perform(AbstractTreeUi.java:2911)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.ide.util.treeView.UpdaterTreeState.process(UpdaterTreeState.java:123)
at com.intellij.ide.util.treeView.AbstractTreeUi.processInnerChange(AbstractTreeUi.java:3294)
at com.intellij.ide.util.treeView.AbstractTreeUi.processSmartExpand(AbstractTreeUi.java:2908)
at com.intellij.ide.util.treeView.AbstractTreeUi.access$6500(AbstractTreeUi.java:62)
at com.intellij.ide.util.treeView.AbstractTreeUi$50.onReady(AbstractTreeUi.java:2900)
at com.intellij.ide.util.treeView.AbstractTreeUi.processActions(AbstractTreeUi.java:2874)
at com.intellij.ide.util.treeView.AbstractTreeUi.processNodeActionsIfReady(AbstractTreeUi.java:2841)
at com.intellij.ide.util.treeView.AbstractTreeUi.flushPendingNodeActions(AbstractTreeUi.java:2171)
at com.intellij.ide.util.treeView.AbstractTreeUi.maybeYeildingFinished(AbstractTreeUi.java:2107)
at com.intellij.ide.util.treeView.AbstractTreeUi.executeYieldingRequest(AbstractTreeUi.java:2095)
at com.intellij.ide.util.treeView.AbstractTreeUi.access$5900(AbstractTreeUi.java:62)
at com.intellij.ide.util.treeView.AbstractTreeUi$38$1.perform(AbstractTreeUi.java:1983)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.runOnYeildingDone(AbstractTreeBuilder.java:433)
at com.intellij.ide.util.treeView.AbstractTreeUi.runOnYieldingDone(AbstractTreeUi.java:2186)
at com.intellij.ide.util.treeView.AbstractTreeUi$38.perform(AbstractTreeUi.java:1978)
at com.intellij.ide.util.treeView.TreeRunnable.run(TreeRunnable.java:33)
at com.intellij.ide.util.treeView.AbstractTreeBuilder$1.process(AbstractTreeBuilder.java:53)
at com.intellij.ide.util.treeView.AbstractTreeBuilder$1.process(AbstractTreeBuilder.java:50)
at com.intellij.util.containers.TransferToEDTQueue.processNext(TransferToEDTQueue.java:98)
at com.intellij.util.containers.TransferToEDTQueue.access$300(TransferToEDTQueue.java:36)
at com.intellij.util.containers.TransferToEDTQueue$1.run(TransferToEDTQueue.java:57)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Hello,
the CND parser seems a little overzealous and tries to parse anything that could remotely resemble an nodetype name.
E.g.:
<camel:camelContext id="camelContext" depends-on="jahiaProperties"> <jmxAgent id="customAgent" disabled="true"/> <route> <from uri="direct:mailUsers"/> [...]
The "direct:mailUsers" will be interpreted as an non existing node type and thus marked as an error. Maybe it would help to deactivate the parsing for XML files or turn it into an inspection, so the user would be able to suppress it.
PS: I really like your plugin! Great work.
Best regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.