Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Evaluation Does Not Work #13

Closed
denysonique opened this issue Apr 15, 2012 · 11 comments
Closed

- Evaluation Does Not Work #13

denysonique opened this issue Apr 15, 2012 · 11 comments

Comments

@denysonique
Copy link

Code:

- if true
  a hey                     

Result:

Generator supports only core expressions - found [:html, :tag, "a", [:html, :attrs], [:multi, [:newline], [:html, :tag, "hey", [:html, :attrs], [:multi, [:newline]]]]]
  (in /project_path/app/assets/templates/test.jst.skim)
@yury
Copy link
Collaborator

yury commented Apr 16, 2012

Can you gist your Gemfile?

@denysonique
Copy link
Author

@melvynhills
Copy link

I have the same problem.
Are you sure your tests don't fail?
What seems to work however is when nested content is static:

- if true
  | foo

@yury
Copy link
Collaborator

yury commented Apr 21, 2012

Still can't reproduce. Even with your Gemfile and Gemfile.lock

@yury
Copy link
Collaborator

yury commented Apr 21, 2012

Can you try to put gem 'skim' before gem 'slim' in your Gemfile?

@melvynhills
Copy link

That made it for me!
How come? (not a Ruby expert)
Thanks a lot.

@yury
Copy link
Collaborator

yury commented Apr 23, 2012

@melvynhills What version of bundler do you have?

Can you update to latest and try to put skim after slim gem in Gemfile?

@jfirebaugh
Copy link
Collaborator

So is this dependent on which order you require skim and slim? That would definitely be a bug.

@melvynhills
Copy link

I'm using 1.1.3, the latest available from RubyGems.
It was failing only with

gem 'skim', '~> 0.8.2'
gem 'slim', '~> 1.2.0'

With '>=' and without version number, it works fine.
Thanks guys!

@v-yarotsky
Copy link

I have the same issue, though I wasn't able to fix it with requires.
I've got the following code, Gemfile and Gemfile.lock: https://gist.github.com/3470575
But it throws Uncaught Error: Temple::InvalidExpression: Generator supports only core expressions - found [:escape, true, [:dynamic, "t"]] with the following snippet:

select name="someType"
  - for t in ["foo", "bar"]
    | #{t}

@jfirebaugh jfirebaugh reopened this Aug 27, 2012
@jfirebaugh
Copy link
Collaborator

Thanks, I was able to reproduce the issue and should have a fix soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants