Approximately since installing 9064 I can't run Ruby scripts. I'm not aware of changing anything, but I pretend no expertise in any of this. I've just got a couple of simple Ruby scripts that I use.
Message when run script:
Fallure running "Run:. /Users/me/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:1: undefined method `+' for nil:NilClass (NoMethodError)
Scripts still run in an older version of BBEdit. Any ideas? Seems to be a problem with my setup since no other complaints.
Greg
Hi,
I am now working with the R-package for quite some time, and I have to say that R is much more fun with this package.
However, I still haven't found a workflow that completely satisfy me.
I started with sending the code directly to the R-app.
That works ok, but you have to switch between two programs, which sometimes can get cumbersome.
After that I tried the Rdaemon and executed my code directly in textmate.
At the beginning I was really impressed by these capabilities.
Unfortunately it gets a little bit problematic with bigger scripts, in my experience.
When I parse a lot of code (sometimes with some errors), I can't do anything anymore.
And I can't exit ongoing calculations so that I often end up force quitting textmate.
Executing code by parsing it to the Rdaemon in the background is also not really a solution.
It's difficult to get feedback on errors With a lot of code, you can't see when it is finished.
Also it seems like parsing a lot of code is in general error prone.
So for some lines of codes the Rdaemon is perfect, but for larger scripts it can get a little bit tricky.
For large scripts I think the bash-option ("Run Document / Selection in R") is really great.
So now, here is my question: ;)
Sending R-code within Textmate and then outputting it with the html-window within textmate is great
(especially with TM2 where you have an integrated output window).
However, every time I send code through "Run Document / Selection in R", it seems like I start a new R-session.
It would be great (at least for me) if R would remember all the code that was executed so far (just like the Rdaemon which just keeps running in the background).
So is it possible to send code to R and keep this session open?
for example, if I send:
x <- c(1,2,3)
with "Run Document / Selection in R"
and after that I send:
print(x)
I get:
Error in print(x) : object 'x' not found
It would be great, if the session would be persistent, so that I actually can execute code stepwise
(just like you can do that with the Rdaemon).
A big thanks for the great work on the R-package!
best,
martin
> On 22.02.2012, at 17:45, Allan Odgaard wrote:
>
>> I did give specific examples from another field. Perhaps you're not familiar with digital photography (it's a serious hobby of mine), but apps like Aperture and Lightroom have seriously improved the workflow of people who are serious about photography. Adding a layer of abstraction was key here.
>
> That might be, but editing photos is a very different thing than editing text. The former works well as thumbnails, the latter does not, the former (generally) have auto-generated (non-sensical) names, the latter does not. I fail to see how a parallel can be drawn here wrt. managing the files on disk.
There are differences, but there are also parallels: just like in Aperture, I have versions of files (managed in git repositories). Sometimes I want to recover old text from older versions and I need to use 3-4 apps to do that (TextMate, some graphical git utility, FileMerge and in some cases, the command line). If I could browse my git repository as in modern git clients such as Gitbox, that would cut one app out of the equation, for instance.
>> Projects were the reason why TextMate 1 did revolutionize my TeX workflow (I used to use TeXShop before which back then could only handle one file at a time) […]
>
> Are your latex files spread across different folders? If so, why?
Yes, they are spread across different folders.
Unless the project is very, very small, I split the tex project into many files. That is essential when collaborating on a project. Even though I know what git is and how to merge files, most of my co-workers do not and it is simply easier to agree by mail/phone/skype that they work on section A while I work on section B.
There are »global« configuration files I reuse. For instance, I have one single bibliography file, for otherwise I would have to maintain one for each project. If, for instance, I need to fix a typo in a reference, I need to edit only one file and then recompile all tex master files which use that reference. The same goes for general settings (packages, fonts, ), custom macros (e. g. >100 »global« custom math commands), etc.
The actual file layout depends very much on the coworkers I have. Some are very old school (think vi, not even vim) and still insist on manual line breaks in the code! They think that using UTF8 is an extravagance I have (hence, I appreciate the encoding settings in the .tmproperties file). Others are more flexible.
Hence, it was very nice for me to organize my files in a TextMate Project according to my needs and preferences without touching the file layout which is often determined by other people. I prefer putting the master tex file on top, then followed by the log, a virtual folder content which contains all section/chapter files + appendix, a virtual folder supplemental where I put »links« bibliography + settings files. Very often, I'd either work on content or presentation, and I can collapse whatever virtual folder I don't need to see. This reduces visual clutter. With virtual foldes I mean folders that exist only within the TextMate Project, but not on the file system. In that sense, TextMate 1 allows me to use my preferred layout and sorting independently of the actual file layout which I may not have control over. It goes without saying that renaming files so that the lexicographical order corresponds to the logical order is usually a big no-no in collaborative efforts.
Overall, a typical project consists of ~7 »local« files (~5 section files, an appendix and 1 master file), 4 »non-local« files (bibliography, 3 setting files) plus all the files xelatex, pdflatex, bibtex and biber generate. With local I mean they are located in the project's directory while non-local files reside somewhere else in the filesystem.
BTW, I also use the »filesystem mode« in TextMate 1, but only for lectures and stuff where I would frequently generate new files. There, it is just easier to have TextMate read the whole directory rather than add new files by hand to a project.
Part of the power of TextMate 1 is that I can use whichever paradigm (project or filesystem) I prefer in a given situation. I hope this gives you a better idea on how I work with projects.
>>> … ?comparisons added for effect? (like Windows Explorer and BBEdit).
>> I have not added these comparisons for effect.
> What purpose does it serve to state that a feature is “Windows Explorer-style”?
… because I remember that the Windows Explorer sorts files and folder this way, that's all. It was not intended as some underhanded remark to taint TextMate 2 by comparing it to Windows. You can browse files with both, so I think the comparison is apt. The analogy is even more clear with BBEdit: I'm asking for a feature that one popular browser has and TextMate doesn't.
>>> Overall your writings include too much rhetoric (like ?useless? and ?revolutionized?) and
>> This is not rhetoric, and I do not use these words lightly.
> What purpose does it serve to state that a feature is useless?
I wanted to tell you that I can't figure out how to use the feature and what it is supposed to do. I thought I could move frequently used files there, but dragging and dropping from one TextMate window to another didn't work, for instance. Adding links to the Favorites folder in the Finder and then opening them didn't occur to me. Even knowing that now, I think it'd be faster and easier to either drag & drop a whole folder from the Finder onto TextMate, to use the command line to open a folder or to use the File > Open Recent menu.
I apologize if you find »useless« is a little harsh and I should have used a less absolute formulation, but I can say Favorites is useless to me at this point and judging from the discussions on this mailing list, there are others who also didn't quite understand what they are supposed to do with Favorites.
In any case, it's a minor thing to me since I can always ignore the feature if I don't use it.
Max
Hi all, I noticed that the TM_COLUMNS environment variable from TM1 seems
to no longer be available in TM2. Is this just not implemented yet, or is
it gone for good?
-Daniel Grady
On 22.02.2012, at 02:45, textmate-request(a)lists.macromates.com wrote:
> Overall your writings include too much rhetoric (like ?useless? and ?revolutionized?) and
This is not rhetoric, and I do not use these words lightly.
I did give specific examples from another field. Perhaps you're not familiar with digital photography (it's a serious hobby of mine), but apps like Aperture and Lightroom have seriously improved the workflow of people who are serious about photography. Adding a layer of abstraction was key here.
Projects were the reason why TextMate 1 did revolutionize my TeX workflow (I used to use TeXShop before which back then could only handle one file at a time). Only later did I discover the usefulness and power of using several bundles in tandem. I am thankful to you for making this essential tool. I spend several hours each day writing and editing text, so these features are important.
> … ?comparisons added for effect? (like Windows Explorer and BBEdit).
I have not added these comparisons for effect.
> Pretty much the only ?problem? I acknowledge on that page (with 7-800 words) is that in TextMate 1 you can drag multiple folders to the TextMate icon and get one window with the files combined, where TextMate 2 will open multiple windows.
I have created these pages after you suggested to do so earlier this month. To me, they were meant to serve two purposes: first, give you feedback and second, to give users like me who need to adjust their workflow to the capabilities and limitations of TextMate 2. If you don't care for the suggestions, that's fine.
So I at least hope that other users contribute with helpful hints, tips and tricks.
Max
I'm running TM2 (9064) on OS X 10.7.2. Recently (mostly today) I've seen a lot of crashes when doing file system operations in the project window. Stuff like renaming a file, dragging it to another folder, sometimes closing a file. Interestingly, TM usually completes the operation ant THEN crashes. Strange behavior.
--Lewy
> I don’t follow this.
>
> Symbolic links are marked with an arrow. What are you asking for here?
I've tested a little further. It turns out that the version control badge most likely covers the little arrow which indicates that a file is a symlink or an alias. I can provide a screenshot if you want.
Max
This is what I get for not reading release notes. My alpha of TM 2 just auto-updated, and for some reason I lost the default soft wrapping of my text files. I can turn it on manually, but have to do so each time I return to an open tab. Is there a way to default this to on?
Drew
If TM2 crashes what would developer(s) like to see happen?
Send the automatic report to Apple, adding a contact address where they (who?) can ask for the crash log?
or
Report a crash on the mailing list including
subject in email like TM2 crashed while adding to favorites
statement that full log is available on request
the first lines of the log which give some basic info
the whole log as an attachment?
anything else?
or
both of the above.
I want to support test/debug work, but I'm not the one to fix stuff.
--Lewy
Max, how would like responses to the wiki? I don't want to edit the thing. My views differ from your. Email you? Or what?
--Lewy
====================
From: Max Lein <realoreocookie(a)gmx.de>
Subject: [TxMt] Projects in TM2 Wikipage
Date: February 21, 2012 12:51:10 AM AKST
To: textmate(a)lists.macromates.com
Reply-To: TextMate users <textmate(a)lists.macromates.com>
I have created a wiki page for Project Management under TM2, you can find it here:
http://wiki.macromates.com/Suggestions/ProjectManagementInTextMate2
I wrote Project Management rather than Projects since Allen does not intend to add projects to the 2.0 release (and quite possibly also not at a later date). So my intention was to collect
(1) suggestions on how to improve the file pane,
(2) how to replicate/adapt the workflow for people who have previously used projects and
(3) reasons why the filesystem-centric approach is not suited to meet their needs.
I'd be happy if other people contribute and add suggestions. Perhaps it can become a handy tool for Allen to collect useful feedback.