Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception #57

Closed
gingerbeardman opened this issue Apr 28, 2018 · 9 comments
Closed

Uncaught exception #57

gingerbeardman opened this issue Apr 28, 2018 · 9 comments
Assignees
Labels
Projects

Comments

@gingerbeardman
Copy link

using https://github.com/briansea/ulysses3-export

$ ./ulyssesToFiles.php 

Fatal error: Uncaught CFPropertyList\IOException: /Users/matt/Library/Mobile Documents/X5AZV975AG~com~soulmen~ulysses3/Documents/Library/Info.ulgroup in /Users/matt/Downloads/2018-04-28/ulysses3-export-master/vendor/rodneyrehm/plist/classes/CFPropertyList/IOException.php:68
Stack trace:
#0 /Users/matt/Downloads/2018-04-28/ulysses3-export-master/vendor/rodneyrehm/plist/classes/CFPropertyList/CFPropertyList.php(199): CFPropertyList\IOException::notReadable('/Users/matt/Lib...')
#1 /Users/matt/Downloads/2018-04-28/ulysses3-export-master/vendor/rodneyrehm/plist/classes/CFPropertyList/CFPropertyList.php(129): CFPropertyList\CFPropertyList->load()
#2 /Users/matt/Downloads/2018-04-28/ulysses3-export-master/ulyssesToFiles.php(26): CFPropertyList\CFPropertyList->__construct('/Users/matt/Lib...', 2)
#3 /Users/matt/Downloads/2018-04-28/ulysses3-export-master/ulyssesToFiles.php(20): CFPropertyList\parseFolder('/Users/matt/Lib...')
#4 {main}
  thrown in /Users/matt/Downloads/2018-04-28/ulysses3-export-master/vendor/rodneyrehm/plist/classes/CFPropertyList/IOException.php on line 68
@gingerbeardman
Copy link
Author

gingerbeardman commented Apr 28, 2018

See briansea/ulysses3-export#1

@ajsb85 ajsb85 added the bug label Apr 30, 2018
@ajsb85 ajsb85 added this to To do in Package via automation Apr 30, 2018
@ajsb85 ajsb85 added this to the 3.0 milestone Apr 30, 2018
@btry btry removed the bug label Apr 30, 2018
@btry
Copy link
Collaborator

btry commented Apr 30, 2018

Hi

By reading the code of CFPropertyList and the backtrace, I see the exception is raised in the call of a constructor. Then it seems appropriate that the library throws an exception.

I think that ulysse3-export should catch the exception and handle it. Can you check the permissions of the file being open ?

@ajsb85 ajsb85 added the invalid label Apr 30, 2018
@gingerbeardman
Copy link
Author

File permissions are readable, I'll look into it further

@gingerbeardman
Copy link
Author

I guess I'll have to give up, files are all readable so I have no idea why it's throwing CFPropertyList\IOException::notReadable

@btry
Copy link
Collaborator

btry commented Apr 30, 2018

The library throws the exception if the function is_readable returns false.

Please, read the documentation of this function http://php.net/manual/en/function.is-readable.php and carefully check all details of the documentation against your system. Maybe there is something wrong with tue UID and GID of the file. Check also all directories from the root of your filesystem to the file, one by one.

@gingerbeardman
Copy link
Author

Will do, thanks

Package automation moved this from To do to Done Apr 30, 2018
@gingerbeardman
Copy link
Author

gingerbeardman commented Apr 30, 2018

It seems that - for whatever reason - the script cannot access the iCloud Mobile Documents folder so I am progressing by making a copy of that folder and working on that.

ditto "/Users/matt/Library/Mobile Documents/X5AZV975AG~com~soulmen~ulysses3/Documents/Library/" copy/

@btry
Copy link
Collaborator

btry commented Apr 30, 2018

I guess you have to adjust the permissions on a directory, or the user running your project.

@btry btry removed this from the 3.0 milestone Apr 30, 2018
@gingerbeardman
Copy link
Author

gingerbeardman commented Apr 30, 2018

Permissions are:

755 /Users
755 /matt
700 /Library
755 /Mobile Documents
755 /X5AZV975AG~com~soulmen~ulysses3
755 /Documents
755 /Library

Changing Library to 755 made no difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Package
  
Done
Development

No branches or pull requests

4 participants