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

Playground Example of Json Encoding Fails to Run #3573

Closed
Brainz456 opened this issue Jan 27, 2020 · 5 comments
Closed

Playground Example of Json Encoding Fails to Run #3573

Brainz456 opened this issue Jan 27, 2020 · 5 comments
Labels
Bug This tag is applied to issues which reports bugs. OS: Playground Bugs/feature requests, that are specific to play.vlang.io. Status: Duplicate This issue has been marked as a duplicate of another issue.

Comments

@Brainz456
Copy link

V version: Unsure
OS: Ubuntu - Firefox

What did you do?
Tried to run the JSON example on the playground site

What did you expect to see?
The playground compiles and run the Example program

What did you see instead?
You just found a bug. V can't compile this program, but it should. Please create a GitHub issue.

@Brainz456 Brainz456 added the Bug This tag is applied to issues which reports bugs. label Jan 27, 2020
@elimisteve
Copy link
Member

Fix created! vlang/website#126 . Just waiting for @medvednikov to merge it in. Thanks for the report 👍 .

@dhonx dhonx added the OS: Playground Bugs/feature requests, that are specific to play.vlang.io. label Jan 31, 2020
@exastencil
Copy link
Contributor

exastencil commented Feb 5, 2020

That pull request has been merged, but I just checked on the playground and it is still broken. I've run the code locally on the latest V without issue, so maybe something is up with the /compile endpoint? Perhaps it isn't using the latest build. I see CloudFlare is sending the response, so that could be it.

@elimisteve
Copy link
Member

@exastencil Oops, sorry; I fixed 2 other examples, but the JSON one still doesn't work -- you are right.

Strangely, this example has compiled just fine for me using the last several versions of V, but in the V Playground it still says:

You just found a bug. V can't compile this program, but it should. Please create a GitHub issue.

@exastencil
Copy link
Contributor

Yeah, I had a look to see what happens when /compile is hit, but it's not in vlang/website as far as I can tell. And it builds for me, so I'm not sure what the error is, or how to find it.

@alexesprit alexesprit added the Status: Duplicate This issue has been marked as a duplicate of another issue. label Feb 26, 2020
@alexesprit
Copy link
Member

Closed as a duplicate of #3327.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs. OS: Playground Bugs/feature requests, that are specific to play.vlang.io. Status: Duplicate This issue has been marked as a duplicate of another issue.
Projects
None yet
Development

No branches or pull requests

5 participants