question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fragments do not work as expected

See original GitHub issue

I’m working on a plantuml grammar and fragments do not work as expected:

This works well:

relationType
:
	(
		'|o'
		| '||'
		| '}o'
		| '}|'
		| '}'
	)
	(
		(
			'-'+
			(
				'left'
				| 'right'
				| 'top'
				| 'down'
			) '-'+
		)
		| '-'+
	)
	(
		'{'
		| 'o{'
		| 'o|'
		| '|{'
		| '||'
	)
	| '-->'
;

This gives line 34:16 no viable alternative at input '-------down' :

relationType
:
	(
		'|o'
		| '||'
		| '}o'
		| '}|'
		| '}'
	)
	(
		(
			'-'+ DIRECTION '-'+
		)
		| '-'+
	)
	(
		'{'
		| 'o{'
		| 'o|'
		| '|{'
		| '||'
	)
	| '-->'
;

fragment
DIRECTION
:
	'left'
	| 'right'
	| 'top'
	| 'down'
;

Line: A7 }o-------down----------{ B7

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KvanTTTcommented, Nov 7, 2021

@parrt @ericvergnaud please close since it’s duplicate.

0reactions
KvanTTTcommented, Dec 29, 2020

Also, it’s a duplicate of #2886

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fragment Tabs inside Fragment not working as expected
I have everything set up but the issue I have is that my the fragments in my viewPager and appBarLayout are not working...
Read more >
Fragments inflated via AndroidViewBinding don't work as ...
If you use FragmentContainerView , the fragment appears the first time the container is inflated, but later times it does not appear.
Read more >
<none> does not work as expected with fragments - Drupal
Problem/Motivation For some external reasons the route does not work as expected. It prints out "/subdir#fragment" instead of "#fragment".
Read more >
Debug your fragments | Android Developers
This guide covers tools that you can use to debug your fragments. ... These may not work as expected if you use the...
Read more >
What are React Fragments? - Briebug Blog
This is fine in most cases but in some instances the <div> wrapper will not work as expected. I will give you an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found