Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

How to rename dart file in VSCode?

$
0
0

Working with dart/flutter in VSCode (1.38.1). I want to rename a class, so want to rename its dart file. I right-click on the filename in VSCode and rename the dart file. I then change all its imports to reflect the name, but when I run Debug, I get the error

path\old_name.dart were declared as an inputs, but did not exist. Check the definition of target:kernel_snapshot for errors

What more does one have to do to rename a file in VSCode/dart?

EDIT: I tried "flutter clean" but it still resulted in the error.


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>