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

Show console output from AppRun #4

Closed
spatialdude opened this issue Dec 10, 2018 · 3 comments
Closed

Show console output from AppRun #4

spatialdude opened this issue Dec 10, 2018 · 3 comments

Comments

@spatialdude
Copy link
Collaborator

spatialdude commented Dec 10, 2018

When running an app in AppRun #3 , the console output should be shown in Visual Studio Code.

If there are any errors in the console output, these should be able to be identified and parsed accordingly so the user can click on them and jump to the file and line number causing the error.

zhitaop pushed a commit that referenced this issue Dec 20, 2018
zhitaop added a commit that referenced this issue Dec 20, 2018
zhitaop added a commit that referenced this issue Jan 2, 2019
#3 #4 #6 #7 #11 Add support for MacOS and error message for unsupport…
@marikavertzonis
Copy link
Collaborator

  • tested on windows 10, linux 18 and mac os 10.13, successfully opening (and running) a project on each, seeing console output
  • adding some easily identifiable errors to my code, i see expected:
    • 'Expected token`,' messages (that also appear in the apprun error dialog box) appear in the console along with the line numbers
    • 'Text is not a type' message when i comment out the QtQuick.Controls import
  • parsing and clicking - i cant do that in QTCreator with these type of errors. i need to find more errors to explore this.

@marikavertzonis
Copy link
Collaborator

  • tested again (installed today's' latest files on each machine), with an otherwise working app containing a deliberate error (single letter 's' on a line in MyApp.qml file)
  • on ubuntu 18
    • Ctrl + click on the error message. cursor jumps to the line immediately after the error (deliberately moved cursor elsewhere and see it move). also i specifically closed the file and i see it is opened when i Ctrl + click the error message - good
  • on windows 10 and mac 10.13
    • Ctrl + click on the error message, but then i get a notification of 'unable to open 'MyApp.qml:37:5:':file not found... (even though the file is already open)
    • i've tried different appstudio apps, closing and reopening vscode, and still cant get the error link to jump to the file or place within the file.

@marikavertzonis
Copy link
Collaborator

restarting vs code on the windows and mac machines 'fixed' the problem. on all three platforms i can click the error message and be taken to line.

closing this issue - if specific error messages need refinement, please create new separate issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants