Comments (6)
Looks like the same problem happens with java.util.Collections
class.
from advancedexpressionfolding.
I had this same problem with java.util.Collections and grabbing a thread dump after it happens doesn't show any threads doing anything. So whatever caused the editor to not be rendered isn't due to any infinite loops or anything. I also tried adding an extra catch in buildFoldRegions
(the main entrypoint to the plugin as far as i can tell) to see if any other exceptions were being throw when this issue happened -- but nothing is being thrown. Just stepping through the debugger a few times doesn't show anything about the execution of buildFoldRegions
to be weird. I tried setting the IDEA log4j settings to DEBUG to see if anything popped out there -- but nothing. I'm not a plugin developer so I don't know the next thing to try to narrow down whats going on -- but its easy to reproduce -- just try to open java.util.Collections
. It just sits there and spins with no error logged out.
from advancedexpressionfolding.
If one class contains the expressions like null != A, the class in a project doesn't open in the Editor.
The Exception is below:
2017-01-16 16:36:43,370 [ 190090] ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA 2016.3.2 Build #IU-163.10154.41
2017-01-16 16:36:43,370 [ 190090] ERROR - aemon.impl.PassExecutorService - JDK: 1.8.0_102
2017-01-16 16:36:43,370 [ 190090] ERROR - aemon.impl.PassExecutorService - VM: Java HotSpot(TM) 64-Bit Server VM
2017-01-16 16:36:43,370 [ 190090] ERROR - aemon.impl.PassExecutorService - Vendor: Oracle Corporation
2017-01-16 16:36:43,370 [ 190090] ERROR - aemon.impl.PassExecutorService - OS: Windows 10
2017-01-16 16:36:43,371 [ 190091] ERROR - aemon.impl.PassExecutorService - Last Action: EditorBackSpace
2017-01-16 16:36:44,905 [ 191625] ERROR - aemon.impl.PassExecutorService - (1043,1043), text: null != A, language = Language: JAVA
java.lang.AssertionError: (1043,1043), text: null != A, language = Language: JAVA
at com.intellij.lang.folding.FoldingDescriptor.(FoldingDescriptor.java:106)
at com.intellij.lang.folding.FoldingDescriptor.(FoldingDescriptor.java:87)
at com.intellij.lang.folding.FoldingDescriptor.(FoldingDescriptor.java:72)
at com.intellij.advancedExpressionFolding.NotNullExpression$1.(NotNullExpression.java:38)
at com.intellij.advancedExpressionFolding.NotNullExpression.buildFoldRegions(NotNullExpression.java:37)
at com.intellij.advancedExpressionFolding.AdvancedExpressionFoldingBuilder.buildFoldRegions(AdvancedExpressionFoldingBuilder.java:162)
at com.intellij.advancedExpressionFolding.AdvancedExpressionFoldingBuilder.buildFoldRegions(AdvancedExpressionFoldingBuilder.java:178)
from advancedexpressionfolding.
I'll see if i cant replicate that and submit a PR for it
from advancedexpressionfolding.
I tested this on 0.4.1 and Collections opens up now so I would consider closing this
from advancedexpressionfolding.
@steveash I will close this issue for now. Feel free to re-open if you see it again.
from advancedexpressionfolding.
Related Issues (20)
- NullPointerException when calling isReferenceTo
- Memory leak of EditorImpl though AdvancedExpressionFoldingHighlightingComponent.highlighters map
- BUG: File does not load using Arrays.asList(-1)
- It seems broken on IDEA 2019.3 EAP built on October 9, 2019 HOT 6
- three dots instead of every folding HOT 2
- add keyboard shortcut to analyze open file
- Keep syntax highlighting for some folds ?
- Fold short control statements to one line
- Fold short javadoc comments into one line
- when i folded the exception code,it show wrong.
- IDEA 2020.1 support
- Suggestion: Possibility to automatically fold every comment HOT 1
- Incompatible with IntelliJ 2020.2 HOT 3
- Exception: Light files should have PSI only in one project HOT 1
- java.lang.NoClassDefFoundError: sun/misc/FloatingDecimal HOT 1
- What is the latest release ? HOT 3
- Incorrect folding of for loop
- Allow configuration
- Plugin fails to load on the current master builds (212.3987)
- The plugin can't be installed/updated in IDEA 2021.3 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advancedexpressionfolding.