fix(tests): Error: No parser could be inferred for file #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR was opened because of the error in the actions:
https://github.com/ui5-community/generator-ui5-project/runs/5611992482?check_suite_focus=true
Seems like @nicogeburek tried to fix it with this commit? cc61307
My solution was to add--ignore-unknown
because of this entry:https://github.com/prettier/prettier/blob/24d39a906834cf449304dc684b280a5ca9a0a6d7/website/blog/2020-08-24-2.1.0.md#added---ignore-unknownalias--u-flag-8829-by-fiskerSolution was wrong, reverted the old solution.
New solution:
Based on a old prettier issue (prettier/prettier#8056) i found this workaround: withastro/prettier-plugin-astro#97 (comment)
This solution makes more sense because in the error log is:
Error: No parser could be inferred for file: uimodule/webapp/view/MainView.view.xml
So probably prettier does not find the prettier plugin
@prettier/plugin-xml
to parse xml.With this solution prettier uses the plugin.