MyEclipse not responding after installing CodeMix

This topic contains 8 replies, has 2 voices, and was last updated by  Mike_mikekonikoff 2 months, 2 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #586351 Reply

    Mike_mikekonikoff
    Participant

    Editing files (java, jsp, js, xml) that I have had no problem editing before using default MyEclipse editors. Now when I type anything – code, space, or a comment – I get a spinning blue progress wheel and MyEclipse is Not Responding for a long time (dozens of seconds or longer). This only started happening after installing CodeMix. I have 64-bit MyEclipse 2017 CI latest and latest CodeMix, on Windows 7 pro 64-bit, java 8, 32 GB RAM and 2 quad-core i7 CPU @ 2.7 GHz. MyEclipse and computer have been restarted.

    Maybe it is https://www.genuitec.com/issue-tracker/33081/, but I can’t see any details there so it’s hard to say. Whatever it is, it is making this IDE unusable.

    #586352 Reply

    timwebb
    Keymaster

    Ouch! First off, I’m not aware of a specific issue like this lingering in the product but definitely want to get to the bottom of it!

    To disable CodeMix temporarily, you can go to the Preferences > CodeMix area and check [ ] Temporarily disable CodeMix functionality.

    That said, I’d really like to be able to get to the bottom of this. Two questions – bottom left, do you see CodeMix with a blue checkmark in your status bar? If it shows connected, if it freezes long enough to run a command, getting a jstack dump at the same time as it is frozen would be invaluable.

    https://helpx.adobe.com/in/experience-manager/kb/TakeThreadDump.html
    has some pointers on how to use jstack. In short, it is jstack -p <pid> with the PID of the MyEclipse process.

    Thanks and sorry you are hitting this!

    #599793 Reply

    Mike_mikekonikoff
    Participant

    This issue went away for a while, thankfully. I could not debug it, and I assumed it was something fixed in a later update. Now I’ve updated to CodeMix 2 and … after an hour I’m still waiting for CodeMix Validation task to complete, while editors are either very slow or unresponsive. Project has thousands of files, a huge legacy project with mixture of html, js, java, jsp, xml, etc … Can this be fixed apart from turning off validation? Like run validation separately and at a lower priority than UI responsiveness.

    #599794 Reply

    timwebb
    Keymaster

    Can you grab a quick screenshot of the validators that are running in the Progress view? CodeMix’s validators by default do not do (or should not do) any validation until you opt-in to run them in CodeMix 2. A screenshot will help confirm what validator(s) are impacting your workspace.

    #599805 Reply

    Mike_mikekonikoff
    Participant

    It finally finished and things are back to normal after a couple hours of validation. I do have CodeMix Project Validation enabled…do you want screen captures of all those settings? The progress view just said CodeMix Validation, and then something like 1,975 of 3,995 files… The problems view is showing 56,643 errors, most of which are in old JSP code that we are in process of refactoring / purging. I will try turning off JSP validation and see if that helps.

    Bottom line for me is: validation is great, but shouldn’t come at expense of rest of IDE. Editors, search, team synchronization, just about everything I use regularly was painfully slow while validation was running. It’s back to normal now, which is great <whew!>, but I’d like to avoid this when I open up other projects that are currently closed (and are branches of the project I’m working on).

    #599806 Reply

    timwebb
    Keymaster

    Absolutely agree that validation shouldn’t be so exhausting (by any measure). I don’t believe CodeMix Validation should have been running on JSP code, though you can configure in CodeMix > Languages area what is validated of course. The other thing that may prove useful is if you have a bunch of static old libraries, you can configure exclude rules for directories that should never be validated. My guess would be that it was validating a bunch of old JavaScript, though we do have default patterns to skip validation of minified and other traditional formats for JavaScript.

    Most interesting would be a quick check if HTML+JS might have equaled the 3,995 files you saw validating? If the only file pattern is JSP, then screenshots of the different pages under Validation would be helpful, including the disabled validators area and the Languages section that controls file extensions around JSP (it should be unchecked by default).

    Thanks for all the details.

    #599809 Reply

    Mike_mikekonikoff
    Participant

    Off topic kinda, but there are tons of js validation errors like:

    Cannot find name ‘jQuery’

    Cannot find name ‘ko’

    Is there a way I can tell the validator, “there’s a thing in my project called jQuery (you might know it as $), and there’s another thing called ko (also known as knockout).”

    #599810 Reply

    timwebb
    Keymaster

    The easiest may be to just turn off stricter JavaScript validation by changing the javascript.implicitProjectConfig.checkJs which gives validation more like you would expect with TypeScript.

    I’ll ask the gurus about your Q though regarding mapping names like that during validation.

    #599811 Reply

    Mike_mikekonikoff
    Participant

    I looked through the validation config and I believe it’s all the defaults with *.jsp excluded, as you said. Exception I think is Velocity from the eclipse marketplace vscode extension.

    With all that I get in the neighborhood of 3,995:

    1979 *.js*
    450 *.htm*
    346 *.xml
    289 *.css
    14 *.less
    1246 *.vm
    9 *.xsl
    4 *.sql
    3 *.sh

    I also put the javascript.implicitProjectConfig.checkJs = false and those jQuery and ko errors are gone. Thanks for that! BTW I saw this mentioned in the sticky post Troubleshooting CodeMix 2 (READ FIRST) but it has a typo there javascript.implementProjectConfig.checkJs so I was confused.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: MyEclipse not responding after installing CodeMix