winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.75k stars 186 forks source link

Simulator doesn't support some cloud API features #6606

Open eladb opened 3 weeks ago

eladb commented 3 weeks ago

I tried this:

For example:

bring cloud;

new cloud.Queue(timeout: 5m);

This happened:

Error: Queue.timeout is not supported on the sim platform yet.
For more information see: https://github.com/winglang/wing/issues/1980.
Contributions welcome ❤️
  --> wing/main.w:3:1
  | bring cloud;
  | 
3 | new cloud.Queue(timeout: 5m);
  | ^
at /app/wing/main.w:3:1

I expected this:

It is crucial that sim will have support for all cloud API features. Even if it ignores them (with a message), we must not crash.

Is there a workaround?

No response

Anything else?

No response

Wing Version

No response

Node.js Version

No response

Platform(s)

No response

Community Notes

Chriscbr commented 3 weeks ago

Duplicate of https://github.com/winglang/wing/issues/2401?

eladb commented 3 weeks ago

2401 is one case. I want to make sure we support everything.