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

Error running 'main.dart': Language Language: Dart doesn't participate in view provider #6633

Closed
VladimirCores opened this issue Feb 21, 2023 · 7 comments

Comments

@VladimirCores
Copy link

Facing a problem running app on Fedora 37:

Error running 'main.dart': Language Language: Dart doesn't participate in view provider com.jetbrains.lang.dart.psi.impl.DartExpressionCodeFragmentImpl$1{vFile=LightVirtualFile: /dummy.dart, content=VirtualFileContent{size=0}, eventSystemEnabled=true}: [Language: TEXT]

Screenshot from 2023-02-21 14-04-18

Dart & Flutter plugins versions:
image

image

However running from terminal with flutter run -d emulator-5554 works.
Need help.

@stevemessick
Copy link
Member

Can you run your app using the same emulator you use in the terminal?

@stevemessick stevemessick added the waiting for customer response Auto-close if no response label Feb 21, 2023
@VladimirCores
Copy link
Author

Yes, application runs, but the Debug section of the IDE is not working.

image

@github-actions github-actions bot removed the waiting for customer response Auto-close if no response label Feb 22, 2023
@alexander-doroshko
Copy link
Contributor

@VladimirCores Please open Settings -> Editor -> File Types and check Text file type. What file names patterns are associated with text files? By default there's only *.txt. I guess you have something related to Dart there. Remove that pattern and you won't see the problem again.

@VladimirCores
Copy link
Author

Yes, it has:

Screenshot from 2023-02-22 12-22-07

And file type *.dart was missed in the Dart section

Screenshot from 2023-02-22 12-24-42

Adding *.dart to that section fixed the issue.

Thank you @alexander-doroshko for the hint! : )
(BTW how you guessed about that?)

@alexander-doroshko
Copy link
Contributor

alexander-doroshko commented Feb 22, 2023

BTW how you guessed about that?

I'm from JetBrains =)

@stevemessick
Copy link
Member

@alexander-doroshko Thanks! I suspected this was not an issue with either plugin but wasn't sure where to look next.

@VladimirCores
Copy link
Author

Actually on initial plugin installation it did not recognize the file format *.dart.

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

No branches or pull requests

3 participants