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

TextMate 2 and base text color #25

Open
ebsen opened this issue Mar 27, 2012 · 11 comments
Open

TextMate 2 and base text color #25

ebsen opened this issue Mar 27, 2012 · 11 comments

Comments

@ebsen
Copy link

ebsen commented Mar 27, 2012

It looks like there's something gone awry with the base text color used in this theme under TextMate 2.

Until yesterday, the Solarized theme available as a TextMate 2 bundle was independent of this one. (It didn't support Markdown highlighting, at least.) Yesterday, this changed, but now the base text color renders in some kind of greenish yellow, no matter what the language bundle used. (Try a plain text file to see what I mean.)

Coincidentally, this is the same issue that I found when I tried to convert my copy of this theme into a TextMate 2 version.

It seems as though maybe MacroMates pulled this repo into their theme?

@deplorableword
Copy link
Owner

Hi,

I need to look into this but, in short I normally poke someone at textmate to update the TM2 theme from this repo, either they hit the trigger without me asking or it's now tracking and updating automatically.

Errors are probably due to the latest merges, normally people get a stable copy of the theme via the main Solarised download or via TM2 auto update.

Sorry for this, it sucks. I'll see what I can do to get it resolved.

On 27 Mar 2012, at 06:44 PM, [email protected] wrote:

It looks like there's something gone awry with the base text color used in this theme under TextMate 2.

Until yesterday, the Solarized theme available as a TextMate 2 bundle was independent of this one. (It didn't support Markdown highlighting, at least.) Yesterday, this changed, but now the base text color renders in some kind of greenish yellow, no matter what the language bundle used. (Try a plain text file to see what I mean.)

Coincidentally, this is the same issue that I found when I tried to convert my copy of this theme into a TextMate 2 version.

It seems as though maybe MacroMates pulled this repo into their theme?


Reply to this email directly or view it on GitHub:
#25

@ebsen
Copy link
Author

ebsen commented Mar 27, 2012

Yeah, mine came through automatically. Took me awhile to make sure I hadn't broken something myself before I filed the issue. No worries, thanks.

@nsfmc
Copy link

nsfmc commented Mar 28, 2012

i noticed this too and asked around in irc, but foolishly hadn't thought to try looking here

@deplorableword
Copy link
Owner

Hi,

I've just pushed a fix to this 364ec37 to add an addition rule for text.plain to set the default text correctly. Interestingly we had never set this before, so I'm still at a loss to what went wrong here. I don't think any additional contexts get applied to 'plain' text, so I'm going to leave this issue open until I know what went wrong.

@ebsen
Copy link
Author

ebsen commented Mar 28, 2012

So I downloaded your revised light theme and stuck it in ~/Library/Application Support/Avian/Bundles/, then uninstalled the Solarized theme from the TextMate 2 bundles panel, and restarted TextMate 2 (just to be sure).

Now, with the Plain Text "language" selected, the text appears correct (without double-checking the hex values), but switching the language highlighting to Markdown returns the text to that greenish-yellow color.

I can provide further details if you want/need, but thought I'd jot down what I noticed so far in case its any help.

@deplorableword
Copy link
Owner

Ah must be another context which needs to be added, can you supply an example gist with another broken colour?

Thanks

On 28 Mar 2012, at 11:03 PM, [email protected] wrote:

So I downloaded your revised light theme and stuck it in ~/Library/Application Support/Avian/Bundles/, then uninstalled the Solarized theme from the TextMate 2 bundles panel, and restarted TextMate 2 (just to be sure).

Now, with the Plain Text "language" selected, the text appears correct (without double-checking the hex values), but switching the language highlighting to Markdown returns the text to that greenish-yellow color.

I can provide further details if you want/need, but thought I'd jot down what I noticed so far in case its any help.


Reply to this email directly or view it on GitHub:
#25 (comment)

@ebsen
Copy link
Author

ebsen commented Mar 29, 2012

I hope this is what you were looking for. I made a gist containing three files: plain text, Markdown, and JavaScript. The base text color appears correct in the .txt file (base00?); however, in the .js and .mdown copies, the "regular" text still displays in that green/yellow. I haven't noticed a problem with the other colors.

Update: The noob here (me) can't figure out how to link to the gist. It's the only gist I have and it should be public if that helps at all.

@nsfmc
Copy link

nsfmc commented Mar 29, 2012

hey, so i looked at this and just wrapped it in a native tm2 bundle in a separate branch here:

https://github.com/nsfmc/textmate-solarized/tree/tm2

the actual changes to the plists were only cutting extraneous whitespace which magically fixed the problem (i guess tm2 is more sensitive on that front?)

@deplorableword if you'd like i can merge those changes back into the main tmthemes from your repo and pull request it, otherwise, i'll just leave this here if that helps anyone else

@ebsen
Copy link
Author

ebsen commented Mar 29, 2012

I don't see any difference using the link provided by @nsfmc .

@oesmith
Copy link
Contributor

oesmith commented Apr 2, 2012

@nsfmc's branch fixes the problem for me!

cd ~/Library/Application Support/Avian/Bundles/
git clone -b tm2 https://github.com/nsfmc/textmate-solarized.git Solarized.tmbundle

@ebsen
Copy link
Author

ebsen commented Apr 2, 2012

Thanks, @oesmith. @nsfmc's branch works using your instructions. Apparently just downloading the files and dropping them into the themes directory of my own bundle doesn't do the trick.

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

No branches or pull requests

4 participants