Hi,
I have a .tm_properties file in the root of my working directory, but it is not being read. Font and size is just being ignored. Anyone else had this?
Several people are having this issue.
On Sat, Dec 24, 2011 at 4:09 PM, tomdringer tom@tomdringer.com wrote:
Hi,
I have a .tm_properties file in the root of my working directory, but it is not being read. Font and size is just being ignored. Anyone else had this? -- View this message in context: http://old.nabble.com/Nothing-is-read-from-the-tm_properties-file-tp33034546... Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 26 Dec 2011, at 16:07, Reaves, Timothy wrote:
On Sat, Dec 24, 2011 at 4:09 PM, tomdringer tom@tomdringer.com wrote:
I have a .tm_properties file in the root of my working directory, but it is not being read. Font and size is just being ignored. Anyone else had this?
Several people are having this issue.
I am unaware of users who can’t get it working, but some problems that users may run into:
1. If there is a syntax error in the file, it will be ignored. If this is the case, there will be errors in Console. The parser is presently very fragile, e.g. ‘=’ must be surrounded by spaces, strings with special characters must be quoted, etc.
2. Not all settings can be applied to file types (i.e. [ *.foo ]). This is just a temporary limitation which will likely be lifted in an upcoming build.
3. A setting for a scope (e.g. [ text.html ]) has higher priority than one for a file extension (e.g. [ *.html ]) regardless of where in the hierarchy the .tm_properties file is placed — this has been a gotcha since the default .tm_properties under TextMate.app enables soft wrap for the text scope.
On 27 Dec 2011, at 14:26, Allan Odgaard wrote:
On 26 Dec 2011, at 16:07, Reaves, Timothy wrote:
Several people are having this issue.
I am unaware of users who can’t get it working […]
To clarify, I mean that when we have been troubleshooting issues it has been one of those I mentioned, not fuzzy logic in TextMate that makes it not work for random users.
There have been several posts about this not working for some users. One user specifically mentioned fonts, which is at least one issue I'm having. My entire .tm_properties file is: fontName = "Monaco" fontSize = 15
In console, this is logged: 12/27/11 10:37:30.919 AM [0x0-0x108108].com.macromates.TextMate.preview: *** couldn’t resolve #entities 12/27/11 10:37:30.920 AM [0x0-0x108108].com.macromates.TextMate.preview: *** couldn’t resolve #embedded-code 12/27/11 10:37:30.922 AM [0x0-0x108108].com.macromates.TextMate.preview: failed to resolve #entities
Those two lines seem to be correct, yet they have no effect.
On Tue, Dec 27, 2011 at 8:30 AM, Allan Odgaard mailinglist@textmate.orgwrote:
On 27 Dec 2011, at 14:26, Allan Odgaard wrote:
On 26 Dec 2011, at 16:07, Reaves, Timothy wrote:
Several people are having this issue.
I am unaware of users who can’t get it working […]
To clarify, I mean that when we have been troubleshooting issues it has been one of those I mentioned, not fuzzy logic in TextMate that makes it not work for random users.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
In my file i just have the font settings and my git path. Syntax seems ok. Git is ignored too, but i just change the path in the variables settings.
treaves wrote:
There have been several posts about this not working for some users. One user specifically mentioned fonts, which is at least one issue I'm having. My entire .tm_properties file is: fontName = "Monaco" fontSize = 15
In console, this is logged: 12/27/11 10:37:30.919 AM [0x0-0x108108].com.macromates.TextMate.preview: *** couldn’t resolve #entities 12/27/11 10:37:30.920 AM [0x0-0x108108].com.macromates.TextMate.preview: *** couldn’t resolve #embedded-code 12/27/11 10:37:30.922 AM [0x0-0x108108].com.macromates.TextMate.preview: failed to resolve #entities
Those two lines seem to be correct, yet they have no effect.
On Tue, Dec 27, 2011 at 8:30 AM, Allan Odgaard mailinglist@textmate.orgwrote:
On 27 Dec 2011, at 14:26, Allan Odgaard wrote:
On 26 Dec 2011, at 16:07, Reaves, Timothy wrote:
Several people are having this issue.
I am unaware of users who can’t get it working […]
To clarify, I mean that when we have been troubleshooting issues it has been one of those I mentioned, not fuzzy logic in TextMate that makes it not work for random users.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 27 Dec 2011, at 16:39, Reaves, Timothy wrote:
My entire .tm_properties file is: fontName = "Monaco" fontSize = 15
Try add this to ~/.tm_properties:
FONT_TEST = "$fontName/$fontSize"
Then relaunch TM and press ⌃R on a line containing: echo "$FONT_TEST"
This will show if your file is actually read and parsed correctly.
For the records though, one can (also) set the font via View → Show Fonts.
Above applies to tomdringer as well.
tomdringer wrote:
Hi,
I have a .tm_properties file in the root of my working directory, but it is not being read. Font and size is just being ignored. Anyone else had this?
Hi,
Sorry, bit of a basic question - Which file do I echo FONT_TEST ? I've tried adding it to the properties file and also to my index.php file and tried ctrl+R on the line it is written and it just adds a new line with a slash.
Thanks.
Thanks.
On Dec 28, 2011, at 4:37 AM, tomdringer wrote:
Which file do I echo FONT_TEST ?
Any file in which you expect the .tm_properties file to apply, but it isn’t.
You just need to type it and hit ⌃R to see what happens. It doesn’t need to be saved.
On 28 Dec 2011, at 10:37, tomdringer wrote:
Sorry, bit of a basic question - Which file do I echo FONT_TEST ? I've tried adding it to the properties file and also to my index.php file and tried ctrl+R on the line it is written and it just adds a new line with a slash.
Which file doesn’t matter, just don’t save it.
Control-R simply executes the current line. Try e.g. ‘date’ with ⌃R to test it.
Variables you set via .tm_properties are available for command executions, so the idea being that you set a variable in ~/.tm_properties and then check if it is actually available for your command.
If not, TM is not parsing your ~/.tm_properties as expected. If however it is available, but the settings in the .tm_properties have no effect, the issue is elsewhere.
So my suggestion was to aid in troubleshooting your issue.
Allan Odgaard-4 wrote:
On 28 Dec 2011, at 10:37, tomdringer wrote:
Sorry, bit of a basic question - Which file do I echo FONT_TEST ? I've tried adding it to the properties file and also to my index.php file and tried ctrl+R on the line it is written and it just adds a new line with a slash.
Which file doesn’t matter, just don’t save it.
Control-R simply executes the current line. Try e.g. ‘date’ with ⌃R to test it.
Variables you set via .tm_properties are available for command executions, so the idea being that you set a variable in ~/.tm_properties and then check if it is actually available for your command.
If not, TM is not parsing your ~/.tm_properties as expected. If however it is available, but the settings in the .tm_properties have no effect, the issue is elsewhere.
So my suggestion was to aid in troubleshooting your issue.
Thanks. When i try echoing anything in the properties file I get:
Failure running “Execute Line / Selection”. /bin/bash: line 1: fontSize: command not found
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate