Project

General

Profile

Redmine 2.5.2 - No Option for Markdown Formatting

Added by Anonymous over 9 years ago

I see Markdown support was announced for version 2.5.0, however I don't have this as an option in my Bitnami 2.5.2-1 stack.. In the news article it does say it's experimental though, so do I need to do anything special to enable the option?

My test app environment is as follows:

Environment:
  Redmine version                2.5.2.stable
  Ruby version                   2.0.0-p481 (2014-05-08) [i386-mingw32]
  Rails version                  3.2.19
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            1.8.4
  Filesystem                     
Redmine plugins:
  collapsed_journals             0.0.2
  issue_hot_buttons              0.4.4
  redmine_default_assign         0.4
  redmine_didyoumean             1.2.0
  redmine_issue_checklist        2.0.5
  redmine_knowledgebase          3.0.4
  redmine_lightbox               0.0.1
  redmine_people                 0.1.6
  redmine_sidebar_toc            0.0.1
  redmine_stealth                0.6.1-DEV
  redmine_wiki_extensions        0.6.4

Replies (10)

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Anonymous over 9 years ago

Hmmm... Interesting. I do get an option labelled "Markdown (experimental)" in the formatting options with a fresh install of 2.5.2 (tested on dedicated machine at work). I'll check a few things in my VM at home and see if I can work out what's going on here; doesn't seem like a bug though, probably just some bad environment configuration on my part.

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Anonymous over 9 years ago

I'm still battling with this issue, I get the option with a fresh install, but once I restore and migrate my DB from 2.4.1, the option disappears. This makes me suspect there's something structure related with the migration that's missing when compared to creating a fresh DB in the new version..

Is there perhaps an easy way to import my custom data into a fresh database, rather than trying to migrate an old one? Or would I need to manually copy the contents of all the tables? I'm at a bit of a loss here.

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Toshi MARUYAMA over 9 years ago

You forgot to run "bundle update".

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Anonymous over 9 years ago

Nope, just tried that on my live server and it made no difference. Somehow it's been working on my backup server for a while with a copy of my live database, but I'm really not sure how.. Surely if it was a gem issue then simply changing databases wouldn't cause an issue like this?

I've just hit the end of my working day though, so I'll look at this tomorrow.

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Mischa The Evil over 9 years ago

Andre, can you try applying the attached patch, restart your stack and see on http://host.network.tld/admin/info whether or not the Redcarpet library is loaded correctly and available for use to Redmine?

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Anonymous over 9 years ago

Thanks Mischa, from your suggestion, it seems the Redcarpet gem is not being loaded.

I do have Redcarpet installed, bundle list shows redcarpet (2.3.0), bundle show redcarpet shows the path of D:/BitNami/redmine-2.5.2-1/ruby/lib/ruby/gems/2.0.0/gems/redcarpet-2.3.0-x86-mingw32, but the entry added to the info screen says it's not available.

[edit] One other point, I'm installing from Bitnami's Redmine Stack for Windows, currently using their 2.5.2-1 version. I had to manually apply the changes from your patch file though, since my language files appear to be different to yours. Could the Bitnami installer possibly have some outdated files causing issues here?

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Mischa The Evil over 9 years ago

Andre Greeff wrote:

Thanks Mischa, from your suggestion, it seems the Redcarpet gem is not being loaded.

I do have Redcarpet installed, bundle list shows redcarpet (2.3.0), bundle show redcarpet shows the path of D:/BitNami/redmine-2.5.2-1/ruby/lib/ruby/gems/2.0.0/gems/redcarpet-2.3.0-x86-mingw32, but the entry added to the info screen says it's not available.

I see. At first: I am not especially familiar with Bitnami stacks and certainly not on the win32 platform, but I have quickly tested this on a fresh Bitnami 2.5.2-3 Windows release as such and found it is reproduceable out-of-the-box. This seems to be a problem in the deployment of Redcarpet (and RMagick, this seems to happen also for that gem; both need native compilation AFAICR) within the the Bitnami stack. I suggest you report this issue to the Bitnami crew so they can fix it in their packages.

[edit] One other point, I'm installing from Bitnami's Redmine Stack for Windows, currently using their 2.5.2-1 version. I had to manually apply the changes from your patch file though, since my language files appear to be different to yours. Could the Bitnami installer possibly have some outdated files causing issues here?

That's my mistake. I should have mentioned that it is a patch against source:/trunk@13439 (development line), so yes it'll differ from the 2.5.2 release. Also, you could have omitted the language files change(s), in that case translation missing: en.text_redcarpet_available would be displayed.

Note: I should mention that it best to remove the changes included in my patch. They are not (yet) added to the core and it is almost always better to keep (production) environments clean of manual modifications.

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Anonymous over 9 years ago

Mischa The Evil wrote:

I see. At first: I am not especially familiar with Bitnami stacks and certainly not on the win32 platform, but I have quickly tested this on a fresh Bitnami 2.5.2-3 Windows release as such and found it is reproduceable out-of-the-box. This seems to be a problem in the deployment of Redcarpet (and RMagick, this seems to happen also for that gem; both need native compilation AFAICR) within the the Bitnami stack. I suggest you report this issue to the Bitnami crew so they can fix it in their packages.

Thanks for the confirmation, I'll post a message on their forum shortly.

That's my mistake. I should have mentioned that it is a patch against source:/trunk@13439 (development line), so yes it'll differ from the 2.5.2 release. Also, you could have omitted the language files change(s), in that case translation missing: en.text_redcarpet_available would be displayed.

Note: I should mention that it best to remove the changes included in my patch. They are not (yet) added to the core and it is almost always better to keep (production) environments clean of manual modifications.

No worries, I applied the changes to my admin controller and English language file anyway, all in my test environment with a copy of my live system first. :) Software testing is second nature to me.

[edit] Right.. So anyway, I'll let the guys at Bitnami know about this as soon as their community forum stops throwing status 500 error messages at me.

RE: Redmine 2.5.2 - No Option for Markdown Formatting - Added by Anonymous over 9 years ago

Ok, just got my message posted on the Bitnami community forum now about this. I'll update this again when I know what's going on. :)

For reference:
https://community.bitnami.com/t/problems-enabling-markdown-in-2-5-2-windows-version/26610

    (1-10/10)