Alan,
here is the command in question (I've also attached a screenshot of the command setup in the bundle editor):
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
"/usr/local/bin/uncrustify" -l OC -c "$TM_UNCRUSTIFY_OBJC_CONFIG";
There doesn't seem to be any special pattern, it doesn't always do it and immediately running the command again seems to restore the syntax colouring. Making any further edit to the file also restores the syntax colouring.
I mostly work on Objective-C files, a simple test case would be:
1. open a largish ObjC .m file (say 500+ lines).
2. make an edit, e.g.: unindent a line of code
3. run the command
4. try this a few times
Often I see the code lose its syntax colouring from the point where I made the last edit onwards, sometimes its only the actual line or lines in question. All the affected text goes white, it's as though it has lost its scope although selecting some text in the unhighlighted area and showing the scope reveals a perfectly normal scope list.
I have seen this behaviour on 3 separate Macs: 2 Mac Pro's and 1 MacBook Pro, running pretty much all of the alphas so far, on Lion 10.7.4.
Hope that helps
Chris
On 2 Sep 2012, at 01:16, textmate-request(a)lists.macromates.com wrote:
> This should not be able to happen.
>
> Can you send step-by-step about how to reproduce (that is, where to get this command from and how you get it into this unhighlighted state).
> On 2 Sep 2012, at 16:25, Allan Odgaard wrote:
>
> > On Sep 2, 2012, at 5:09 PM, Jonas Zimmermann <listen at jonaszimmermann.de> wrote:
> >
> >> OK, I've been using ⇧⌘Y for a while. This doesn't show added folders (for SVN) as uncommitted, however. So commits depending on those folders (such as added files within) fail.
> >
> > That sounds like something that could easily be fixed if you provide steps-to-reproduce.
Thanks for including the steps as I was able to reproduce this.
> ...
>
> So added folders should be shown as uncommitted changes; don't know whether there should also be a check for dependencies when trying to commit (probably not).
I talked to Allan this morning and I am in agreement with you. I've
suggested why to Allan in IRC but for posterity, I'll post here as
well. Basically, Subversion treats folders as versionable objects.
They can be added/modified/deleted to the repository with/without
files in them and they even have their own versioned properties like
files do. That being said, I think it makes sense to have a folder in
the "Uncommitted Changes" view whenever the folder has changes on
itself or below it. While Allan and I talk about this in IRC, there
are a few workarounds:
* When committing from the "SCM Status" view, make sure there are no
files selected when you show SCM command (⌘Y) (Note: When you have no
files selected and initiate a commit, TextMate will show you all
changes in the working copy)
* Commit from the file browser and select the path(s) you want to
commit including the newly added folder (Note: When selecting a folder
and initiating a commit, it will of course include paths for all
descendants)
Using those two options above, I was able to work around this
situation. The reason you're only seeing the file in the commit
dialog is because in your step #6 (6. Select new file there, ⌘Y,
Commit), you selected the file prior to initiating the commit thus
telling TextMate that you wanted to commit that file alone.
I hope this helps explain why this is happening and gives you a
workaround until Allan and I can come up with something suitable.
--
Take care,
Jeremy Whitlock (@whitlockjc on Twitter)
http://www.thoughtspark.org
Hi All,
TM2s HTML output window is somewhat limited compared to TM1:
- it uses sort of *tabs*, so I can't have multiple windows next to each other (handy to remove clutter and usually welcome, but when I run multiple apps/scripts in parallel I need separate windows to monitor them)
- it only allows one 'long running' process at a time
Since my projects often include multiple apps and/or scripts that interdepend and I need to run them side by side (eg client server etc). I used to use HTML output windows, so that I could have specially formatted log messages be clickable and get me to the correct location in the source code etc.
So I wrote an application that provides multiple HTML output windows and remembers their individual placement and size. It is called ApLo, and available as source here:
https://github.com/gknops/ApLo
and wrapped into a TextMate bundle here:
https://github.com/gknops/aplo.tmbundle
For starters I wrote an Xcode4 bundle that goes with it:
https://github.com/gknops/xcode4.tmbundle
As time permits I plan to add support for iOS projects as well, and STDOUT/STDERR parsers for other languages (perl, lua) as I come across them.
Maybe these bundles will be useful for others as well.
Gerd
Hi,
I regularly run the uncrustify command to tidy up my ObjC source, often when I do this the syntax colouring in the current file becomes broken until I make an edit (like a new line return), does anyone know a way to force a refresh of the syntax colouring after a command that replaces the entire document?
Chris
Just an idea, maybe it's like this for a good reason, but it's always bugged me that the "Go To" windows just float around. I can see a few reasons why it's awkward (at least for me):
• if you're using multiple displays the "Go To" windows can end up opening on a different display than the actual textmate window you're calling it from, this seems to be inconsistent amongst them though
• if you have multiple projects open, the "Go To" position is shared, so if you move it over to the current textmate project window that you're working with and then switch to the other project, the "Go To" window will be in its last location
• in general it feels like it brings you out of the interface the way they are implemented now
Not like there are "bugs" or real problems with it, but i do feel like interface wise, it's a little clumsy. Thoughts?
So I’m running the latest nightly of Textmate 2 and seeing some weird
behaviour from Find in Project…
I have a project(or what I’m assuming is a project, it has a .™_properties
in its root folder with projectDirectory = '$CWD’ in it)
and no matter what i do i can’t make Find in Project… find anything, i type
a search query that i know exists in the project and it returns nothing.
But if i load up for example the Textmate project Find in Project… seems to
work just fine and i can’t for the life of the figure out what the problem
is. Maybe I’m not understanding what Find in Project… does or maybe I’m
confused as to what or how a project is made in Textmate 2. Any ideas are
most welcome.
~//M
Defunct processes
Question:
In the C bundle I disable indentation by setting
{ decreaseIndentPattern = '(?=not)possible';
increaseIndentPattern = '(?=not)possible';
indentNextLinePattern = '(?=not)possible';
unIndentedLinePattern = '(?=not)possible';
}
Now I have this (pipe denotes cursor, \t is a tab):
{
\t|
}
As soon as I type any character, the tab disappears. Why?
Gerd
Is there any way to change the colour of the text and/or background in the tabs as the dark grey text on slightly less dark grey background makes it hard to read the text. Ironically when Textmate2 is in the background it is easier to read the tab titles than when Textmate is in the foreground and being used!
Thanks,
Dave.
Hey guys, I came across this question, how can I set up language and
grammar preference in TM2. It's a sort of boring thing every time I start
TM I need to set up it again to Latex and British english. So, setting up
in the preferences panel doesn't seem to work.
Daniel