ros2_rust with VS Code?
              
              #468
            
            
              
                Unanswered
              
          
                  
                    
                      michalfita
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 10 replies
-
| I use VS Code with rust-analyzer and ros2-rust in a workspace with the repos file imported. I haven't had any problem with code completion. All I do is: 
 This should work for the following reasons: 
 If this isn't working I would start by checking what's inside the  I would also check whether  | 
Beta Was this translation helpful? Give feedback.
                  
                    10 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone can suggest a way how to properly setup VS Code to work with
rust-analyzerand workspace withros2_rustin it and doing so w/o Docker? Under normal circumstancesrust-analyzerplugin doesn't seem to recognise ROS2 workspace as something having multiple crates undersrc/despite.cargodirectory there.I've added some crate paths to
"rust-analyzer.linkedProjects"in.vscode/settings.json, but thenrust-analyzerdoesn't see patches set for crates.io and tries to obtain dependencies from there.This looks like deficiency to me of the
rust-analyzeritself it can't source given files in shell used to start the Language Server.Edit: Forgot to mention earlier, I'm using remote access, so VS Code launched on the host and VS Code Server is spawned over SSH on remote machine.
Has anyone been successful with this endeavour?
Beta Was this translation helpful? Give feedback.
All reactions