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 - Inline style section in .php file causes netbeans IDE 8.2 to block/freeze while processing sources
Summary: Inline style section in .php file causes netbeans IDE 8.2 to block/freeze whi...
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-22 14:12 UTC by philippwrann
Modified: 2016-11-23 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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