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

the plugin can not support the remdine 1.4.X #19

Open
archonwang opened this issue Apr 25, 2012 · 8 comments
Open

the plugin can not support the remdine 1.4.X #19

archonwang opened this issue Apr 25, 2012 · 8 comments

Comments

@archonwang
Copy link

when I use the plugin to preview the code ,it shows erro.

ArgumentError in Repositories#entry

Showing vendor/plugins/redmine_ultraviolet/app/views/common/_file.rhtml where line #15 raised:

Output for xhtml is not yet implemented

Extracted source (around line #15):

12: </style>
13:
14:


15: <%= syntax_highlight( filename, Redmine::CodesetUtil.to_utf8_by_setting(content) ) %>
16:

17:
18: <% content_for :header_tags do %>

Trace of template inclusion: app/views/repositories/entry.html.erb

RAILS_ROOT: C:/Rails_Prj/Redmine14

the information is :

///////////////////////////////////////////////////////////
Processing RepositoriesController#entry (for 127.0.0.1 at 2012-04-25 15:16:25) [
GET]
Parameters: {"action"=>"entry", "controller"=>"repositories", "id"=>"demoproject", "path"=>["trunk", "Google_APP_SN.txt"], "rev"=>"2"}
Rendering template within layouts/base
Rendering repositories/entry

ActionView::TemplateError (Output for xhtml is not yet implemented) on line #15 of vendor/plugins/redmine_ultraviolet/app/views/common/_file.rhtml:
12: </style>
13:
14:


15: <%= syntax_highlight( filename, Redmine::CodesetUtil.to_utf8_by_setting(content) ) %>
16:

17:
18: <% content_for :header_tags do %>

ultraviolet (0.10.2) lib/uv.rb:69:in `parse'
vendor/plugins/redmine_ultraviolet/app/views/common/_file.rhtml:15:in `_run_

rhtml_vendor47plugins47redmine_ultraviolet47app47views47common47_file46rhtml_locals_content_file_filename_object'
app/views/repositories/entry.html.erb:11

Rendering rescues/layout (internal_server_error)
///////////////////////////////////////////////////////

@epitron
Copy link
Owner

epitron commented Apr 25, 2012

Hmmm.. not sure why it says it doesn't support xhtml. That's the default output format for ultraviolet. Maybe you could try changing it to "html"? Here's how...

Edit redmine_ultraviolet/lib/ultraviolet_syntax_patch.rb, and change line 101, which reads:

return Uv.parse(content, "xhtml", syntax_name, true, @uv_theme_name)

to:

return Uv.parse(content, "html", syntax_name, true, @uv_theme_name)

@archonwang
Copy link
Author

maybe in bundle, it could not support xhtml? I am not sure. anyone have any idea?

@epitron
Copy link
Owner

epitron commented Apr 25, 2012

I believe I am the only one here. Also, this is an Ultraviolet error.

Which gem are you using? 'uv', or 'ultraviolet'?

@archonwang
Copy link
Author

I used
ultraviolet (0.10.2)

@epitron
Copy link
Owner

epitron commented Apr 26, 2012

Try 'uv'.

@archonwang
Copy link
Author

I not sure .for my ruby is 1.8.7

uv need ruby 1.9 +

@nickcaballero
Copy link

I had this same problem on 1.4.4. I installed ultraviolet with gem install ultraviolet, added a Gemfile to the plugin with gem "ultraviolet" and then bundle install --local. Works.

@nickcaballero
Copy link

The Gemfile was actually added in most of the forks. Maybe pull?

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

3 participants