Menu

#1063 Spellchecker plugin. Variable expansion not working.

Undefined
invalid
ollydbg
None
Undefined
2021-05-02
2021-02-05
Virtox
No

Variable expansion does not work in the spellchecker plugin (example in the screenshot). This would be useful when a portable version of codeblocks is needed.

1 Attachments

Discussion

  • ollydbg

    ollydbg - 2021-05-02

    Hi, which version of Code::Blocks do you use?

    I just looked at the source code of Spell checker plugin, and I see that the variable expansion feature is added in year 2011, see below:

    void SpellCheckSettingsPanel::OnChangeDictPathText(cb_unused wxCommandEvent& event)
    {
        wxString path = m_TextDictPath->GetValue();
        Manager::Get()->GetMacrosManager()->ReplaceEnvVars(path);
        if ( wxDir::Exists( path ) )
        {
            InitDictionaryChoice( path );
        }
        else
        {
            m_choiceDictionary->Clear();
            m_checkEnableOnlineSpellChecker->Enable(false);
            m_checkEnableOnlineSpellChecker->SetValue(false);
        }
    }
    

    So, my guess is that either you use a quite old version of C::B or you are not using the variable correctly.

     

    Last edit: ollydbg 2021-05-02
  • ollydbg

    ollydbg - 2021-05-02
    • status: open --> invalid
    • assigned_to: ollydbg
     

Log in to post a comment.

MongoDB Logo MongoDB