Repository navigation
Implemented Hunspell suggest feature - #5
Merged
Merged
Conversation
Member
|
Looks like a clean commit to me. (Hi, Jeff!) |
Member
There was a problem hiding this comment.
We also need checkSpellingMethodDef.numArgs = 1 here.
Contributor
Author
|
Didn't know if you got a notification earlier when I added a new commit. Adding this comment to push along... |
Member
|
No I didn't get a notification, thanks for pinging me. I'll pull right now! J On Wed, Feb 1, 2012 at 3:43 PM, jeffreyhorner <
|
jjallaire
added a commit
that referenced
this pull request
Feb 1, 2012
Implemented Hunspell suggest feature
4 tasks done
gtritchie
added a commit
that referenced
this pull request
Aug 6, 2020
On Centos7 (Desktop), unit tests were failing because global static initialization was causing access to an uninitialized string. Fix by wrapping the static strings in functions. The trigger is here: https://github.com/rstudio/rstudio/blob/e6fd9fd85f9088c13e8b2c5b78176111b4f2b485/src/cpp/core/LogOptions.cpp#L61 The crash stack was: ``` #0 0x000055ed09fbbdbe in std::string::size (this=0x55ed0b7d5188 <rstudio::core::(anonymous namespace)::s_homePathLeafAlias>) at /opt/rh/devtoolset-7/root/usr/include/c++/7/bits/basic_string.h:3817 #1 0x000055ed09fdc60c in std::operator==<char> (__lhs="~/.local/share", __rhs=<error reading variable: Cannot access memory at address 0xffffffffffffffe8>) at /opt/rh/devtoolset-7/root/usr/include/c++/7/bits/basic_string.h:6007 #2 0x000055ed0a97ce4c in rstudio::core::FilePath::resolveAliasedPath (in_aliasedPath="~/.local/share", in_userHomePath=...) at /src/src/cpp/shared_core/FilePath.cpp:476 #3 0x000055ed0a832e7f in rstudio::core::system::xdg::(anonymous namespace)::resolveXdgDir (envVar="XDG_DATA_HOME", defaultDir="~/.local/share", user=..., homeDir=...) at /src/src/cpp/core/system/Xdg.cpp:97 #4 0x000055ed0a833213 in rstudio::core::system::xdg::userDataDir (user=..., homeDir=...) at /src/src/cpp/core/system/Xdg.cpp:135 #5 0x000055ed0a8972ea in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /src/src/cpp/core/LogOptions.cpp:61 #6 0x000055ed0a89740c in _GLOBAL__sub_I_LogOptions.cpp(void) () at /src/src/cpp/core/LogOptions.cpp:347 #7 0x000055ed0aa9580d in __libc_csu_init () #8 0x00007f948396c4e5 in __libc_start_main () from /lib64/libc.so.6 #9 0x000055ed09fb44f5 in _start () ```
4 tasks done
3 tasks
This was referenced Feb 27, 2026
4 tasks done
11 tasks
5 tasks
This was referenced Apr 8, 2026
This was referenced Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First foray into C++ in quite some years, so I'm sure I'll make some rookie mistakes. SpellChecker::suggestionList returns an int defining the number of suggestions but this is obviously built into the string vector argument pSug which it populates. Also was unsure of the camel hump name suggestionList.
Jeff