-
Notifications
You must be signed in to change notification settings - Fork 72
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
Racer autocomplete #66
Racer autocomplete #66
Conversation
|
||
if (!Enum.TryParse(langElemText, out elType)) | ||
{ | ||
DebugWrite("Failed to parse language element found in racer autocomplete response: {0}", elType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be DebugWrite("Failed to parse language element found in racer autocomplete response: {0}", langElemText)
First, bugs and weirdness
Fix those three things and we can merge. As for the other things. When it comes to mentioned limitations we can live with them (for now at least). Open questions:
We can convert open questions issues and tackle them one at time. |
Thanks for the feedback Regarding the binary: completely forgot my rustc compiled native x64 by default, will make it x86. The dependencies of racer.exe (x86) are: the gcc dll (libgcc_s_dw2-1.dll) and the rust libraries. I'm unsure which of these need to be deployed? We can assume the end user has the rust libs, but what version? Racer currently depends on a nightly to build. If this turns out to be a can of worms, perhaps better to just stop deploying for now and rely on one in %PATH% instead? At least until racer doesn't depend on a nightly rust, and rust can do a better job with static linking under windows? |
Fundamental problem here is that the user might have three, different, mutually incompatible versions of racer, Rust sources and rustc.
The end goal is to have proper autocompletion with minimal fiddling (cloning, compiling and deploying All in all, I think shipping our own version of racer.exe is something we should do. |
Ok my suggestion for the scope of the issue/PR: The remaining bullets can be new issues I hope? |
Just bundle "full" racer for now. I don't want this PR to unnecessarily grow in scope. I'm not sure what you mean by package startup being inactive, but the package ( And yes, remaining issues should be new issues. |
Ah I was testing autocomplete with just starting devenv on a .rs file without rsproj which means the autocomplete command is loaded (by content type) but not the package! Must be careful then to not do mandatory init in package, to avoid crashing if a rust file is opened outside rsproj. |
Interesting, I though in such case VS would create some kind of implicit |
- Changed racer.exe to 32bit - Added racer dependencies - Made a separate class to wrap the native racer executable & sanity checks - Moved racer exe + dependencies to subdir & made separate wxs/componentgroup in msi - Added sanity checks at startup for RUST_SRC_PATH and possibility to load racer.exe from path - removed auto-added bracket after Function name completion - Fixed missing Static completions - Fix wrong var used in log message when enum parsing failed
I've opened some follow-up issues. If I missed something feel free to open new ones. |
fixes #6
Known limitations:
Open questions: