I'm working on several moderately-sized Rails projects, and lately it's been
taking several seconds to open or close a tab. I thought it was a memory
issue, but restarting TM doesn't seem to help at all. This also doesn't seem
to be at all related to the size of the file, so I don't think it's taking a
long time to do the syntax highlighting. Is there something I could do to
track down what's causing the slowness?
--
View this message in context: http://old.nabble.com/Slow-to-open-and-close-tabs-tp33749335p33749335.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi there! Perhaps someone on the list will be be able to help me diagnose what's wrong with my current install of TextMate/RubyMate/ruby.
Whenever I try to run a ruby script through TextMate (⌘+R) and an exception gets raised, I get the following error:
/Users/jan/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:12:in `for_fd': Bad file descriptor (Errno::EBADF)
from /Users/jan/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:12:in `block in <top (required)>'
The line in catch_exception that's causing this is:
io = IO.for_fd(ENV['TM_ERROR_FD'].to_i)
For what it's worth, TM_ERROR_FD seems to be set to 14 here...setting it to other values (tried 1 through 14) doesn't seem to help much. I haven't done much with IO, so I'm on relatively shaky ground regarding what's happening and how to fix it. Anyone know what my next step should be?
Possibly relevant info:
TextMate version: 1.5.10 (1631)
ruby version: ruby 2.0.0dev (2012-03-26 trunk 35141) [x86_64-darwin10.8.0]
rvm version: 1.13.0
OS X version: 10.7.3
--
Jonathan Bunde-Pedersen, PhD
VP, Solution Architect, Cetrea A/S
t: +45 38400587
m: +45 23413830
On Tue, Apr 24, 2012 at 10:30, <textmate-request(a)lists.macromates.com> wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. [TM2] txmt: URL bugs? (Gerd Knops)
> 2. TM2: JavaScript & Lua Syntax Checkers, Lua runner with
> 'clickable' debug output (Gerd Knops)
> 3. TM2: popup dialog problem with dual screens (?Yuan Jiang)
> 4. TM2 using lots of CPU (Staffan Larsen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 23 Apr 2012 13:17:00 -0500
> From: Gerd Knops <gerti-textmate(a)bitart.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] [TM2] txmt: URL bugs?
> Message-ID: <4FD6E0B2-B6CB-4E15-8EB4-72B9F9502D45(a)bitart.com>
> Content-Type: text/plain; charset=us-ascii
>
> A couple of issues:
>
> http://manual.macromates.com/en/using_textmate_from_terminal.html
>
> says about url: "if this is left out, the current document is targeted". TM2 complains when url is missing.
>
> Secondly: I can't seem to figure out how to use URLs containing spaces. Neither of these work in TM2 (I belive the first one would be the correct one, at least TM2 displays it correctly in the error message):
>
> txmt://open?url=file:///Library/Screen%20Savers/
> txmt://open?url=file:///Library/Screen+Savers/
> txmt://open?url=file:///Library/Screen Savers/
>
> Am I getting those wrong?
>
> Thanks
>
> Gerd
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 23 Apr 2012 19:09:10 -0500
> From: Gerd Knops <gerti-textmate(a)bitart.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] TM2: JavaScript & Lua Syntax Checkers, Lua runner with
> 'clickable' debug output
> Message-ID: <503F953A-07AA-4892-92A1-7B335F1CF6A4(a)bitart.com>
> Content-Type: text/plain; charset=us-ascii
>
> A couple of new modules I just added to github, maybe someone can find use for them:
>
> https://github.com/gknops/JavaScript-ApLo.tmbundle
> https://github.com/gknops/Lua-ApLo.tmbundle
>
> They do require ApLo:
>
> https://github.com/gknops/ApLo
>
> Gerd
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 24 Apr 2012 14:36:39 +0800
> From: ?Yuan Jiang <sleetdrop(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] TM2: popup dialog problem with dual screens
> Message-ID: <32024141-379A-40E4-9068-467DC4CD4DDA(a)gmail.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello,
>
> When the TM2 is in the external screen, when I use [go to file (cmd+t)] [select bundle item (ctrl+cmd+t)] [find (cmd+f)], the popup dialog will appear in the main screen.
>
>
>
>
>
> Yuan Jiang
> http://blog.vetcafe.net
> http://twitter.com/sleetdrop
>
>
Hello,
When the TM2 is in the external screen, when I use [go to file (cmd+t)] [select bundle item (ctrl+cmd+t)] [find (cmd+f)], the popup dialog will appear in the main screen.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
A couple of issues:
http://manual.macromates.com/en/using_textmate_from_terminal.html
says about url: "if this is left out, the current document is targeted". TM2 complains when url is missing.
Secondly: I can't seem to figure out how to use URLs containing spaces. Neither of these work in TM2 (I belive the first one would be the correct one, at least TM2 displays it correctly in the error message):
txmt://open?url=file:///Library/Screen%20Savers/
txmt://open?url=file:///Library/Screen+Savers/
txmt://open?url=file:///Library/Screen Savers/
Am I getting those wrong?
Thanks
Gerd
Hi,
I'm not sure if I am missing something about the new ways to include/exclude files via entries in the .tm_properties file. I would like a subset of all my files to appear in the file browser. I first exclude all files then selectively include just those files I want. My problem is that when I do a search/replace in project the search returns matches in pure binary files (i.e. executables) that are *not* listed in my set of selected files. I never want to search/replace in any binary file. Can anyone suggest a fix?
Many thanks,
Leo
Here is the section of my .tm_properties file
# exclude all files
exclude = "*"
excludeFiles = "*"
excludeFilesInBrowser = "*"
excludeDirectoriesInBrowser = ".*"
excludeInFolderSearch = ".*"
# select some files
mySourceCode = "*.adb,*.ads,*.adc,*.sh,*.tex,*.sty"
myTextFiles = "*.txt,*.tex,*.sty,*.bib,*.inp"
myBinaryFiles = "*.{jpg,jpeg,pdf,png}"
myOtherFiles = "Makefile,README*,TO-DO*"
# make the selected files visible
includeFilesInBrowser = "{.tm_properties,$mySourceCode,$myTextFiles,$myBinaryFiles,$myOtherFiles}"
[ $myBinaryFiles ]
binary = true
I'm having serious issues with highlighting, mostly with javascript files. Whenever I open a minified js file or a file with over 300-400 lines of code, textmate process will go over 100% and won't highlight anything else until I quit it.
I'm on a i7 2.2ghz with 8gig of ram.
Anyone else experiencing this?
thanks
I've been having some weird issue with the find functionality. When I search for something, usually in a project directory, most of the results don't match the line number returned.
example, if I search for "foo". I get the list of results, so I click on the returned result from the find window, which does takes me to the correct file and to line 32 as returned in the search results, but foo is actually located in a completely different line number in that document.
anybody else experiencing this?
I'm new to TextMate and Ruby so please bear with me. I'm trying to run my
ruby code in 1.9.3. When I run things now, it's running them in 1.8.7 for
some reason. I don't know exactly what path should go in the Path but I
want it to run 1.9.3. Please help. I don't even know where 1.8.7 is coming
from
--
View this message in context: http://old.nabble.com/Change-path-tp33711606p33711606.html
Sent from the textmate users mailing list archive at Nabble.com.
Howdy.
Does anyone know if it is possible to change the color in the file drawer in
TextMate 2? I read a message asking about font size but couldn't find
anything on color. I would like to change it to the pale blue found in most
lion windows (#dde2e9).
Thanks ,
~ Ben
--
View this message in context: http://old.nabble.com/-TM2--File-Drawer-Color-tp33679398p33679398.html
Sent from the textmate users mailing list archive at Nabble.com.
When using the hotkey for ending the line with a : and going to next
line, e.g. when defining a function, most of the time the colon is
being placed several characters away from the closing parameter
parentheses like so:
def func(params) :
This behaviour is a regression in TM2, works fine in TM1.
Best regards,
Michael
In the "Go To File" dialog, is there a way to remove the saved entries from
the dropdown on the right that contains the file globs?
I looked around a bit but couldn't find where these are stored.
Thanks,
Curt
"The usage statistics will be monitored..."
-- <http://blog.macromates.com/2012/leopards-and-questions/>
Can you please post an update to the statistics of Users and their OS
version. Perhaps it will change as more people become aware of the 2.0
alpha release.
Cheers,
AZ
When I try the keyboard shortcut, I just get the alert sound from my Mac,
and when I choose Bundle > HTML > Entities > Insert Entity... via menu bar,
it opens the entity panel, but when I select one to insert, instead it
pastes this error in my document:
-------------
/tmp/temp_textmate.IH1pV6:21: undefined method `to_i' for true:TrueClass
(NoMethodError)
from /tmp/temp_textmate.IH1pV6:15:in `open'
from /tmp/temp_textmate.IH1pV6:15
-------------
Unfortunately, I was testing out Sublime Text 2 (shame on me, I know...)
for a while so I'm not sure when this started to happen. Sorry...
I tried to reinstall of TextMate (removed the textmate folder in
app support and downloaded a fresh copy) but that didn't change anything...
I get the same with the 1.5 latest release and the alphabeta 2.0 (well, I
get the error in a window in 2.0 instead of as text in the document in 1.5).
Any idea? Thanks!
--Yann
Hello All,
Apologies in advance if this is inappropriate to post here, but since there
is a 2.0 Textmate on the way that is changing how fonts work...
Here is a proposal about "elastic tabs" that seems interesting:
http://nickgravgaard.com/elastictabstops/
"Elastic tabstops - a better way to indent and align code"
there's also a discussion going on here:
http://reddit.com/comments/ro3b0
The idea is more about lining up text in columns as opposed to just
indenting text. Which is a feature I don't use much for programming. But
for editing lists of things in columns, this looks pretty sweet.
Regards,
--ErikN
Hello all,
I'm having a problem with matching character pairs in TextMate 2, and I'm wondering if it's a known issue or something specific to my installation.
For example, if I open a JavaScript file and type the following:
$(#id_name)
and then go back and place my caret before the # sign, and type a single-quote (or any other matched pair), I end up with:
$(''#id_name)
with my caret now between the matched pair. Selecting all of #id_name before typing a quote character works properly, but obviously requires use of the mouse.
I've confirmed that this happens in JavaScript and Python, but not in CSS or HTML. In fact, in those languages, there appears to be no matched pairing happening at all.
I never really used the matched pairs in TM1, so mostly I'd like to know if there's a way to turn this feature off altogether, but I'm glad to provide any other information required. My .tm_properties file is extremely sparse, and I'm not using any 3rd party plugins.
-phil
Hi there,
It seems that when using dead keys in TM2, the initial keypress of the
dead key is interpreted as input. This creates a problem for functions
like wrapping selected text (with parens or braces) because rather than
wrapping the text with the appropriate character it replaces the
selection with the dead key character.
An example: I use the semicolon followed by j for inserting a left
paren. If I make a selection and do this, it replaces the selection
with the semicolon.
Any ideas?
Thanks,
Garrett Lancaster
Hi,
I have a textmate project with some Latex files. When I click on the links with error messages, or when I press fn-enter on an include statement the correct latex file is opened, but in a new window and not in a tab within the project.
THis is annoying, because I usualy already have that file open in a tab, and a new window takes me out of the project so CMD-R does not compile the main file as set in TM_LATEX_MASTER variable in the project.
Any Ideas how to fix this?
--
Ronald
Hello everybody,
I'm using TextMate 2.0 Build 9064 on OS 10.6.8. I'm using spaces to provide multiple destops. There are some small annoyances with this setup:
1. When opening a file from the terminal window, TextMate will switch to the space where the previous TextMate window has been opened.
2. When pressing Cmd-F to open the find window, TextMate switches to the space which the find window has been active during the previous usage. This is a bit awkward since the found results will be shown a different space unless I move the search window to the desired space before performing the search :-)
3. When using rmate to open files remotely, the file opens on a seamingly random space. I'm not sure, maybe it's the space where TextMate was originally opened or the space where the last window has been opened manually (like 1.).
Can the behaviour be changed so that new windows and dialogs will open on the current space?
Cheers,
Henning Holtschneider
--
LocaNet oHG - http://www.loca.net
Baroper Straße 239 b, D-44227 Dortmund
tel +49 231 91596-25, fax +49 231 91596-55
sip 25(a)voip.loca.net
Registergericht Amtsgericht Dortmund HRA 14208
Geschäftsführer Sven Haufe, Henning Holtschneider
I config the php bundle to use local php manual via setup the PHP_MANUAL_LOCATION environment variable.
It can look up the keyword by "^H", but links in the browser window doesn't work.
As shown in the attached picture.
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop