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: incomplete error output #2655

Closed
sereg1k opened this issue Nov 5, 2019 · 2 comments
Closed

Playground: incomplete error output #2655

sereg1k opened this issue Nov 5, 2019 · 2 comments
Assignees
Labels
Bug This tag is applied to issues which reports bugs. OS: Playground Bugs/feature requests, that are specific to play.vlang.io.
Projects
Milestone

Comments

@sereg1k
Copy link

sereg1k commented Nov 5, 2019

What did you do?
In the Hello world example, replace println with Println.

fn main() { 
	areas := ['game', 'web', 'tools', 'science', 'systems', 'GUI', 'mobile']
        for area in areas {
                Println('Hello, $area developers!')
        }
} 

What did you expect to see?

undefined: `Println`
    4|                 Println('Hello, $area developers!')
                             ^

or

Hello world.v:4:23: undefined: `Println`
    2|     areas := ['game', 'web', 'tools', 'science', 'systems', 'GUI', 'mobile']
    3|         for area in areas {
    4|                 Println('Hello, $area developers!')
                             ^
    5|         }
    6| } 

What did you see instead?

undefined: `Println`
    2| 	areas := ['game', 'web', 'tools', 'science', 'systems', 'GUI', 'mobile']
@sereg1k sereg1k added the Bug This tag is applied to issues which reports bugs. label Nov 5, 2019
@medvednikov
Copy link
Member

Yeah, error line numbers are messed up in the playground, works fine locally.

@dhonx dhonx added the OS: Playground Bugs/feature requests, that are specific to play.vlang.io. label Nov 18, 2019
@M4SSD35TRUCT10N M4SSD35TRUCT10N added this to Issues, bugs, features and similar in V 0.2 Apr 6, 2020
@M4SSD35TRUCT10N M4SSD35TRUCT10N added this to the Beta Release milestone Apr 6, 2020
@serkonda7
Copy link
Contributor

It works in the new wasm playground: https://v-wasm.now.sh.

V 0.2 automation moved this from Issues, bugs, features and similar to Finished Nov 16, 2020
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.
Projects
No open projects
V 0.2
  
Finished
Development

No branches or pull requests

5 participants