Giter Club home page Giter Club logo

Comments (9)

mauve avatar mauve commented on July 26, 2024 1

I just pushed 0.0.22 which does not require indexing to be true (so does not enable it by default), please try it.

from vscode-terraform.

mauve avatar mauve commented on July 26, 2024

Seems to only be the case on ubuntu (cannot reproduce on mac for example).

@pdecat is there anything interesting in the Console tab of the Developer Tools (Ctrl-Shift-I)

from vscode-terraform.

pdecat avatar pdecat commented on July 26, 2024

Here is what happens in the developer console:

console.ts:136 [Extension Host] Scanning for all terraform files...
console.ts:136 [Extension Host] Scanning done.
935 console.ts:136 [Extension Host] Could not parse: Error: spawn terraform-index ENOENT
	at exports._errnoException (util.js:1050:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
	at onErrorNT (internal/child_process.js:367:16)
	at _combinedTickCallback (internal/process/next_tick.js:80:11)
	at process._tickCallback (internal/process/next_tick.js:104:9)

from vscode-terraform.

pdecat avatar pdecat commented on July 26, 2024

Hmm, the freeze seems to trigger only when a terraform file is first opened.

from vscode-terraform.

pdecat avatar pdecat commented on July 26, 2024

When the freeze actually happens, there is only one occurrence of the error message in the console (above there were 935 occurrences and it did not freeze as now terraform file was opened):

console.ts:136 [Extension Host] Scanning for all terraform files...
console.ts:136 [Extension Host] Scanning done.
console.ts:136 [Extension Host] Could not parse: Error: spawn terraform-index ENOENT
	at exports._errnoException (util.js:1050:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
	at onErrorNT (internal/child_process.js:367:16)
	at _combinedTickCallback (internal/process/next_tick.js:80:11)
	at process._tickCallback (internal/process/next_tick.js:104:9)

from vscode-terraform.

mauve avatar mauve commented on July 26, 2024

if you don't have terraform-index installed those errors are expected but the hang is obviously not expected

from vscode-terraform.

pdecat avatar pdecat commented on July 26, 2024

Upgrading to 0.0.22 and removing terraform.indexing.enabled from user settings works fine.

However, the hang still happens when terraform.indexing.enabled is set to true.

Also, I installed terraform-index and the hang also happens with the following messages in the console:

/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:257 [Extension Host] Scanning for all terraform files...
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:257 [Extension Host] Scanning done.
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:257 [Extension Host] Updating index for  file:///home/pdecat/workspaces/test/test.tf

I have updated the title accordingly.

from vscode-terraform.

mauve avatar mauve commented on July 26, 2024

this should be fixed in 1.0.0.

from vscode-terraform.

nandac avatar nandac commented on July 26, 2024

I am seeing this same issue in version 1.3.4.

from vscode-terraform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.