wing icon indicating copy to clipboard operation
wing copied to clipboard

better error message for compiling unknown platforms

Open tsuf239 opened this issue 2 years ago • 3 comments

I tried this:

I wanted to test wing code the awscdk target, I didn't have it installed on my machine. I ran: wing test -t @winglang/platform-awscdk path-to-file

This happened:

image

I expected this:

Wing cli to display a friendly error such as "seems like "platform-name" isn't installed, try running npm i -g <package name>?" *I assume that the same error is displayed even for mistyped or unexisting platforms, please take that in account @hasanaburayyan do you have an idea for a friendly error message to display?

Is there a workaround?

No response

Anything else?

Dear contributor, you are welcome to assign yourself to the task! before you start, please verify that you have the exact wording for the error message and that edge cases are all covered :)

Wing Version

No response

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.

tsuf239 avatar Dec 17 '23 15:12 tsuf239

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] avatar Feb 16 '24 06:02 github-actions[bot]

@srinumadhavv let me know what do you think about this issue!

revitalbarletz avatar May 15 '24 08:05 revitalbarletz

@Chriscbr @revitalbarletz image Seems the error comes from here but its still picking up the old change as per the description any headsup at where to start looking at ?

srinumadhavv avatar May 15 '24 11:05 srinumadhavv

found a duplication to this issue- https://github.com/winglang/wing/issues/6147 and it seems like it was closed by @hasanaburayyan in #6176 I think we can close this one :) @srinumadhavv please let us know if you need help choosing another issue

tsuf239 avatar May 26 '24 08:05 tsuf239