Inform user to build dependencies/project to create sources generated by build scripts #4546
Labels
feature
subsystem::build scripts
subsystem::macros
Issues related to macros
subsystem::tools
Issues about integration with external tools like rustup, cargo, rustfmt, etc.
Environment
Problem description
#4542 finishes support of all common cases how
include
macro can be used. More precisely, it provides support ofenv("OUT_DIR")
inside macro call.OUT_DIR
variable is used by build scripts where they generated including code.But if a user hasn't compiled a project yet, all code insight features don't work because the plugin relies on existence of generated code in file system. And it's not clear that something doesn't work because build scripts haven't generated code yet.
It would be great to solve it somehow. For example, the plugin can show a notification to a user that expected generated sources are not present on file system. Or we can have an option to automatically build project/libraries/build scripts (see rust-lang/cargo#7068 and rust-lang/cargo#7178) to have an actual version of generated source code.
The text was updated successfully, but these errors were encountered: