PHPStorm inspection messed up

php file with html tags but html inspection has gone or placed by AngularJS, how to fix?

thanks! my current version is 2017.3, but it was occurred in previous version

0
8 comments

Hi there,

Looks odd.

1) Ensure that you have all plugins updated to their latest version -- I've seen few kind of similar reports (not the same, but still) that were caused by incompatible plugins.

2) Please run "File | Invalidate Caches..." and restart IDE

Any better? If not -- anything interesting in idea.log (Help | Show Log in XX)

0

Invalidate cashes does not work for my phpStorm,

my update was from tool box,  i've checked plugins ,  not sure which one is incompatible. 

down below is the recent log, hope it helps

2017-12-01 19:38:04,588 [ 5644] INFO - ellij.vfs.persistent.FSRecords - Marking VFS as corrupted: corruption marker found 
2017-12-01 19:38:04,589 [ 5645] INFO - ellij.vfs.persistent.FSRecords - Filesystem storage is corrupted or does not exist. [Re]Building. Reason: Corruption marker file found
2017-12-01 19:38:04,609 [ 5665] INFO - ellij.vfs.persistent.FSRecords - Marking VFS as corrupted: '/Users/alessi0413/Library/Caches/PhpStorm2017.3/caches/names.dat' does not exist
2017-12-01 19:38:04,611 [ 5667] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=647
2017-12-01 19:38:04,658 [ 5714] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /Users/alessi0413/Library/Application Support/JetBrains/Toolbox/apps/PhpStorm/ch-0/173.3727.138/PhpStorm.app/Contents/bin/fsnotifier
2017-12-01 19:38:04,674 [ 5730] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2017-12-01 19:38:04,927 [ 5983] INFO - pi.util.registry.RegistryState - Registry values changed by user:
2017-12-01 19:38:04,927 [ 5983] INFO - pi.util.registry.RegistryState - dumb.aware.run.configurations = true
2017-12-01 19:38:05,496 [ 6552] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2017-12-01 19:38:05,828 [ 6884] INFO - .history.utils.LocalHistoryLog - FS has been rebuild, rebuilding local history...
2017-12-01 19:38:06,139 [ 7195] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.OptionsTopHitProvider$Activity@1a943732
2017-12-01 19:38:06,320 [ 7376] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2017-12-01 19:38:06,486 [ 7542] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories:
2017-12-01 19:38:06,499 [ 7555] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2017-12-01 19:38:06,580 [ 7636] INFO - gs.impl.UpdateCheckerComponent - channel: release
2017-12-01 19:38:06,795 [ 7851] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:60
2017-12-01 19:38:06,805 [ 7861] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:9
2017-12-01 19:38:06,882 [ 7938] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:66
2017-12-01 19:38:06,882 [ 7938] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2017-12-01 19:38:07,325 [ 8381] INFO - plication.impl.ApplicationImpl - 80 application components initialized in 4619ms
2017-12-01 19:38:07,373 [ 8429] INFO - stubs.SerializationManagerImpl - Name storage is repaired
2017-12-01 19:38:07,650 [ 8706] INFO - .intellij.idea.IdeaApplication - App initialization took 9689 ms
2017-12-01 19:38:07,907 [ 8963] INFO - ndex.PrebuiltIndexProviderBase - Using prebuilt id-index from /Users/alessi0413/Library/Caches/PhpStorm2017.3/index/.persistent/prebuilt/PHP/id-index.input
2017-12-01 19:38:08,735 [ 9791] INFO - ij.psi.stubs.StubUpdatingIndex - Following new file types will be indexed:Sass,Ini,SQL,Twig,ActionScript,JSX Harmony,HTML,ECMAScript 6,XML,Flow,htaccess,SCSS,CSS,CoffeeScript,PHP,Less,Markdown,JavaScript,TypeScript JSX,Vue.js,Literate CoffeeScript,TypeScript
2017-12-01 19:38:08,844 [ 9900] INFO - ction.BrowserConnectionManager - Browser connected: version 2.0.9, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
2017-12-01 19:38:09,356 [ 10412] INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@504b591
2017-12-01 19:38:09,396 [ 10452] INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>]
2017-12-01 19:38:09,402 [ 10458] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [/Users/alessi0413/Downloads/02-易利佳/12-mobilephone/wedding]
2017-12-01 19:38:09,493 [ 10549] INFO - pl$FileIndexDataInitialization - Initialization done:2688
2017-12-01 19:38:09,899 [ 10955] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2017-12-01 19:38:10,037 [ 11093] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=null; restored: fontSize=13, fontScale=1.0
2017-12-01 19:38:10,037 [ 11093] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=null; restored: fontSize=12, fontScale=1.0
2017-12-01 19:38:10,122 [ 11178] INFO - exImpl$StubIndexInitialization - Initialization done:628
2017-12-01 19:38:10,484 [ 11540] INFO - ellij.project.impl.ProjectImpl - 111 project components initialized in 1982 ms
2017-12-01 19:38:10,749 [ 11805] INFO - ellij.project.impl.ProjectImpl - 21 project components initialized in 36 ms
2017-12-01 19:38:10,777 [ 11833] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@32b69ad1
2017-12-01 19:38:10,982 [ 12038] INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 496 ms
2017-12-01 19:38:11,425 [ 12481] INFO - .openapi.application.Preloader - Finished preloading com.intellij.codeInsight.completion.CompletionPreloader@4e4c8e2d
2017-12-01 19:38:11,507 [ 12563] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2017-12-01 19:38:11,662 [ 12718] WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2017-12-01 19:38:11,953 [ 13009] INFO - PerformancePlugin - Performance Plugin is in silent mode
2017-12-01 19:38:15,291 [ 16347] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 2710ms; general responsiveness: ok; EDT responsiveness: 1/2 sluggish, 1/2 very slow
2017-12-01 19:38:15,771 [ 16827] INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 3295ms under project opening modal progress
2017-12-01 19:38:15,929 [ 16985] INFO - tartup.impl.StartupManagerImpl - InitToolWindowsActivity run in 156ms under project opening modal progress
2017-12-01 19:38:16,010 [ 17066] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 3576ms; general responsiveness: ok; EDT responsiveness: 2/3 sluggish, 1/3 very slow
2017-12-01 19:38:17,434 [ 18490] INFO - j.ide.ui.OptionsTopHitProvider - 469 ms spent to cache options in application
2017-12-01 19:38:17,715 [ 18771] INFO - tartup.impl.StartupManagerImpl - /Users/alessi0413/Downloads/02-易利佳/12-mobilephone/wedding/.idea case-sensitivity: expected=false actual=false
2017-12-01 19:38:17,781 [ 18837] INFO - git4idea.GitVcs - Git version: 2.13.6.0 (UNIX)
2017-12-01 19:38:17,826 [ 18882] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 2533ms; general responsiveness: ok; EDT responsiveness: 3/3 sluggish
2017-12-01 19:38:17,831 [ 18887] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 3804 files to update
2017-12-01 19:38:17,933 [ 18989] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [/Users/alessi0413/Downloads/02-易利佳/12-mobilephone/wedding]
2017-12-01 19:38:18,151 [ 19207] ERROR - jediterm.terminal.TerminalMode - Mode EightBitInput is not implemented, setting to true
2017-12-01 19:38:19,144 [ 20200] INFO - ndex.PrebuiltIndexProviderBase - Using prebuilt sdk-stubs from /Users/alessi0413/Library/Caches/PhpStorm2017.3/index/.persistent/prebuilt/PHP/sdk-stubs.input
2017-12-01 19:38:19,303 [ 20359] INFO - tor.impl.FileEditorManagerImpl - Project opening took 10957 ms
2017-12-01 19:38:19,629 [ 20685] INFO - ndex.PrebuiltIndexProviderBase - Using prebuilt sdk-stubs from /Users/alessi0413/Library/Caches/PhpStorm2017.3/index/.persistent/prebuilt/JavaScript/sdk-stubs.input
2017-12-01 19:39:33,466 [ 94522] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 75636ms; general responsiveness: 2/75 sluggish; EDT responsiveness: 1/75 sluggish
2017-12-01 19:39:34,063 [ 95119] INFO - j.ide.ui.OptionsTopHitProvider - 268 ms spent to cache options in project
2017-12-01 19:39:34,924 [ 95980] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 2017/12/1 下午7:37)
2017-12-01 19:45:17,545 [ 438601] INFO - .script.IdeScriptEngineManager - javax.script.ScriptEngineManager initialized in 60 ms
2017-12-01 19:59:11,412 [1272468] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 2017/12/1 下午7:37)
2017-12-01 19:59:59,948 [1321004] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 2017/12/1 下午7:37)

 

thanks, anyway

0

That's only a part of the log -- it even does not show what plugins you have got there. It shows no useful info that may help here -- no exceptions or anything.

If anything -- you should always post full log (as downloadable link, e.g. Google Drive or alike).

BTW -- what error IDE reports. Mover over the error (e.g. the very first red marker on 1st line) and show more detailed message.

You can also run "Code | Inspect Code" to see all issues IDE finds for this file.

If anything #2: disable all custom plugins (not bundled by default) and see how it will behave now.

0

I had many errors after updating to 2017.3

 

Anytime I clicked ALT+F7 on a method, I would always says that it found not match. 

 

Doing the Invalidate Cache & restart fixed my issue

0

@Christiand 

That may depends on:

1) What was the previous version you have upgraded from: was it 2017.2.x or older .. or was it 2017.3 EAP builds.

2) Were all plugins updated straight away (before even project was loaded) or only after that.

In first case (2017.2 and straight plugin update) it should not affect at all .. as caches/indexes are stored in separate folders for each major version. In send case (EAP builds) it's not the case as it's already 2017.3. .. or older plugin did provide some incorrect data etc.

 

I always use full installer and invalidating caches when removing older/installing new build +plugin update on first launch -- never have such issues. Yes -- more traffic (as full installation package is much larger than a patch) + time waster for re-indexing / loosing Local History (as its linked to indexes sub-system) but it pays off just fine in my case -- no big inconveniences at all.

0

somehow, i have finally decided to compare the ./idea folder to other "working normally project"

then i have found an additional templatlanguages.xml, after delete this xml file , restart project , re-indexing

 

this project works correctly

 

any idea why this file exists?

0

@Andriy I had 2017.2. I did the update thru the toolbox. As my project loaded and I saw re-indexing, I clicked on the "Update Plugin" buton from the pop-up.

0

@Christiand 

So the plugin update has happened after that (even though new plugin version is downloaded, the actual load happens on IDE launch) .. so it was not technically updated till next launch... so initial indexing was done with old plugin.

 

@Alessi0413 

>any idea why this file exists?

Such file should hold settings for https://www.jetbrains.com/help/phpstorm/template-data-languages.html . If you are sure that you do not use that ... then deleting such file is fine.

So far it could be that you have another language injected for the whole file instead of default HTML and it did not worked properly for some reason. Without knowing the details I cannot say if it's a bug or what. if you are sure that you have not used it and after deleting that file it now works .. then I guess it's resolved for now.

In general (if it still does not work in this project) : just backup and delete whole .idea subfolder (while project is closed in IDE, of course) and then use "Open" or "Open Directory" and point to the that project root folder -- IDE will create brand new project with default settings from those files. You can then re-configure the project as needed.

0

Please sign in to leave a comment.