Comments (4)
Hi @thenger thanks for including the log, as that's helpful here.
Both terraform.languageServer.terraform.path
and terraform.languageServer.path
are machine/remote scoped settings. This means you need to set them where the extension will run. For example, the path to the terraform binary might be in a different location/path inside WSL that it is on the host machine. This is to enable a scenario where you have terraform installed in c:/some/path/to/terraform.exe
on your Windows host in your User settings and installed in /some/other/path/to/terraform
in your Remote machine settings.
To set these settings in WSL, you can run the Preferences: Open Remote Settings
command from the Command Palette (F1) or by selecting the Remote tab in the Settings editor. Then inout the correct path in the chosen setting.
FWIW, you don't have to set terraform.languageServer.terraform.path
if the remote machine already has the terraform binary installed, it just has to be in environment variable PATH
on the remote machine so that it can be resolved by the extension at runtime.
You shouldn't have to change the terraform.languageServer.path
setting as that is detected by the extension at runtime, and by default it's pointed to the terraform-ls binary that is shipped with the extension and gets put in the right place when you use WSL. You would only need to set it if you are using terraform-ls from an outside install, which is not common.
from vscode-terraform.
eh
ok. thank you for your quick response !
It appears that I had tested some stuffs and ended up modifying the "Remote JSON settings" (without noticing) and added the following :
"terraform.languageServer.path": "~/.local/bin/terraform",
and either because it's not the terraform-ls
bin or because ~
is not expanded (but I think it's the later)
it was never going to work
now my config works : I removed every config related to hashicorp and works as I expected
Sorry for the time loss and thanks again
from vscode-terraform.
Glad it got resolved.
from vscode-terraform.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
from vscode-terraform.
Related Issues (20)
- Provider-defined functions support HOT 3
- Saving documents is extremely slow on windows HOT 2
- "Unexpected attribute" false alarms HOT 30
- "Unexpected block" false alerts HOT 5
- Autocomplete in for expression appends the full choice to what's been typed instead of replacing HOT 3
- Unexpected Attribute kms_key_id in aws_codecommit_repository resource HOT 3
- Variable declaration error in `for` expression HOT 7
- No declaration found for nested object in list HOT 3
- Variable falsely marked as not declared in for_each block. HOT 2
- Completions: Recover partially typed provider defined functions after the first colon has been typed HOT 2
- false "No Declaration found" HOT 4
- Terraform Stacks Editor Support
- Format does not align = signs when type is multiline array HOT 2
- Vscode Language Server is preloading wrong provider version - intellisense then not working HOT 12
- Document is Open - Ignoring Event HOT 3
- Extension report problems in `~/.vscode-server/data/User/History/` HOT 3
- "no declaration found" for heteregeneous list HOT 2
- TFC Login Test
- Terraform Auto complete Not working HOT 7
- vscode always complains `This module is not yet installed` error in submodules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-terraform.