Page 1 of 1

permissions problem? don't think so...

PostPosted: May 27th, '14, 21:09
by jiml8
Here's an odd one, and I don't know if it has anything to do with Mageia or with KDE, or not.

I have a FreeBSD virtual machine that I load either in VMware Workstation or in Virtualbox (I have tried both). Then, I use sshfs to mount a directory from this VM on my host, so I can get at it with my host's tools (mainly editors).

When I use either kate or kwrite, I am unable to save my changes to the VM's directory; I get this message:
The document could not be saved, as it was not possible to write to /mnt/sde1/home/jiml/voipmonitor/voipmonitor.cpp.

Check that you have write access to this file or that enough disk space is available.

Yes, I do have write permission, and yes there is plenty of disk space.

If I use emacs, I can write changes without difficulty.

Now, I certainly can use emacs (and I have been doing so), but I like kate a lot better. Anyone have a clue what is happening?

Re: permissions problem? don't think so...

PostPosted: May 27th, '14, 21:43
by doktor5000
Can you check in kate/kwrite in options if support to recognise changes in remote files is enabled?
And if automatic saving of backup file ending with ~ is enabled?

You could also run kdebugdialog, and enable the debug areas for kate, then run kate from a terminal, and have a look in .xsession-errors afterwards.

Otherwise if you can reproduce it, report it to our bugzilla, if you can report it with another distro, report it to bugs.kde.org.

Re: permissions problem? don't think so...

PostPosted: May 28th, '14, 01:31
by jiml8
Backup on save is disabled. I can't find any options that appear associated with recognizing changes in files.

Running kdebugdialog and enabling kate debugs resulted in no entries in .xsession-errors. However, the following did appear on the console:

Code: Select all
kate(6151)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::ListJob(0x1ab0ed0) KIO::Slave(0x1d93a30)
kate(6151)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("file:///home/jiml")
kate(6151)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::ListJob(0x1a83600) KIO::Slave(0x1dce220)
kate(6151)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("trash:/")
kate(6151)/kparts KParts::ReadWritePart::setModified: setModified( true )
kate(6151)/kate-filetree KateFileTreeModel::documentModifiedChanged: BEGIN!
kate(6151)/kate-filetree KateFileTreeModel::documentModifiedChanged: modified!
kate(6151)/kate-filetree KateFileTreeModel::setupIcon: BEGIN!
kate(6151)/kate-filetree KateFileTreeModel::setupIcon: END!
kate(6151)/kate-filetree KateFileTreeModel::documentModifiedChanged: END!
kate(6151)/Kate (Document) KateBuffer::canEncode: ENC NAME:  "ISO-8859-1"
kate(6151)/Kate (Document) KateModeManager::fileType:
kate(6151)/Kate (Document) Kate::TextBuffer::save: Saved file  "/mnt/sde1/home/jiml/voipmonitor/voipmonitor.cpp" with codec "ISO-8859-1" with errors
kate(6151)/kdeui (KNotification) KNotificationManager::close: 71
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0xd6000dd
kate(6151)/Kate (Plugins) kate::CloseExceptPlugin::writeSessionConfig: WRITE SESSION CONFIG: sc= true
kate(6151)/kio (KDirListerCache) KDirListerCache::stopListingUrl: KDirLister(0x1aa6b50)  url= KUrl("trash:/")
kate(6151)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0x1aa6b50) item moved into cache: KUrl("trash:/")
kate(6151)/kio (KDirListerCache) KDirListerCache::stopListingUrl: KDirLister(0x1b621a0)  url= KUrl("file:///home/jiml")
kate(6151)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0x1b621a0) item moved into cache: KUrl("file:///home/jiml")
kate(6151)/Kate (App) KateContainer::deleteViewBarForView: main window is not a katemainwindow
kate(6151)/Kate (App) KateContainer::deleteViewBarForView: main window is not a katemainwindow
kate(6151) KteCollaborativePlugin::removeView: removing view KateView(0x1ab2d10)
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0xd6000e7
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0xd600012
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0xd600012
kate(6151)/kate-filetree KateFileTreePluginSettings::save: save config!
kate(6151) KteCollaborativePlugin::removeDocument: remove document: "/mnt/sde1/home/jiml/voipmonitor/voipmonitor.cpp"
kate(6151) KteCollaborativePlugin::removeDocument: tried to remove document KateDocument(0x196c420) which is not being managed
kate(6151) KteCollaborativePlugin::removeDocument: remove document: "/mnt/sde1/home/jiml/voipmonitor/voipmonitor.cpp"
kate(6151) KteCollaborativePlugin::removeDocument: tried to remove document KateDocument(0x196c420) which is not being managed
kate(6151)/kio (Slave) KIO::Slave::kill: killing slave pid 6164 ( "trash://" )
kate(6151)/kio (Slave) KIO::Slave::kill: killing slave pid 6165 ( "file://" )


The sequence of events was that I loaded the file, made a trivial change, and tried to save it. At the save is where this segment begins. After the save failed, I closed kate, and selected to cancel when I got the prompt about unsaved changes.

Does not look useful to me. Might have something to do with the KateFileTreePlugin; I seriously doubt that a directory mounted with sshfs will make it into a KDE file tree in the "usual" fashion, and if kate/kwrite depends critically on that plugin, this could be why it doesn't (and, presumably, won't) work. But I'm just guessing.