ack-grep throws <Invalid filter specification "tags"> - ack

When I search with ack-grep I get this error,
$ ack-grep SearchString
Invalid filter specification "tags" at /usr/bin/ack-grep line 126.
main::_compile_file_filter('HASH(0x18cad00)', 'ARRAY(0x19d8700)') called at /usr/bin/ack-grep line 917
main::main() called at /usr/bin/ack-grep line 75

Found answer for my own question.
I was trying to make ack-grep ignore "tags" file generated by ctags and added incorrect syntax to $HOME/.ackrc
Once I fixed it, the issue got resolved.
Incorrect syntax,
--ignore-file=tags
Correct syntax,
--ignore-file=is:tags

Related

What is the right parameter syntax for PyRAF biassec?

If I use epar ccdproc in imred >> ccdred >> ccdproc, I can put [261:280,1:1032] in biassec, which is in a old iraf code by my teacher:
ccdproc #list.all o//#list.all ccdtype='' overscan+ biassec=[261:280,1:1032]
But if I use the terminal, it will say:
SyntaxError: Too many positional parameters for task ccdproc
And if I put (261:280,1:1032), (261:280;1:1032) or (261:280 1:1032), it will also pop out SyntaxError. It seems that pyraf syntax is slightly different from iraf. What is the right parameter syntax?
Solved, "[261:280,1:1032]".
Add quotation marks
ccdproc #list.all o//#list.all ccdtype='' overscan+ biassec="[261:280,1:1032]"

Error in source() unexpected numeric constant

when I write an R script in a test.R file
nb <- 22
paste("Etudions le nombre: ",nb)
paste("Le logarithme népérien de ce nombre est: ", log(nb))
paste("La racine carrée de ce nombre est: ", sqrt(nb))
paste("Le cosinus de ce nombre est: ", cos(nb))
paste("Si on ajoute 3 au nombre ", nb, " on obtient: ", nb + 3)
q("ask")
I executed using :
source("/Users/shous/Desktop/Master2.0/LanguageR/test.R")
error message :
Error in source("/Users/shous/Desktop/Master2.0/LanguageR/test.R") :
/Users/shous/Desktop/Master2.0/LanguageR/test.R:1:9: unexpected numeric constant
1: nb <- 22
It can be encoding problem: unexpected numeric constant 1: nb <- 22
I guess you don't want to have this character Â.Try to change file encoding or rewrite problematic line (not copy paste).
unexpected numeric constant 1: nb <- 22
This is R telling you that it found the line
nb <- 22
and that isn't valid syntax. You can duplicate this simply on the command line with something like a = a 22, which also isn't valid syntax. You need to correct that line of code - I don't know what you want it to be, perhaps there is a missing line break, or perhaps it should be  + 22 or Â[22], etc...
The line that produces the error does not occur in the code you show, perhaps you should make sure you are running the right file.

Firebase child fails, path exists

I am trying to reference a location in my Firebase database, but .child() fails with the following error:
Uncaught Error: Firebase.child failed: First argument was an invalid path: "https://wooperate.firebaseio.com/comments-to/-KTLOwq-WK4VwMhG7Zz8/-KTPmJJtmZQa7ldWILks". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]"
Not only is it a valid path, but it also contains data!
Am I thick or is this just a bug in Firebase?
Edit: This is the code that triggers the error:
FIREBASE_REF.child('comments-to').child(post.id).child(comment.id);
Explanation of variables:
FIREBASE_REF: root referance to my firebase database
post.id: Firebase generated id
comment.id: Firebase generated id Full Firebase reference to the comment ― This was the error :(
The following does not trigger any errors:
FIREBASE_REF.child('comments-to').child(post.id);
As stated above, the path to the comment exists and contains data.
Maybe your comment.id is empty or contains ".", "#", "$", "[", or "]" as said in logcat. Sometimes using - and nodes starting with Capital Letter also cause this problem. It could be with comments-to try using commentsTo instead.
Yes, I'm thick.
I misunderstood the error message. Of course the illegal argument was the argument provided to child(): i.e. comment.id, and not the (url to) the reference resulting from the call .child(comment.id).
The source of the error was that I used snap.ref rather than snap.val when I set the comment.id.

ignoring jshint Unnecessary semicolon error

I am using jshint which gives me the error "Unnecessary semicolon".
I do not control the file in question and I would like to ignore this error.
I am not able to find any such option on the jshint doc page
Turns out you can ignore any error message by setting an option for specific error numbers:
"-W032": true

TextMate's default CSS bundle throws an error when trying to use code complete

I like code complete for CSS because sometimes I forget what values are available for a property. Unfortunately it seems that TextMate's default CSS bundle errors when trying to use it's implementation of Code Complete.
The error it generates is...
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/codecompletion.rb:319:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of filemap' for nil:NilClass (NoMethodError)
from /tmp/temp_textmate.U2Q62Q:11
...any help would be greatly appreciated.
I've Google'd everywhere and can't find an actual solution!
M.
Have you redownloaded the CSS bundle?
Did you try reinstalling Textmate (redownloading the .app and dragging it. It shouldn't remove your previous settings.)

Resources