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

feat: add context argument to recoveryValueFunc #1917

Merged

Conversation

nupthale
Copy link
Contributor

@nupthale nupthale commented Feb 10, 2023

I'm using the EmbeddedActionsParser with recoveryEnabled to generate my own AST nodes.

I want some range information about the recoveryNode to generete the errorNode, but now i've got no place to find the range information.

I hope it'll provide some context information about the error when calling custom recoveryValueFunc.

@bd82
Copy link
Member

bd82 commented Feb 11, 2023

Thanks @nupthale 👍

@bd82 bd82 merged commit 7ccdb02 into Chevrotain:master Feb 11, 2023
@nupthale
Copy link
Contributor Author

nupthale commented Feb 14, 2023

Thanks, by the way , when will this feature be released? @bd82

@bd82
Copy link
Member

bd82 commented Feb 15, 2023

hopefully on the weekend

@nupthale
Copy link
Contributor Author

ok, Thanks

@nupthale
Copy link
Contributor Author

nupthale commented Mar 2, 2023

sorry to bother😅, when will this feature be released? @bd82

@bd82 bd82 changed the title feat: add IRecognitionException to recoveryValueFunc arguments to pro… feat: add context argument to recoveryValueFunc Mar 11, 2023
@bd82
Copy link
Member

bd82 commented Mar 11, 2023

Hi @nupthale

Sorry, I was not available for a while...
I am trying to figure out an npm auth issue to perform the release...

@bd82
Copy link
Member

bd82 commented Mar 11, 2023

version 10.5.0 is out on npm

sidharthv96 added a commit to sidharthv96/chevrotain that referenced this pull request Jun 5, 2023
* upstream/master:
  chore(deps): update prettier
  chore(release): release v10.5.0
  chore: update changelog before release
  feat: add IRecognitionException to recoveryValueFunc arguments to provide information (Chevrotain#1917)
martin-fleck-at added a commit to CrossBreezeNL/crossmodel that referenced this pull request Aug 29, 2023
- Downgrade from 10.5.0 to 10.4.2 as it does not work for our YAML lang
-- Chevrotain/chevrotain@v10.4.2...v10.5.0
-- Main extension: Chevrotain/chevrotain#1917
martin-fleck-at added a commit to CrossBreezeNL/crossmodel that referenced this pull request Aug 29, 2023
- Downgrade from 10.5.0 to 10.4.2 as it does not work for our YAML lang
-- Chevrotain/chevrotain@v10.4.2...v10.5.0
-- Main extension: Chevrotain/chevrotain#1917
harmen-xb added a commit to CrossBreezeNL/crossmodel that referenced this pull request Oct 18, 2023
* New examples, + moving old examples around

* Does not work good enough yet, but it work enough to keep going

* Implemented testing for new language

* GmodelFactory refactor, serailizer broken, fixing that first

* Rewrote serializer, now dynamic and works with Yaml

* GModel-factory now works with new lang

* Extension should be working with new language

* Fix error about character needing to be non-negative caused by  '-1'

* Fix errors by using a specific chevrotain version

- Downgrade from 10.5.0 to 10.4.2 as it does not work for our YAML lang
-- Chevrotain/chevrotain@v10.4.2...v10.5.0
-- Main extension: Chevrotain/chevrotain#1917

* To get it working on my machine

* readme update for license

* fixing tests

* Improve stability of cross-updates and fix edge structure

- Ensure edges (relationships) are created between nodes (entities)
-- Ensure node entity matches expected relationship entity

- Improve stability of cross-updates
-- Ensure 'save' does an implicit 'update' of the internal structure
-- Ensure update only updates text editor when it was opened
-- Only do full textual updates to avoid merging issues
-- Let UI react to updates, not only on save
-- Debounce model update for form editor

- Minors
-- Adapt grammar to better reflect semantic element (instead of 'for')
-- Always serialize properties in same order

* Update example files and fix IDs for GLSP server for better update

* Extend protocol with client id and improve update mechanism

- Use open/close as lifecycle methods for clients
- Let extension startup early to handle non-textual editors

* Fixed wrong use of name vs name_val when showing and synching the model.

* Added missing name property on Order entity.

* Initial gitpod setup.

* Added yarn test in build action.

* Refactored test build part into seperate action and added in feature build only (for now).

* Disabled test action for now, since it doesn't seem to work on GitHub easily.

* Refactored serializer so indentation and characters used are in constants.
Updated/added some comments.
Updated model-service-impl so have more specific console/promise messages and added some comments.

---------

Co-authored-by: Özcan Seker <ozcan@x-breeze.com>
Co-authored-by: Harmen Wessels <harmen@x-breeze.com>
Co-authored-by: Harmen Wessels <97173058+harmen-xb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants