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

How to debug frontend_server #44485

Open
GvcZhang opened this issue Dec 16, 2020 · 1 comment
Open

How to debug frontend_server #44485

GvcZhang opened this issue Dec 16, 2020 · 1 comment
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. type-question A question about expected behavior or functionality

Comments

@GvcZhang
Copy link

https://github.com/dart-lang/sdk/blob/stable/pkg/frontend_server/lib/frontend_server.dart

When I open frontend_server source code by Android Studio, and execute pub get,the console will print

Resolving dependencies...
Because every version of vm from path depends on kernel from hosted and frontend_server depends on kernel from path, vm from path is forbidden.
So, because frontend_server depends on vm from path, version solving failed.
Process finished with exit code 1

How can i debug it ?

@franklinyow franklinyow added the type-question A question about expected behavior or functionality label Dec 16, 2020
@mit-mit mit-mit added the area-front-end Use area-front-end for front end / CFE / kernel format related issues. label Dec 17, 2020
@johnniwinther
Copy link
Member

None of the pkg/ folders in the sdk use the pubspec.yaml files to handle their dependencies - they instead use the shared .dart_tool/package_config.json file which is generated by tools/generate_package_config.dart. Normally the package_config.json file should be found automatically when running dart on files in these folder. Otherwise, you can provide it to dart using the --packages= option.

Do note that some Dart files (tests in particular) may assume that the current directory is the sdk root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. type-question A question about expected behavior or functionality
Projects
None yet
Development

No branches or pull requests

4 participants