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

custom class internals are not rendered correctly #6459

Closed
ekeren opened this issue May 12, 2024 · 1 comment · Fixed by #6528
Closed

custom class internals are not rendered correctly #6459

ekeren opened this issue May 12, 2024 · 1 comment · Fixed by #6528
Assignees
Labels
🐛 bug Something isn't working 🛫 console Console

Comments

@ekeren
Copy link
Collaborator

ekeren commented May 12, 2024

I tried this:

Start with this code:

bring cloud;
class X {
  b: cloud.Bucket;
  new(){
    this.b = new cloud.Bucket();
  }
  pub f(){
    this.b.onEvent(inflight () => {});
  }
  pub inflight ff(){
    this.b.put("sdads","dsadsa");
  }
}
let api = new cloud.Api();
let b = new cloud.Bucket();
new cloud.Function(inflight () => {
  b.put("file.txt", "dsasd" );
  b.get("dsasd");
});
new cloud.Function(inflight () => {
  b.put("file.txt", "dsasd" );
  b.get("dsasd");
  b.list();
}) as "2";
api.post("/doc/:id", inflight (req) => {
  
});

It should render something like this:
image

Now add let x = new X(); at the end of the file, it renders this:
image

This happened:

If I stop and start wing run it will show a correct representation:
image

I expected this:

It should have generate the right structure

Is there a workaround?

No response

Anything else?

No response

Wing Version

0.73.41

Node.js Version

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
@ekeren ekeren added 🐛 bug Something isn't working 🛫 console Console labels May 12, 2024
@mergify mergify bot closed this as completed in #6528 May 24, 2024
mergify bot pushed a commit that referenced this issue May 24, 2024
This restores the new Console map view again, and will try to fix the previous issues with the missing connections.

Fixes #6511, fixes #6459, fixes #6455.
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.74.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🛫 console Console
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants