Hi all,
I was wondering what php-debug workflow you use in combination with our
favorite texteditor TextMate.
I do not want to use a massive and expensive IDE (like phpStorm), just TM.
Now I've setup Xdebug (MAMP-PRO), with xdebug.file_link_format set in
php.ini. So on a error in the browser I can click on the link, and the
related file is opening in TM on the good position!
I did not found any TM-bundles for Xdebug in order to set breakpoints (via
markers?).
Maybe a suggestion is Codebug (http://codebugapp.com). But there is no
integration with TM like they have for Sublime Text
(http://codebugapp.com/using-codebug-sublime-text/ and
https://nateofnine.com/2014/05/30/sublime-text-xdebug-client/)
Do you have better suggestions for debugging PHP using TM and Xdebug?
Have a nice weekend,
Feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-tp2994…
Sent from the textmate users mailing list archive at Nabble.com.
I've accidentally deleted the R bundle (which contained several of my own custom commands). Is it possible to reinstall bundle & my own custom commands?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
In the File Browser sidebar when I open a "project" (a directory), TextMate
always shows the same state where some directories are expanded (to
multiple levels) and others are not. Is there any rhyme or reason about why
TextMate remembers this particular state?
It's a bother to have to close things up each time I open a project.
I would even be happy with the File Browser starting with no directories
open.
I've tried doing
defaults write com.macromates.TextMate.preview disableFolderStateRestore
-bool YES
but that seems to have no effect.
I've tried opening or closing some "tabs" (open files) and then closing the
project. That has no effect.
I'm on Mac OS X 10.11.4. TextMate version 2.0-beta.9.
BTW, after recently upgrading to the above version of TextMate (from
previous beta version), the problem was solved for a while, but now it is
happening again.
Thanks,
--ErikN
How does one go about debugging values and the like in TextMate?I’m trying to iterate through rows and see the values associated with my iteration. Is there a special output area that code prints to, like a console or something?
Hi,
seems odd, but I really do not know what marks are and how to set them (and
how many)? It seems related to the keybinding setMark.
In the latest release version 2.0-beta.9.1 the jump to next/previous mark
shortcuts have been changed to F3/⇧F3. So I was wondering how to set them ;)
and what is the difference with bookmarks?
regards,
feek
--
View this message in context: http://textmate.1073791.n5.nabble.com/What-are-marks-an-how-to-set-tp29938.…
Sent from the textmate users mailing list archive at Nabble.com.
Ah, thank you very much for that input. I will resend there.
On 4/18/16, 3:21 PM, "Jacob Carlborg" <textmate-dev-bounces+jjbernitt=gmail.com(a)lists.macromates.com on behalf of doob(a)me.com> wrote:
>On 2016-04-18 12:12, Joshua Bernitt wrote:
>> Hey all!
>>
>> I think this is the correct mailing list for this question;
>
>I recommend the general mailing list instead. There's barely any traffic
>at all in this mailing list.
>
>--
>/Jacob Carlborg
>
>_______________________________________________
>textmate-dev mailing list
>textmate-dev(a)lists.macromates.com
>http://lists.macromates.com/listinfo/textmate-dev
Hello
I use a lot of variables with @ in their names like
\rput@temp but a double-click on \rput@temp selects only
rput or temp. With TM1 I had the possibilities to
change but how can I do with TM2?
Thanks,
Best Regards,
Alain
Hi everyone,
I want to fold the following 'code'
# Section 1 ----
for (i in 1:30) {
y = i+1
}
# Section 2 ----
# a comment
x = y + 1
y = y^2
if (foo) {
a = b
for (j in 1:3) {
b = b + 1
}
}
# Section 3 ----
b = c
to fold in the following way:
- "sections" in the code are defined by #something----, everything
between two section titles should fold when the folding marker of the
title line is clicked
- blocks are defined with { (and a few other markers) and should fold
as expected.
With the following rules I can almost make it work
{
foldingStartMarker = '\{';
foldingStopMarker = '\}';
foldingIndentedBlockStart = '^#(.*?)\-{4,}';
foldingIndentedBlockIgnore = '^(?!#(.*?)\-{4,})';
}
the blocks fold, respecting nesting, the sections fold up to the next
section, *except* for section 1; there, the `for` block is not
indented and is at the same level as the section, therefore folding at
section 1 only folds until the start of the for block, not all the way
down to section 2.
It looks like I am searching for a way to the `foldingIndentedBlock`
rule to take precedence over the `foldingStartMarker` rule. Is it
possible?
To make it easy to take a stab at it, I created a new bundle and a
test file (the language is "testing") which you can get there:
https://dl.dropboxusercontent.com/u/1047321/Test.zip
PS: having comments which define sections in the code seems like a
general use case. The syntax is in that particular example is defined
in the R language by the RStudio IDE. This IDE is becoming common
enough that I am receiving code formatted this way a lot.
Thanks in advance for your help!
Good day,
I am interested in assisting with TextMate development. I really like the editor, and want to contribute to make it better! I want to help add newer and more modern actions to it similar to Sublime Text. I was wondering if you had any links for getting started? I’ve downloaded the source code and set up a dev environment and can compile it successfully. I’m reading through the source code and testing things; I was just wondering if you have any information on the Oak framework and the general layout of the application structure. Thank you for your help!
--
Josh Bernitt
Sent with Airmail
I was thinking that the context menu that shows up when you press
keyboard shortcut for a bundle command that is overloaded (multiple
commands for a single keyboard shortcut) can be quite long, especially
for the git commands.
What if we (I or someone) adds a text input field to the menu which
filters the menu items. And example of this can be found in Xcode [1].
Would that be a good idea?
[1] http://blog.manbolo.com/2012/05/24/filtered1.png
--
/Jacob Carlborg
I've been working for quite a while with trying to rewrite the grammar
for the D bundle to be more accurate to the official grammar. The
grammar for D is quite complex, that in the combination with the syntax
for grammars in TextMate doesn't allow any good ways to reuse or compose
rules making it very difficult to describe a grammar. I know it's
possible to reuse rules with the repository, but that seems to be mostly
useful when matching with "begin" and "end".
For example, this is the grammar for a function declaration from the
official D grammar:
FuncDeclaration:
StorageClasses(opt) BasicType FuncDeclarator FunctionBody
AutoFuncDeclaration
AutoFuncDeclaration:
StorageClasses Identifier FuncDeclaratorSuffix FunctionBody
FuncDeclarator:
BasicType2(opt) Identifier FuncDeclaratorSuffix
FuncDeclaratorSuffix:
Parameters MemberFunctionAttributes(opt)
TemplateParameters Parameters MemberFunctionAttributes(opt)
Constraint(opt)
Each of these parts/rules of the grammar consists of several other
rules, many levels deep.
It would be really nice if the TextMate grammar syntax allowed, somehow,
to define rules, or parts of a rule, which the other rules can be
composed of, similar to above.
Or is there a way to already do something similar with the current syntax?
--
/Jacob Carlborg
Hi,
I am a PhD student in final year and using Latex in TextMate for last 5-6
months to write my work, and I really like Textmate. I recently graduated
to use Sweave to include R elements into my Latex document.
However, I am unable to setup Sweave to compile and I get error : pdf file
not written to disk. I have tried advice on
http://article.gmane.org/gmane.comp.lang.r.mac/3953/match=sweave+pdf+file+n…
but no luck.
I am using Textmate 2.0-beta.9, with Texlive 2015 distribution and R 3.2.3
Please can anyone guide me to setup Sweave for Textmate. Yes, I have
installed Sweave Bundle.
Thank you.
Sri
I’m trying to integrate ternjs [0] into Textmate and am running into problems:
* if I use #!/usr/bin/env ruby18 -wKU I can’t
require(‘json’)
in my script, it gives me a loadError
* if I use #!/usr/bin/env ruby
then the lib/ui.rb message dialog won’t work because it utilises an old osx-plist function [1].
I even managed to recompile the old plist thing and made it work, but it won’t work when forked [2] with an error
dyld: lazy symbol binding failed: Symbol not found: _rb_gc_writebarrier_unprotect
Expected in: flat namespace
Can anyone give me pointers into a direction?
Textmate Bundle development is so frustrating :(
Thanks
Fabian
[0] ternjs.net/doc/manual.html
[1] https://stackoverflow.com/questions/6869463/in-textmate-i-cant-create-parti…
[2] https://github.com/textmate/bundle-support.tmbundle/blob/master/Support/sha…
Hi,
i would like to display popup / hints / overlays at certain position in code, so I can show the error where the occur.
Is that somehow possible with the current plugin API? Maybe with dialog2 and custom nibs?
Thank you
Fabian
Hello Everyone,
This has probably been discussed before when Apple's "El Capitan" came
out. I have only recently upgraded to this OS. I am using Textmate for
writing Latex documents. With the upgrade I loste the functionality of
having .sty-files stored in a dedicated folders (texmf in pre-capitan
times). Where do I put these files now? and more importantly: How to I
tell Textmate (or the Latex Bundle) where to find them?
Best,
Christian
I generally hate Microsoft Word, but I like the way it handles comments i.e. comments are in boxes in the right margin, separated from text. Is it possible to have TextMate handle comments in the same way i.e. hidden or somehow separated from text?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
When I go to Bundles > R Console (Rdaemon) > General Control > Start Rdaemon, the blue line goes right to the end put Rdaemon doesn't start up. Why is Rdaemon not starting up?
Ross Ahmed
Ecologist
--
07875533906
Twitter: @RossAhmed
LinkedIn: Ross Ahmed
Hi,
Today I wanted to try a new theme and noticed that the theme menu only
lists the theme's name, so I had to try them all, which is expected.
My issue is that I already knew I wanted a light theme, because I like
them better. I just asked around and at least with the small sample
of people around me, they already know if they prefer light themes or
dark themes.
It looks like themes are already identified as light or dark via their
Semantic Class, so my suggestion is to include this distinction in the
UI somehow. I know this is not something the user will do frequently,
but I think this improvement will cut the time to select a new theme
roughly by half.
--
:: dip
--
Hi all,
I've some strange issues with a shell script for a bundle command. Caused by
a "*" (Asterisk) at the end of the line.
Description:
In a folder I've the following files:
test.md
AAA-some-text.md
The content of test.md is:
In my bundle script I do a lot with the file. One of the things is that I
want to grep the first Header. In this case "# A header with star AAA*".
The shell code is (only the code causing the issue):
#!/bin/bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && .
"${TM_SUPPORT_PATH}/lib/bash_init.sh"
cd ~/Desktop
contenttitle=`grep -m 1 '^#\{1\}' test.md`
echo $contenttitle
When running "grep -m 1 '^#\{1\}' test.md" in Terminal I get as expected the
first header "# A header with star AAA*", but running the script in TextMate
I get "# A header with star AAA-some-text.md". Really strange..... there is
a replacement of "AAA*" by the filename "AAA-some-text.md" (from the current
folder). And even when more files with "AAA" exist, they also come in the
result of the script. It seems like there is a listing of the directory
performed like "ls AAA*".
Is this a TextMate issue? Or do I something wrong?
Regards,
Feek
NB1: when escaping the * in the markdown file (like \*), the script is
performed right.
NB2: when the AAA* text is in the middle of the line (some text on the
right), the error persists.
--
View this message in context: http://textmate.1073791.n5.nabble.com/Strange-issues-with-a-shell-script-fo…
Sent from the textmate users mailing list archive at Nabble.com.
I’ve never gotten the watch command to work in the LaTeX bundle, and I’d like to see if I can’t troubleshoot it. I’m running OS 10.11.3 and TextMate 2 beta .9. I typeset through the ps->dvips route. When I run the Watch Document command I get this error:
The command `osascript -e tell application "XQuartz" to launch' failed (error code 1).
Can someone point me to the next step?
Thanks,
Kyle