Git Product home page Git Product logo

Comments (6)

detouched avatar detouched commented on June 28, 2024

Looks like the same problem happens with java.util.Collections class.

from advancedexpressionfolding.

steveash avatar steveash commented on June 28, 2024

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.

zhenxing-cheng avatar zhenxing-cheng commented on June 28, 2024

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.

steveash avatar steveash commented on June 28, 2024

I'll see if i cant replicate that and submit a PR for it

from advancedexpressionfolding.

steveash avatar steveash commented on June 28, 2024

I tested this on 0.4.1 and Collections opens up now so I would consider closing this

from advancedexpressionfolding.

cheptsov avatar cheptsov commented on June 28, 2024

@steveash I will close this issue for now. Feel free to re-open if you see it again.

from advancedexpressionfolding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.