Giter Club home page Giter Club logo

choicescript_vscode's People

Contributors

careyjwilliams avatar danspinola avatar dependabot[bot] avatar klneidecker avatar mutantant avatar sgranade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

careyjwilliams

choicescript_vscode's Issues

Multiple falsely detected errors when there are multiple #options in an if statement

1. *temp check true
2. 
3. *fake_choice
4. 	*if check = true
5. 		#Choice 1
6. 			You chose "Choice 1"
7. 		#Choice 2
8. 			You chose "Choice 2"
9. 		#Choice 3
10. 			You chose "Choice 3"

I've run this code without issue but:

At line 7, the error "Line is indented too far" is falsely detected
At line 9, the errors "Line is not indented far enough" and "An #option must only appear inside a *choice or *fake_choice (check that indention is correct)" are falsely detected

The same errors can be found when using *choice instead of *fake_choice despite the code running without issues:

1. *temp something true
2. 
3. *choice
4. 	*if something = true
5. 		#Choice 1
6. 			You chose "Choice 1"
7. 			*goto label
8. 		#Choice 2
9. 			You chose "Choice 2"
10. 			*goto label
11. 		#Choice 3
12. 			You chose "Choice 3"
13. 			*goto label
14. 
15. *label label

At line 8, the error "Line is indented too far" is falsely detected
At line 11, the errors "Line is not indented far enough" and "An #option must only appear inside a *choice or *fake_choice (check that indention is correct)" are falsely detected

Embedded game running

At the moment games are launched in a separate browser window. My understanding is that many users like the ability to code and test side-by-side. I'll be exploring getting games to run in VS Code Web Views as an alternative.

This should be possible but it might make debugging with CDT (#31) challenging.

Debug support

I'm investigating providing debug support for ChoiceScript in this extension, either through CDT, or direct support in ChoiceScript. The former wouldn't work in the web, so the latter is preferable.

Support would cover some subset of (in rough priority order):

  • Step-through code execution
  • Statement breakpoints
  • Debug console evaluation
  • Variable values in scope

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.