Bug 234644

Summary: php support doesn't work for files loaded with fish!
Product: [Applications] kdevelop Reporter: sts
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: normal CC: cullmann, niko.sams
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: php file

Description sts 2010-04-17 21:26:18 UTC
Version:           3.10.0 (using KDevPlatform 0.10.0) (using 4.4.2 (KDE 4.4.2) "release 241", KDE:KDE4:Factory:Desktop / openSUSE_11.2)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.31.12-0.2-desktop

I work the most of time with remote files.. but php support doesn't work here only with local files it works.

My workaround: I have open some remote files and now I open a local file and then I refresh the remote files and now it works also for remote files.
Comment 1 Niko Sams 2010-04-18 16:53:07 UTC
Please provide more information for your issue:
- steps to reproduce
- if useful simplified testcase
- actual behavior
- expected behavior

Oh, and I worked two days ago on php files using fish - and didn't see any issues. (I had a project opened and navigated to the fish location using File System tool view)
Comment 2 sts 2010-04-18 17:10:09 UTC
Start kdevelop, no files are open. File -> Open File -> Select network ressource and open php file (fish protocol). I can see the "php features" doesn't work. If I reload the file with F5 it works now.
Comment 3 Niko Sams 2010-04-18 17:47:37 UTC
Sorry, but what "php features" are you talking about?

You probably can get more information if you enable debug output for php using kdebugdialog and look for konsole output when you open the remote file.
Comment 4 sts 2010-04-19 00:24:41 UTC
I mean inline validation, .. all features of the php plugin.

maybe it helps:

kdevelop(6712)/Kate KateCodeFoldingTree::addNodeToRemoveList: marking for deletion: 0x3480ad0
kdevelop(6712)/Kate (Document) KateBuffer::doHighlight: HIGHLIGHTED END --- NEED HL, LINESTART:  0  LINEEND:  64
kdevelop(6712)/Kate (Document) KateBuffer::doHighlight: HL UNTIL LINE:  0  MAX:  0
kdevelop(6712)/Kate (Document) KateBuffer::doHighlight: HL DYN COUNT:  0  MAX:  512
kdevelop(6712)/Kate (Document) KateView::updateView: KateView::updateView
kdevelop(6712)/Kate (Document) KateView::updateView: KateView::updateView
kdevelop(6712)/Kate (Code Completion) KateCompletionWidget::abortCompletion:
kdevelop(6712)/Kate (Document) KateView::updateView: KateView::updateView
kdevelop(6712)/Kate (Document) KateView::updateView: KateView::updateView
kdevelop(6712)/Kate (Code Completion) KateCompletionWidget::abortCompletion:
kdevelop(6712)/Kate (Document) KateView::updateView: KateView::updateView
kdevelop(6712)/kdevplatform (language) KDevelop::CodeHighlighting::highlightDUChain: highlighting du chain fish://sts@foo.com/htdocs/read.php
kdevelop(6712)/kdevplatform (language) KDevelop::DUChain::documentLoadedPrepare: highlighted KUrl("fish://sts@foo.com/htdocs/read.php") in foreground
kdevelop(6712)/Kate (Document) KateView::updateView: KateView::updateView
kdevelop(6712)/kio (KDirListerCache) KDirListerCache::slotFileRenamed: KUrl("file:///tmp/kde-sts/kdevelopGl6712.php.part") -> KUrl("file:///tmp/kde-sts/kdevelopGl6712.php")
kdevelop(6712)/kio (KDirListerCache) KDirListerCache::slotFileRenamed: Item not found: KUrl("file:///tmp/kde-sts/kdevelopGl6712.php.part")
kdevelop(6712)/khtml (tokenizer) khtml::HTMLTokenizer::notifyFinished: Finished loading an external script
Pattern: ^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$ was rewritten to: ^[^<]*(<[\w\W]*([\w\W])>)[^>]*$|^#([\w-]+)$
kdevelop(6712)/kimgio khtmlImLoad::QImageIOLoaderProvider::mimeTypes: QImageIO - Format supported:  "image/x-ico"
kdevelop(6712)/kimgio khtmlImLoad::QImageIOLoaderProvider::mimeTypes: QImageIO - Format supported:  "image/x-xpixmap"
kdevelop(6712)/kimgio khtmlImLoad::QImageIOLoaderProvider::mimeTypes: QImageIO - Format supported:  "image/x-exr"
kdevelop(6712)/kimgio khtmlImLoad::QImageIOLoaderProvider::mimeTypes: QImageIO - Format supported:  "image/x-portable-anymap"
kdevelop(6712)/kimgio khtmlImLoad::QImageIOLoaderProvider::mimeTypes: QImageIO - Format supported:  "image/bmp"
kdevelop(6712)/kimgio khtmlImLoad::QImageIOLoaderProvider::mimeTypes: QImageIO - Format supported:  "image/jpeg2000"
kdevelop(6712)/kimgio khtmlImLoad::QImageIOLoaderProvider::mimeTypes: QImageIO - Format supported:  "image/tiff"
kdevelop(6712)/kimgio khtmlImLoad::QImageIOLoaderProvider::mimeTypes: QImageIO - Format supported:  "image/x-xbitmap"
kdevelop(6712)/khtml (tokenizer) khtml::HTMLTokenizer::notifyFinished: Finished loading an external script
kdevelop(6712)/Kate (Document) KateView::slotLostFocus: KateView::slotLostFocus
kdevelop(6712)/Kate (Code Completion) KateCompletionWidget::abortCompletion:
Comment 5 sts 2010-04-19 09:24:32 UTC
Created attachment 42886 [details]
php file

The problem is this php file. With another simple file it works.
Comment 6 sts 2010-08-11 19:51:23 UTC
confirmed with 4.0.1
Comment 7 Milian Wolff 2010-09-28 13:05:23 UTC
probably fixed in kdev master, has to be backported to 4.1 branch.

the problem is the syn job->exec() call in documentcontroller::opendocumentinternal, as that is hazardous with a not-reentrant function. see also my mail on our devel ml.
Comment 8 Justin Zobel 2021-03-09 22:47:53 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.