Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Peter Gromov
Total activity
2258
Last activity
May 09, 2023 12:44
Member since
July 25, 2008 18:59
Following
0 users
Followed by
1 user
Votes
0
Subscriptions
739
Activity overview
Articles (0)
Posts (3)
Comments (1516)
Sort by recent activity
Recent activity
Votes
Created
April 09, 2016 11:00
You could try wrapping apply() invocations in one pom transaction, see XmlTagImpl#collapseIfEmpty for an example. You'll probably need TreeAspect instead of XmlAspect.
Community
IntelliJ IDEA Open API and Plugin Development
Bulk PSI modification
0 votes
Created
April 09, 2016 12:24
Pity. Unfortunately pom has no documentation except its source code :( Could you please put a breakpoint into BlockSupportImpl.reparseRange and paste the full stack trace here? YourKit seems to ski...
Community
IntelliJ IDEA Open API and Plugin Development
Bulk PSI modification
0 votes
Created
May 11, 2016 05:08
Official comment
It depends. If you need modal progress, use com.intellij.openapi.progress.ProgressManager#runProcessWithProgressSynchronously. If your thread requires read action and might takes a noticeable time,...
Community
IntelliJ IDEA Open API and Plugin Development
Compute data outside EDT
0 votes
Created
May 13, 2016 08:49
Reparse produces all kinds of PSI events, not all of them intuitive. I wouldn't rely on them. Which code do you want to put into the PSI listener, what do you want to achieve with it?
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener - ChildRemoved is not working properly
0 votes
Created
May 13, 2016 10:27
First, keeping a large list of PSI elements (from different files) is likely to consume a lot of memory. Second, PSI exists only inside a read/write action. The fact that the PsiElement objects sur...
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener - ChildRemoved is not working properly
0 votes
Created
May 13, 2016 11:58
I don't understand why using smart pointers don't work, have you tried them? I don't understand what you mean by user changes. If it's text editing, then it's exactly reparse that changes the PSI.
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener - ChildRemoved is not working properly
0 votes
Created
May 17, 2016 18:03
This stack trace is about setting an attribute and can't be caused by your code above. The cause is unclear: addInternal returned null for some reason in CompositePsiElement.addInnerBefore. Debuggi...
Community
IntelliJ IDEA Open API and Plugin Development
Insertion of XML tag into xml file
0 votes
Created
March 07, 2016 18:24
FileContentUtil#reparseOpenedFiles does mean "opened in editor", the implementation says so. And you need to reparse all files affected by language substitutor changes, regardless of whether they'r...
Community
IntelliJ IDEA Open API and Plugin Development
Python-like selectable templating laguages
0 votes
Created
March 16, 2016 08:03
Official comment
Most likely it's because Django has an instance of TemplateLanguageErrorFilter which suppresses the errors. Or it can add something invisible to keep parser happy; investigating its PSI tree can help.
Community
IntelliJ IDEA Open API and Plugin Development
JS errors in templating language
0 votes
Created
February 02, 2016 09:51
Official comment
Python uses LanguageSubstitutor extension for that. Please be aware that this would make your filetype, language, parser and thus indexing results be dependent on some complicated logic of yours, t...
Community
IntelliJ IDEA Open API and Plugin Development
Python-like selectable templating laguages
0 votes
«
First
‹
Previous
Next
›
Last
»