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

Allow IDEs to recognize generated code #3332

Closed
avantgardnerio opened this issue Sep 1, 2022 · 2 comments
Closed

Allow IDEs to recognize generated code #3332

avantgardnerio opened this issue Sep 1, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@avantgardnerio
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Presently, prost generates code into the target/ folder, which causes IDEs such as CLion to not be able to go to definition, or provide any auto-complete for this code, making it hard to work with.

Describe the solution you'd like

I'd like to move the generated code under the src/ folder, but .gitignore it.

Describe alternatives you've considered

  • Leave as is
  • Check in the generated code
@avantgardnerio avantgardnerio added the enhancement New feature or request label Sep 1, 2022
@alamb
Copy link
Contributor

alamb commented Sep 5, 2022

I believe these changes were also included in #3311

@alamb alamb closed this as completed Sep 5, 2022
@tustvold
Copy link
Contributor

FWIW I use CLion with generated code without issue, the trick is to run the build once, and then "Refresh Cargo Projects". You need to run the build first in order to actually generate the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants