This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269075

Summary: Inline style section in .php file causes netbeans IDE 8.2 to block/freeze while processing sources
Product: php Reporter: philippwrann
Component: CodeAssignee: Tomas Mysik <tmysik>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description philippwrann 2016-11-22 14:12:18 UTC
In one .php file in one project of mine is the following code block:

<?php if ($offset->getData() <> 0): ?>
<style>
@media screen and (min-width: 1400px) {
  .frontend #<?= $id ?> ._tip {
    margin-top: <?= $this->numeric("offset") ?>px;
  }
}
</style>
<?php endif; ?>

When i open the ide it freezes during "Background scanning of projects" (100% cpu load and scanning can not be aborted)

If i delete that block it passes.

In general working on php projects is absolutely unstable. I now opened another project and the IDE is stuck again at "Background scanning".

Netbeans gets oftenly caught in a loop while building some index for code completition, code completition is supposed to be a feature but it actually makes the IDE unusable, please FINALLY fix those issues for good :)
Comment 1 Tomas Mysik 2016-11-23 07:18:17 UTC
Please, provide a thread dump or even better a profiler snapshot (start profiling, reproduce your problem, wait for about 30 seconds, stop profiling) - instructions can be found here [1].

Simply reopen this issue, thanks.
[1] http://wiki.netbeans.org/GenerateThreadDump#Profile_Me_Now