Skip to content

Allow IDEs to recognize generated code #3332

Closed

Description

@avantgardnerio

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

Activity

  1. alamb commented on Sep 5, 2022

    @alamb
    Contributor

    I believe these changes were also included in #3311

  2. tustvold commented on Sep 12, 2022

    @tustvold
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions