Hi, folks
I’m loving TM v2 – and would love to switch to it full-time, but have found a critical bug for me in b9147 which is making that awkward.
One of my projects is hosted on an old NFS v3 share (hosted on old Solaris 9 server) which is auto-mounted on my Mac Pro (running 10.6.8 – which I’m conscious is becoming deprecated with TM2; I’ll be upgrading to 10.8 soon). The file is owned by a different user, but the share is root-mountable from my workstation, so ‘sudo’ will allow me to update the file.
After making a change to a file, I press CMD-S, enter my credentials, and it prompts with:
The document “filename.pm” could not be saved.
set_attributes() failed: Attribute not found.
The file *is* updated on disk, but the red “close window” icon in the top-left of the window remains in its unsaved state, and TM thinks the file hasn’t been saved.
I’ve tried the TM1-style fix (though I’m not sure whether this still applies to TM2) before restarting TM2:
http://manual.macromates.com/en/saving_files#extended_attributes_metadata
but this doesn’t help.
Logged messages:
$ g textmate /var/log/system.log
Sep 18 10:07:06 [0x0-0x76a76a].com.macromates.TextMate.preview[34899]: TextMate: error unobserving fd 31: No such file or directory
Sep 18 10:07:06 [0x0-0x76a76a].com.macromates.TextMate.preview[34899]: TextMate: error unobserving fd 13: No such file or directory
Sep 18 10:07:07 SecurityAgent[46060]: com.macromates.textmate.openfile|2012-09-18 10:07:07 +0100
Sep 18 10:07:09 [0x0-0x76a76a].com.macromates.TextMate.preview[34899]: authorization (pid 34899): got âcom.macromates.textmate.openfileâ
Sep 18 10:07:09 com.macromates.auth_server[51179]: authorization (pid 51179): got âcom.macromates.textmate.openfileâ
I’m not expecting you to be able to replicate the problem (my condolences if you’re using NFS for anything ;-), but I thought I should report the problem in case it was helpful. Is there anything I could try which would help you troubleshoot this?
If there’s a local change I can make (a .tm_properties file option for the root of the shared folder, say), I’d be grateful for any advice…
(in the meantime, this is all the incentive I need to transition off our old NFS server to our git repo ;-) ).
Best wishes,
Steve
PS my NFS shares are mounted with these options (which usually help with Solaris NFS servers)
$ m /etc/nfs.conf
# Mount options to help ease problems with flaky NFS connections to Solaris 10 NFS (v4) shares
nfs.client.mount.options = vers=3,tcp,resvport,soft,intr,bg,locallocks,rdirplus,nosuid,nodev
___________________________________________________________
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________
wondering if anyone can spot what is wrong with this textmate command for
corona sdk? It worked fine until I updated to the latest daily build of
Corona. I tried to change the path variable, but to no avail. Basically
nothing happens when I hit Command-R (whereas normally it would kick off
corona with my project file)
Hi Darren,
Just wondering if you're aware of any changes required to get the RUN
command to work on the latest build of corona? I've tried changing the path
but it still doesn't respond. I'm not quite sure how to get some logging
happening within a textmate bundle...
thanks
Greg
--------------
#!/bin/bash
if [[ ${#SKIN} < 1 ]] ; then
SKIN="iPhone"
fi
CORONA_SIM_PATH="/Applications/CoronaSDK/Corona\ Terminal"
#if [[ ${#SDK_PATH} > 0 ]] ; then
# CORONA_SIM_PATH=$SDK_PATH"/simulator"
#else
# CORONA_SIM_PATH="/Applications/CoronaSDK/Corona\ Terminal"
## CORONA_SIM_PATH="/Applications/CoronaSDK/simulator"
## CORONA_SIM_PATH="/Applications/CoronaSDK/Corona\ Simulator"
#fi
if [[ ${#TM_PROJECT_DIRECTORY} > 0 ]] ; then
TARGET_DIR=$TM_PROJECT_DIRECTORY
else
TARGET_DIR=$TM_DIRECTORY
fi
# In order for the simulator relaunch to work, "Enable access for assistive
devices" must be selected in System Preferences > Universal Access.
osascript <<- APPLESCRIPT
display dialog "I love the MacTipper Blog!"
on appIsRunning(appName)
tell application "System Events" to (name of processes) contains appName
end appIsRunning
on selectAppMenuItem(app_name, menu_name, menu_item)
try
-- bring the target application to the front
tell application app_name
activate
end tell
tell application "System Events"
tell process app_name
tell menu bar 1
tell menu bar item menu_name
tell menu menu_name
click menu item menu_item
end tell
end tell
end tell
end tell
end tell
return true
on error error_message
return false
end try
end selectAppMenuItem
if appIsRunning("Corona Simulator") then
selectAppMenuItem("Corona Simulator","File","Relaunch")
else
tell application "Terminal"
-- tell application "iTerm"
do script "$CORONA_SIM_PATH -project $TM_PROJECT_DIRECTORY -skin $SKIN"
end tell
end if
APPLESCRIPT
--------------
--
View this message in context: http://textmate.1073791.n5.nabble.com/what-is-wrong-with-this-command-code-…
Sent from the textmate users mailing list archive at Nabble.com.
How can one best debug a TextMate command within a bundle that is not working
properly? It has unix & apple script within it? e.g.
- is there a way to run at a console level?
- a way to include some log messages?
thanks
--
View this message in context: http://textmate.1073791.n5.nabble.com/how-do-I-debug-a-command-console-or-l…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
This is a bit odd; in the latest build (9309), the file browser is not showing anything other than my .gitignore file in a Haskell project.
Here's what my .tm_properties looks like:
TM_GIT = "/usr/bin/git"
exclude = "{*.{hi,p_o,o,pyc,gz,aux},Icon,CVS,_darcs,_MTN,\{arch\},blib,*~.nib,vendor,*.log,tmp,log,coverage,coverage.data}"
include = "{.tm_properties,.htaccess,.rvmrc,.gitignore}"
fontName = "Menlo Regular"
fontSize = 14
softWrap = true
softTabs = true
tabSize = 4
excludeDirectories = "build,dist,tmp,log"
PATH = "$PATH:/usr/texbin:/usr/local/go/bin"
[ text.tex ]
Now, if I remove the `exclude=` line, nothing changes. But if I explicitly add "*.hs" to the `include` entry, my Haskell source files show up.
Any ideas? It seems to me that the files to be excluded are somehow being loaded from another scope, which has some unreasonable defaults.
thanks,
Noah
Every mails from some persons break threading in Mail.app.
E.g. Allan's mails are always on their own (or on their own thread)
Probably a Mail.app problem (they're fine in gmail web), but I ask in case there is a fix.
Anyone seeing this?
This make reading the list a PITA.
--
FredB
Dear All,
am I the only one who is annoyed by the behaviour of the
file browser in TM2? when it is invoked, it eats space in the
window and pushes the text in a smaller area. I find this
quite ugly and much prefer the old behaviour, where the
file browser slid out of one side of the window so the
resulting total window was larger, and the text in the
window was unchanged. Any way to customize this?
Thanks
Piero
I just did a Mountain Lion clean install and had to reinstall TextMate
(Version 1.5.11 (1635)).
Interactive keyboard input for Ruby didn't work, but I remembered a trick
(/applications/textmate.app/Contents/SharedSupport/Support/lib marcc$ svn
export
http://svn.textmate.org/trunk/Support/lib/tm_interactive_input.dylib@11735).
This helped to work around this problem.
Using this workaround, when I run my Ruby app within TM, keyboard input
does work but I get a strange line in red the interactive window:
What is your name?
dyld: DYLD_ environment variables being ignored because main executable
(/bin/ps) is setuid or setgid
marc
Hello marc. How are you?
The line I'm questioning is:
dyld: DYLD_ environment variables being ignored because main executable
(/bin/ps) is setuid or setgid (not sure what it means)
Is there a way I can get rid of that line (some workaround?) -- What am I
doing wrong?
Thanks in advance.
Now the 'Find in project' don't support encodings other than utf8,
when I use gbk encoding, I can't navigate to the right line of result
files position.
I use the Ack bundle to search projects with gbk encoding, will
textmate's 'Find in project' support encodings other than utf8 in the
future?
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Is there an existing plugin for log4j file syntax highlighting. I'm looking to highlight all FATAL and ERROR lines in red, WARN in yellow (or something close so that its readable), and INFO in green.
Cheers,
Kyle
Good morning all,
first I want to express my appreciation for the ongoing development process
of TM2! Thanks to all contributors!
However, with the nightly updates coming in more frequently now, I find that
on both of my (Mountain Lion) computers, the number of TextMate duplicates
in Finder's "Open With.." list (if I for instance use it on one of my C
source files) keeps increasing with every single update.
I know that it is basically possible to clean this list by rebuilding some
LaunchServices files, but I also read that all previous application
assignments for file types would be lost afterwards -- that is why I first
want to ask if anybody experiences similar behavior, and whether this might
be related to the upgrade process within TextMate (I'm usually updating from
the preferences dialog) and thus be likely to reoccur even after I have
cleaned the LaunchServices.
Thank you very much,
dAlembert
--
View this message in context: http://textmate.1073791.n5.nabble.com/Growing-list-of-duplicates-in-Finder-…
Sent from the textmate users mailing list archive at Nabble.com.
> I just have to throw my vote in for the curent PANE option, not a weird second-class drawer that doesn't behave like it is really part of the window.
>
> Check out SizeUp (http://www.irradiatedsoftware.com/sizeup/) or BetterTouchTool/BetterSnapTool (http://blog.boastr.net/) if resizing windows is causing an inordinate amount of distress in your lives.
>
> --
> Brandon Fryslie
>
>
> On Thursday, September 13, 2012 at 8:25 AM, Rob McBroom wrote:
>
>> On Sep 12, 2012, at 12:04 AM, Travis Dunn <tdunn13(a)gmail.com (mailto:tdunn13@gmail.com)> wrote:
>>
>>> I don't think the new file browser is "stupid" at all, if anything it's more inline with how most other editors handle the problem (not saying that TextMate can't/shouldn't be unique), but in this case I think it was a good decision. The drawer was awkward in my opinion, it's pretty much the only reason I used Project Plus, cause the interface element felt strange.
>>
>> I used Project Plus, too. I don?t think anyone wants a literal drawer. We just want the size of the editing area to be the same, whether [thing that shows files] is visible or not. :-)
I like the drawer in TM 1. It is very OS X and Cocoa apps had drawers for a long time.
In a perfect world, everybody wants different things, and everyone wants a customizable text editor.
So, it would be great to have all 3 options... (but a PITA to code and maintain, perhaps...)
Hi,
I'm using rake in a (mostly) non-ruby project, and so started looking into TextMate's support for running rake tasks.
I discovered that my project automatically has a scope of attr.project.rake, and so I set the Ruby bundle's "Run Rake Task" command to include this scope. However when I execute the command I don't see a full list of the available tasks, I just see the following two:
- (default task)
- aborted!
The project requires JRuby (as it uses JDBC), and so I then tried setting TM_RUBY to use the correct ruby (normally I want textmate to use the system ruby regardless, as using jruby really slows down bundle commands and such). Now I get this error:
/Users/adsharp/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/erb.rb:715 warning: SAFE levels are not supported in JRuby
NotImplementedError: Process::Status#exited? not implemented
(root) at /Users/adsharp/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:42
Here I'm well beyond my level of expertise. Is there anything I can do here to enable use of the "Run Rake Task" command in my JRuby/Rake project?
Cheers,
Adam
Hi list,
after getting TM2 + synctex working again on 10.6.8 I experience an issues using the 'Citation based on current word' command (opt+esc) in the LaTeX.bundle:
dyld: Library not loaded: @executable_path/../Frameworks/libc++.1.dylib
Referenced from: /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/Resources/tm_dialog2
Reason: image not found
/Users/christian/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:182:in `load': Cannot parse a NULL or zero-length data (OSX::PropertyListError)
from /Users/christian/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:182:in `menu'
from /Users/christian/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:177:in `popen'
from /Users/christian/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb:177:in `menu'
from Citation Based on Current Word / Selection…:12
It seems that the @executable_path variable is not set properly, is there any way to fix this or does this require a new compiliation?
Thanks,
Chris
otool -L /Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/Resources/tm_dialog2
/Applications/TextMate.app/Contents/PlugIns/Dialog2.tmplugin/Contents/Resources/tm_dialog2:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.62.0)
@executable_path/../Frameworks/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.43.0)
Subject says it all, I am looking for a way to get focus back to the
editor window after pressing Cmd-R to run my Python script WITHOUT
using the mouse.
Is that possible?
Am using the latest TM2 here.
Would appreciate to let me know the trick! ;)
Michael
I'm getting "source" scope where it shouldn't be, I having some hard time
discovering what's going on (example attached: the file is ~/.tm_properties)
Any ideas?
Thanks
Elia
—
☁ @elia <http://twitter.com/elia> (twitter) ✎ elia(a)schito.me (gtalk)
☎ (+39) 348/9051393 perlelia(a)gmail.com (FaceTime)
I need some help about code complete in bash and php.
bash
-------
VAR_EXAMPLE=1
echo $VAR_EXAMPLE # when I use a variable for the first time,
autocomplete won't work when I hit $VAR[ESC]
php
------
class C {
private $_a_example = 0;
public function foo()
{
echo $this->_a_example; # when I use a class's property for
the first time, autocomplete won't work when I hit $this->_a[ESC]
}
}
Is there any solution for this or I have to tweak the syntax file?
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
This is not really that important but I'm recording it for posterity.
If you open a directory in TM2 so that you have a window showing the file
browser and an empty "untitled" document, then click on a file in the
browser that is not UTF-8 encoded you will get the dialog asking for which
encoding to use. If you click "cancel" in that dialog the entire window
is closed. Unlike when you close the last tab and you get a new
"untitled" document.
example text:
(helloword)
When use vim to select a enclosing typing pair, you can choose to
select the punctuation or not, by using command 'i' and 'a'. eg 'vi('
'va('
When use Textmate, select Enclosing Typing Pairs command will make the
selection with punctuations like vim's 'va(' does.
Is it possible to make the selection without punctuations like vim's 'vi(' does?
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Not sure in what build that started happening because I haven't edited a
java properties file in some time. But with my current build (9307) when I
set the file scope to "java.properties" I'm seeing incorrect scoping. In
a empty file if I type ctrl-shift-P it displays the follow scopes:
source.java.properties
kvp.multiline.properties
string.kvp.multiline.properties
attr.untitled
attr.os-version.10.7.4
The source.java.properties is expected, but I'm not sure where
kvp.multiline.properties is getting picked up.
It is wreaking havoc with my properties files and assigning a scope of
kvp.dangling.space.between.key.and.equalsign.properties when I enter a
valid property value.
Any idea where these kvp scopes are being applied?
I searched all of the files (using ack --all kvp) in:
/Users/curt/Library/Application Support/Avian/Prinstine Copy
/Users/curt/Library/Application Support/Avian/Bundles
/Users/curt/Library/Application Support/TextMate/Pristine Copy
/Users/curt/Library/Application Support/TextMate/Bundles
/Library/Application Support/TextMate/Bundles
This did not find a single instance of "kvp".
Dear all,
I have a strong feeling that this has come up before, but I can't seem
to find it in the mailing list archives. Can I ask why the
TM_PROJECT_DIRECTORY isn't set to the top-level directory by default?
(I'd like to use it to set my windowTitle to just the last element in
that path, as in TM1, without needing a .tm_properties file in every
project. So if that's possible by another route, I'd be glad to hear
about that too...)
Thanks,
Jon
Hi list,
I have a question related to TM2 and the mate command line. I have upgraded to TM2 (most recent version on OS 10.6.8) and removed/installed the command line tool through the preferences dialogue. This has put an executable called 'mate' into /usr/local/bin. So far all good.
In the old TM (v1.x), 'mate' is a symlink in /Applications/TextMate.app/Contents/Resources/ pointing to /Applications/TextMate.app/Contents/SharedSupport/Support/bin/mate
If I now try to run 'mate' after my upgrade to TM2 and 'mate' installation I get:
/usr/local/bin/mate: line 2: /bin/find_app: No such file or directory
/usr/local/bin/mate: line 2: /Contents/Resources/mate: No such file or directory
Looking at 'mate' this is a shell script:
#!/bin/sh
"$("$TM_SUPPORT_PATH/bin/find_app" com.macromates.TextMate.preview)/Contents/Resources/mate" "$@"
pointing to $TM_SUPPORT_PATH (ie for TM2 this should be "/Applications/TextMate\ 2.app/Contents/SharedSupport/Support" I believe, going by the TM1 setup).
In the new TM2 alpha, however, /Applications/TextMate\ 2.app/Contents/Resources does not contain a 'mate' executable, neither does the folder /Applications/TextMate\ 2.app/Contents/SharedSupport/Support/ exist. In fact, I could not find the 'mate' executable at all in the application bundle.
So my question is: where is 'mate' in TM2 located and how do I fix the sync with Skim?
Thanks,
Chris
Hi TM2 folks,
I would like to request the following feature in TM2:
* In a selected portion, matching identical words. ALthough this can be done by Find in selection menu, it would be more
handy if just by double clicking on a word we could find identical words.
* Editing these identical words by introducing simultaneous carrots.
Sometimes this feature becomes very useful in checking and editing a code.
Cheers,
Riki
Sitting on Textmate 2 9305 and the folding indicators seems to big and
offcenter, or at least offcenter, the same with the icon showing that an
area is folded. Im running this on a Macbook Pro Retina with the native
resolution.
Folded[image: Inline image 1]
Unfolded
[image: Inline image 2]