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

Unable to figure out how to get RLS to work in vim #3324

Closed
mabushey opened this issue Aug 28, 2020 · 1 comment
Closed

Unable to figure out how to get RLS to work in vim #3324

mabushey opened this issue Aug 28, 2020 · 1 comment
Labels

Comments

@mabushey
Copy link

I blew away my awesome_vimrc config by deleting all .vim* folders. Then I ran ran git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime then sh ~/.vim_runtime/install_awesome_vimrc.sh.

$ rls -V
rls 1.41.0 (dd341d5 2020-06-30)

I've used vim for 20 years and still am clueless about it's plugin structure. I'm more than happy to use Janus or another vim config if that will make this work. I would absolutely love a docker container with this stuff already configured I could just exec into. How does anyone get rust auto-completion to work in .vim?

ALEInfo

 Current Filetype: rust                                                                                                                                                                                                                                                          
Available Linters: ['analyzer', 'cargo', 'rls', 'rustc']                                                                                                                                                                                                                         
  Enabled Linters: ['cargo']                                                                                                                                                                                                                                                     
 Suggested Fixers:                                                                                                                                                                                                                                                               
  'remove_trailing_lines' - Remove all blank lines at the end of a file.                                                                                                                                                                                                         
  'rustfmt' - Fix Rust files with Rustfmt.                                                                                                                                                                                                                                       
  'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.                                                                                                                                                                                        
 Linter Variables:                                                                                                                                                                                                                                                               
let g:ale_rust_cargo_avoid_whole_workspace = 1                                                                                                                                                                                                                                   
let g:ale_rust_cargo_check_all_targets = 0                                                                                                                                                                                                                                       
let g:ale_rust_cargo_check_examples = 0                                                                                                                                                                                                                                          
let g:ale_rust_cargo_check_tests = 0                                                                                                                                                                                                                                             
let g:ale_rust_cargo_clippy_options = ''                                                                                                                                                                                                                                         
let g:ale_rust_cargo_default_feature_behavior = 'default'                                                                                                                                                                                                                        
let g:ale_rust_cargo_include_features = ''                                                                                                                                                                                                                                       
let g:ale_rust_cargo_use_check = 1                                                                                                                                                                                                                                               
let g:ale_rust_cargo_use_clippy = 0                                                                                                                                                                                                                                              
 Global Variables: 
...

Looks like RLS is not enabled, but googling this is not helpful.

@mabushey mabushey added the bug label Aug 28, 2020
w0rp added a commit that referenced this issue Aug 28, 2020
@w0rp
Copy link
Member

w0rp commented Aug 28, 2020

For linters that aren't enabled, you have to set g:ale_linters (preferably b:ale_linters in ftplugin files) to enable them. rls is stable enough now, so I have enabled it by default now.

@w0rp w0rp closed this as completed Aug 28, 2020
jsit added a commit to jsit/ale that referenced this issue Aug 28, 2020
* master: (195 commits)
  Close dense-analysis#3285 - lint_file is now dynamic
  Close dense-analysis#3309 - Add b:ale_lint_delay
  Fix dense-analysis#3323 - Set default for g:ale_filename_mappings
  Add sql-lint to supported tools
  dense-analysis#3324 - Enable rls by default
  Set prettier working directory to where .prettierignore is (dense-analysis#3101)
  Fix dense-analysis#3319 - Force modifications to buffers
  Fix dense-analysis#3318 - Escape macros when parsing C flags
  Fix C flag parsing and tests on Windows
  Mention --fast, and document running Windows tests locally
  dense-analysis#3318 Refactor C flag parsing to set up for quoting arguments
  dense-analysis#3266 - Catch echo visual selection errors
  Label the test cases more clearly
  Fix dense-analysis#3317 - Parse -include from C flags
  Fix dense-analysis#3316 - Repeat -relative for ALERepeatSelection
  Fix dense-analysis#3307 - Handle compile_commands paths better
  Fix a typo
  dense-analysis#3314 - Tell people how to make new plug mappings
  dense-analysis#3312 - Just check if additionalTextEdits is non-empty
  Fix dense-analysis#3312 - Fix a false positive for auto imports
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants