Hi,
[sorry, a bit complicated]
my bundle "R Console (Rdaemon)" ships with a grammar called "LaTeX Rdaemon" which works under TM 1.5 without problems but under TM 2.0 it fails partially.
It a bit complicated that's why a bit background information:
This grammar allows the users to write a normal LaTeX document with an interactive R Console running inside of the LaTeX document. [a kind of interactive Sweaving]
Here a minimal tex example:
-------
% Preamble (fold)
\documentclass[11pt]{article}
\usepackage{blindtext}
\usepackage{verbatim}
\newenvironment{Rdaemon}{\comment}{\endcomment} % R code invisible
\begin{document}
\section{First section}
\blindtext
\begin{Rdaemon}
> runif(10,min=0,max=1)
\end{Rdaemon}
\section{Second Section}
\blindtext
\end{document}
-------
Everything between \begin{Rdaemon} and \end{Rdaemon} should controlled by the "R Console (Rdaemon)" bundle scope: 'source.rd.console' and its output will be syntax highlighted via 'source.r' which works under TM 2.0.
If I place the caret after "runif(10,min=0,max=1)" and press ENTER "runif(10,min=0,max=1)" will be sent to R und the result will be inserted like:
-------
...
\blindtext
\begin{Rdaemon}
> runif(10,min=0,max=1)
[1] 0.482648455 0.874794168 0.904718875 0.585969825 0.859514066 0.865195652 0.003995807 0.904800528
[9] 0.918498771 0.158369060
>
\end{Rdaemon}
\section{Second Section}
...
-------
Fine, but for some reasons in TM 2.0 the end tag "\end{Rdaemon}" isn't recognized. I looked into that and it seems to me that the grammar definition of 'source.rd.console.prompt' in "R Console (Rdaemon)" "eats" the entire rest of the tex document:
{ name = 'source.rd.console.prompt';
begin = '^[>+:] ';
end = '\n\z';
beginCaptures = { 0 = { name = 'keyword.other.embedded.rd.console'; }; };
patterns = ( { include = 'source.r'; } );
},
[well at least it's my finding ;)]
Correct:
but in TM 2.0 it looks like:
Is anyone out there who can help me fixing it?
Thanks a lot,
Hans
Hi,
My workflow involves opening up multiple project windows for different issues that impact the same set of files/directories.
For instance I may be working on multiple bugs and features at the same time that impact the same set of source files and each project window is used to keep track of which files have been edited for each issue.
With more than 3 windows open it becomes difficult to know, without examining the files, which window is for which issue that I’m working on. Is there a way to customize the title for each window so that I can put in a tracking number for instance?
Ed Wong
Hey everyone!
I prefer having the wrap column but wrapping the code myself where needed.
And it works for everything but comments.
https://cloudup.com/c7Xx7a9liFu
No matter where I place those comments they keep wrapping at the wrapping column.
While usual code goes over the line as it should. It's JavaScript by the way.
In .tm_properties I have
[ * ]
softWrap = false
In View menu Soft Wrap's item states "Enable Soft Wrap" so it's turned off for sure.
I have no idea where to dig and why this happens. Not sure if it's a bug or a feature.
Igor.
Hi,
I am trying to use the Cucumber bundle with TextMate 2.0-alpha.9503:
https://github.com/cucumber/cucumber-tmbundle
I am a little confused about the proper way to install it. I tried:
cd ~/Library/Application\ Support/Avian/
git clone https://github.com/cucumber/cucumber-tmbundle Cucumber.tmbundle
But after restarting TextMate, I don’t see any indication that the bundle is loaded. I don’t know if this is because the bundle is incompatible with TextMate 2 (it was last touched over 2 years ago) or because I’m installing it wrong.
Any suggestions what to try next? Thanks,
Trevor
>
> ---------- Forwarded message ----------
> From: "Allan Odgaard" <mailinglist(a)textmate.org>
> Date: Fri, 04 Apr 2014 08:42:30 +0700
>
After pasting the wrong word, if you wait a little (like 1 second) does it
> then paste the proper word?
>
>
I'm not sure, I would need to check next time it happens.
Ive had it three or four times now, but usually I don't notice right away
and its only when I get a parse error in my PHP I go back and see it
sitting there.
> Is “AMQPChannel” in your clipboard history (Edit → Paste → Show History)?
> If yes, after you get it pasted, is it at the top? And are there multiple
> entries named “AMQPChannel”?
>
>
There was only one instance of this in my clipboard history, but Im certain
this is where I copied it manually in order to Google for it (ie, after it
had already been pasted)
> It does not embed rabbitMQ nor can I imagine a bundle does this. It would
> more likely be some third party clipboard history utility or perhaps
> TextMate’s own history that somehow gets messed up.
>
>
Its a brand new iMac, literally 2 weeks old. A software conflict is
possible, but there's very little Ive installed other than Textmate and a
few other standard utils.
I had the same setup on my old iMac (Lion) but never saw this problem, so
perhaps its some edge case specific to Mavericks.
Hi,
I'm using the latest version (2.0-alpha.9529) and I've some problems getting python output when running the script.
The python script is just:
print "ok"
It works fine when ran in terminal (Run Script (Terminal)) but if I run script directly (Run Script), I get no output. For other type of files (Latex for example), everything seems ok.
The weirdest part is that if I do the same with another user (administrator) it works fine and I get the output in the window: from my regular account, I can "su administrator" and starts TM from command line and it works as expected.
I tried to reinstall TM, not load my .profile/.bashrc in case something's wrong in my path, delete any TM preferences (com.macromates.TextMate.preview and Library/Caches/...) but it does no change anything.
So I guess something wrong's with my regular account but I'm out of ideas at this point.
(I also checked "env" gives same values for regular/administrator)
If someone has any idea ... or how to debug.
Nicolas
I think I've found a bug in TextMate's regular expression format string replacement feature. Try this.
Target document:
=== testing
== testing
= testing
Find expression (regex):
^(=+)
Replace expression:
${1/=(=)?(=)?/${2:?2:${1:?1:0}}/}
Do a replace all. What I expect:
2 testing
1 testing
0 testing
What I get:
2 testing
1 testing
1 testing
In the last line, neither group 2 nor group 1 should be matched, since the initial equal-sign is supposed to scarf up the entire match. Therefore I expect the logic to be:
* group 2 failed, so use its "else" alternative, which is the test for group 1
* group 1 failed, so use its "else" alternative, which is the value "0"
But try as I may, I cannot make "0" appear in the document. That is the proposed bug. It is as if group 1 is thought to be _always_ satisfied, which should not be the case.
Of course, feel free to prove me wrong by fixing my find/replace expressions, thus doing my homework for me. :) m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
>> 1) Memory usage should be in the ballpark of starting footprint (40
>> MB) + file (66 MB) = 106 MB.
>
> This is not possible because TM associates scopes with everything in
> your document and it also needs to create CoreText line objects to
> render the text (which is too slow to do ad-hoc so these are cached).
>
> It will probably need 10-20 extra bytes per character in your document,
> which turns 66 MB into ~1 GB, add in memory fragmentation and data
> structure alignment requirements, and you probably have your 1.4 GB.
>
> Maybe it can be improved, maybe there is the need for a special
> (limited) mode for large files, but it?s not currently a priority.
Thank you for the explanation. I really like TM2 for coding and was hoping it could be my editor for large files but it seems this was not meant to be-- will use TM for coding, vim for large files.
>
>> 2) After closing the window/file, memory footprint should go back to
>> near starting footprint (40 MB)
>
> How do you measure this? The malloc allocator does not give pages back
> to the OS (AFAIK), so once a process has increased its number of
> allocated pages, the count does not go down again.
>
>> 3) Closing and reopening a file should not increase memory footprint
>> further.
>
> This might be due to fragmentation. Here one solution could be a custom
> memory allocator to keep everything related to a document allocated from
> the same memory pool, but there are still many other things I would like
> to do, before I look into such optimizations.
I measured using the memory pane of Activity Monitor.app. Regarding the malloc allocator not giving pages back, this sounds bad behavior and is an OS or C library issue that should be fixed by "them." Thank you for taking the time to respond to my email.
Just upgraded to tmate2 (2.0-alpha.9529+macports.git.9f177d3) and noticed extremely high memory usage and slowdowns on Mavericks 10.9.2 on a Macbook Pro with 4GB RAM. I have tried resetting to defaults by deleting all the setting files/caches and the problem persists. After I open a large (66 MB, ~600K lines) tab delimited file, the memory usage goes up to 1.4 GB of real memory usage. Even after I close the window, the real memory usage is 800-900 MB although the memory usage falls to ~400 MB. If I open the same file again, the real memory usage goes up to 1.7 GB.
The starting memory usage of textmate is ~40 MB. I can quit textmate and restart and the problem is reproducible.
For comparison, opening the same 66 MB file in vim, the total memory usage is only 80 MB. The expected behaviors for textmate are the following:
1) Memory usage should be in the ballpark of starting footprint (40 MB) + file (66 MB) = 106 MB.
2) After closing the window/file, memory footprint should go back to near starting footprint (40 MB)
3) Closing and reopening a file should not increase memory footprint further.
Peter
Some time back, I reported that Textmate was causing my MacBook Pro to switch to the discrete graphics card all the time after I’d installed OS X 10.9. After my initial message, a TM build appeared that stopped this happening, but two builds later the behaviour came back. I didn’t follow it up at the time because it only seemed to be affecting this model of MBP, which was also experiencing other graphics problems under Mavericks, so I was waiting for 10.9.2, which was known to include some graphics driver fixes.
10.9.2 didn’t stop TM using the discrete graphics, but TM Build 9523 did. I don’t know whether this was one of the 'Fixes and improvements’ in the release notes, but the behaviour did not reappear with 9527. I thought you should know.
The only remaining oddity is that the discrete graphics still takes over whenever I use the Commit command from the Git bundle. It doesn’t do it when I show uncommitted changes, so it isn’t the diff. It doesn’t matter, just seems strange.
Thanks for cooling my computer down.