I tried to do this using:
{{ HTML::style('css/css.css'); }}
But I get error:
Parse error: syntax error, unexpected ';', expecting ',' or ')'
Maybe I should connect extension?
Remove the semicolon and it should work.
Related
in OSX install error,
brew install coreutils
Error: coreutils: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:73: syntax error, unexpected << def caveats; <<~EOS
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:77: syntax error, unexpected tIDENTIFIER, expecting keyword_end
can add a "gnubin" directory to your PATH from your bashrc like:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:77: syntax error, unexpected ':', expecting keyword_end
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:79: dynamic constant assignment
PATH="#{opt_libexec}/gnubin:$PATH"
^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:81: dynamic constant assignment
Additionally, you can access their man pag...
^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:81: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
Additionally, you can access their man pages with ...
^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:82: syntax error, unexpected tIDENTIFIER, expecting keyword_end
the "gnuman" directory to your MANPATH from your bashrc as well:
^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:82: syntax error, unexpected ':', expecting keyword_end
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:84: dynamic constant assignment
MANPATH="#{opt_libexec}/gnuman:$MANPATH"`
What is the reason?
Please help me thanks
There is a closed issue on GitHub about this: https://github.com/Homebrew/brew/issues/3353
According to that discussion, this resolves the error:
rm -rf /usr/local/Homebrew/.git
brew update
brew config
I have not tested this myself.
Parse error: syntax error, unexpected 'Sns_Avaz_Model_Observer'
(T_STRING) in
/home/ganyobiclothing/public_html/app/code/local/Sns/Avaz/Model/Observer.php
on line 1
If this is the sns-avaz-responsive-magento-theme you should check the following page: http://themeforest.net/item/sns-avaz-responsive-magento-theme/11951628/comments
Hi,
This issue only happen with some hosting/server – it compress content file
We’ve fixed this issue on v1.0.1. Please try go to file: >/app/code/local/Sns/Avaz/Model/Observer.php open it and add space after re-save.
Ex: "<?php" ==> "<?php "
P/S: See my screenshot: http://take.ms/v8G03 and If your issue still … please
Thanks!
Source: http://themeforest.net/item/sns-avaz-responsive-magento-theme/11951628/comments
Good luck!
Parse error: syntax error, unexpected 'Sns_Avaz_Model_Observer' (T_STRING) in /home/ganyobiclothing/public_html/app/code/local/Sns/Avaz/Model/Observer.php on line 1
As its saying on line 1 so probably there is some white space or special character thats resulting in this.
I am trying to run ctioga2 and I keep getting the same error:
bash-4.1$ ctioga2
/usr/bin/ctioga2:49:in `require': /usr/lib/ruby/site_ruby/1.8/ctioga2/plotmaker.rb:646: syntax error, unexpected ')' (SyntaxError)
) do |plotmaker, size, options|
^
/usr/lib/ruby/site_ruby/1.8/ctioga2/plotmaker.rb:646: syntax error, unexpected '|', expecting '='
/usr/lib/ruby/site_ruby/1.8/ctioga2/plotmaker.rb:867: syntax error, unexpected kEND, expecting $end
from /usr/bin/ctioga2:49
Do you guys know why this happens?
Not familiar with the code base exactly of tioga2. Based on the error message it was expecting an assignment (=) and ran into a | and )
This is a ruby-1.8 specific bug. It is now fixed in the git repository (commit: be1cc4b).
But stackoverflow is not the place to file bug reports for programs, you're lucky I stumbled upon this one.
For ctioga2, please use either the bug tracker at sourceforge: https://sourceforge.net/p/ctioga2/tickets/ or the one at github if you prefer: https://github.com/fourmond/ctioga2/issues/.
I'm super new to rails and coding,
I have my seed.rb file and the first line is
Food.create! ( name: "Avocado")
When I try to rake db:seed, I get this error:
SyntaxError: /Users/meganryll/Desktop/foodninja/db/seeds.rb:8: syntax error, unexpected tLABEL, expecting ')'
Food.create! ( name: "Avocado")
Could anyone tell me what is wrong with that syntax?
Thanks
Ruby does not like spaces between the method name and the argument parentheses.
Food.create!( name: "Avocado")
I regularly use ⌃⇧L in TextMate to wrap selection as a link. When I used it this morning, i got...
/tmp/temp_textmate.RRepHN:13: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
/tmp/temp_textmate.RRepHN:15: syntax error, unexpected keyword_when, expecting keyword_end
when %r{http://www.(amazon.(?:com...
^
/tmp/temp_textmate.RRepHN:15: syntax error, unexpected ':', expecting keyword_end
/tmp/temp_textmate.RRepHN:17: syntax error, unexpected keyword_when, expecting keyword_end
when %r{\A[a-zA-Z][a-zA-Z0-9.+-]*://.*\z}:
^
/tmp/temp_textmate.RRepHN:17: syntax error, unexpected ':', expecting keyword_end
/tmp/temp_textmate.RRepHN:19: syntax error, unexpected keyword_when, expecting keyword_end
when %r{\A(www\..*|.*\.(com|uk|net|org|info))\z}:
^
/tmp/temp_textmate.RRepHN:19: syntax error, unexpected ':', expecting keyword_end
/tmp/temp_textmate.RRepHN:21: syntax error, unexpected keyword_when, expecting keyword_end
when %r{\A.*\.(com|uk|net|org|info)\z}:
^
/tmp/temp_textmate.RRepHN:21: syntax error, unexpected ':', expecting keyword_end
/tmp/temp_textmate.RRepHN:23: syntax error, unexpected keyword_when, expecting keyword_end
when %r{\A\S+\z}:
^
/tmp/temp_textmate.RRepHN:23: syntax error, unexpected ':', expecting keyword_end
/tmp/temp_textmate.RRepHN:27: warning: else without rescue is useless
/tmp/temp_textmate.RRepHN:28: syntax error, unexpected keyword_end, expecting
I can't think of anything specific I might have done to cause the issue.
I have reloaded bundles and reinstalled TextMate.
I also tried using the code at http://svn.textmate.org/trunk/Bundles/Hyperlink%20Helper.tmbundle/Commands/Wrap%20Selection%20as%20Link.tmCommand.
None of them fixed the problem.
Anyone have any ideas?!
Thanks.
There shouldn't be a colon at the when ... line. You can edit the snippet and remove it in the Bundle Editor.