danielmagnussons / orgmode

orgmode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system.
MIT License
754 stars 70 forks source link

Color Scheme not loading #6

Closed DevonVille closed 11 years ago

DevonVille commented 11 years ago

I'm using Sublime Text 2 under Ubuntu Linux, and it throws an error whenever I open an org file, supposely using OrgMode color Scheme, saying

"Error loading colour scheme Packages/orgmode/Color Scheme/Monokai Bright.tmTheme: Error parsing plist xml: Failed to open file In file "Packages/orgmode/Color Scheme/Monokai Bright.tmTheme"

danielmagnussons commented 11 years ago

I fixed it with https://github.com/danielmagnussons/orgmode/commit/08960df7db5897013a152e9716fd3d103ab2e7e9

Checkboxes and internal links are working, but none of the resolvers are working to open http links and such, will take a look at it.

Will track resolvers with https://github.com/danielmagnussons/orgmode/issues/7

Thanks for posting a bug ;p

danielmagnussons commented 11 years ago

Hum, I got that error when first installing orgmode under ubuntu, but quick restart of sublime and i didn't get error again.

I solved another error in sublime console:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 115, in create_text_commands
  File "./orgmode.py", line 55, in __init__
  File "./resolver/http.py", line 36, in __init__
  File "./resolver/abstract.py", line 92, in __init__
TypeError: super(type, obj): obj must be an instance or subtype of type

Is your error gone if you restart sublime? Can you post the traceback from sublime console if still a problem? I'm using Ubuntu 12.04.2 LTS and sublime 2

danielmagnussons commented 11 years ago

Just tried on macos 10.8, works like a charm with latest code, will close =)

DevonVille commented 11 years ago

Nope, that wasn't the issue. The issue was setting:

"color_scheme": "Packages/orgmode/Color Scheme/Monokai Bright.tmTheme",

In the sublime-settings, restricting it to a certain namespace. I had the package directory called "OrgMode", and linux is case sensitive.

Consider possibly removing the namespace restriction?

danielmagnussons commented 11 years ago

Im trying to put this plugin into the package manager, https://github.com/wbond/package_control_channel/pull/1278#issuecomment-18132404.

Then this problem will go away. =)

Not sure how it can be solved otherwise? better install instructions perhaps?

DevonVille commented 11 years ago

That was actually one of my thoughts - that is should be there. That would definitely solve things;) But anyway, is the "Packages/orgmode" part necessary?

danielmagnussons commented 11 years ago

Just tested, yes, does not work properly without it.

DevonVille commented 11 years ago

Then I guess adding it to the readme would have to do:) Thanks.

danielmagnussons commented 11 years ago

Install with package control = fixed =)