Giter VIP home page Giter VIP logo

Comments (10)

davetustin avatar davetustin commented on May 22, 2024 3

Perfect timing! I am using v0.2.1 and the graph is now showing correctly. The only thing that I did notice is that the output in the terminal says it is running on 0.0.0.0:9000, rather than localhost:9000.

Looks like this did resolve it! Awesome work!

Thank for your efforts.
Dave

from rover.

davetustin avatar davetustin commented on May 22, 2024 2

Hi,

The error in the console is below.

Uncaught (in promise) Error: Can not create edge `output.client_id->azuread_application.occm_application.application_id` with nonexistant target `azuread_application.occm_application.application_id`
    at Pe (vue-cytoscape.common.js:2465)
    at Xe.so.restore (vue-cytoscape.common.js:14039)
    at new Xe (vue-cytoscape.common.js:2877)
    at Ko.add (vue-cytoscape.common.js:14474)
    at Graph.vue:336
    at Array.forEach (<anonymous>)
    at o.renderGraph (Graph.vue:332)
    at Graph.vue:501

Thank you
Dave

from rover.

im2nguyen avatar im2nguyen commented on May 22, 2024

It should be done through rover. I'm thinking there was an error while building the graph. Can you open up your browser's console and paste the error messages?

from rover.

bugblip avatar bugblip commented on May 22, 2024

I'm also having the same issue, all the resource graph are on top of each other

from rover.

im2nguyen avatar im2nguyen commented on May 22, 2024

Hello! #32 fixes this bug.

The bug was because the output referenced a resource attribute (azuread_application.occm_application.application_id) rather than the resource itself (azuread_application.occm_application). Updated rover so it ignores resource attributes when generating the graph, which fixed the issue when I reproduced it 😄

from rover.

im2nguyen avatar im2nguyen commented on May 22, 2024

This should be fixed with #32! Can you pull the latest Docker image and test it again? You can also re-download the binary 😄

docker pull im2nguyen/rover

from rover.

davetustin avatar davetustin commented on May 22, 2024

Hi,

Thanks for looking into so quickly. I downloaded v0.2.0 and tried it, I still get an error, but for another type of resource.

vue-cytoscape.common.js:2465 Uncaught (in promise) Error: Can not create edge `output.tenant_id->data.azurerm_subscription.current.tenant_id` with nonexistant target `data.azurerm_subscription.current.tenant_id`
    at Pe (vue-cytoscape.common.js:2465)
    at Xe.so.restore (vue-cytoscape.common.js:14039)
    at new Xe (vue-cytoscape.common.js:2877)
    at Ko.add (vue-cytoscape.common.js:14474)
    at Graph.vue:336
    at Array.forEach (<anonymous>)
    at o.renderGraph (Graph.vue:332)
    at Graph.vue:501

I am not using Docker, I am using rover_0.2.0_windows_amd64.zip.

Thanks again,
Dave

from rover.

im2nguyen avatar im2nguyen commented on May 22, 2024

Hi @davetustin, are you sure you're using the latest version of rover? did you remove the previous version yet?

I just tried to replicate locally and it's working as expected. I added the following to example/random-test which should be similar to your configuration (output pointing to a data resource attribute).

data "http" "terraform_metadata" {
  url = "https://checkpoint-api.hashicorp.com/v1/check/terraform"

  # Optional request headers
  request_headers = {
    Accept = "application/json"
  }
}

output "terraform_metadata" {
  description = "Terraform metadata"
  value = data.http.terraform_metadata.body
}

from rover.

im2nguyen avatar im2nguyen commented on May 22, 2024

Just released this version v0.2.1, which includes the -version flag!

$ rover -version
Rover v0.2.1

from rover.

davetustin avatar davetustin commented on May 22, 2024

I replaced the rover exe with the new one, restarted vscode just to make sure. I can't see any --version command which would be useful, Is there a way I can double check?

from rover.

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.