-
Notifications
You must be signed in to change notification settings - Fork 5.6k
java, dpg, tspconfig, remove wrong emitter-output-dir #36663
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,6 @@ options: | |
| slice-elements-byval: true | ||
| flavor: "azure" | ||
| "@azure-tools/typespec-java": | ||
| emitter-output-dir: "{project-root}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eventually everyone will be moved to emitter output dir..this should be: OR:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same for the other instance
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, we will eventually use the new pattern |
||
| namespace: com.azure.messaging.eventgrid.systemevents | ||
| package-dir: azure-messaging-eventgrid-systemevents | ||
| customization-class: customization/src/main/java/EventGridSystemEventsCustomization.java | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weidongxu-microsoft I dont see why they couldnt they just use this:
It looks like for some reason they're trying to manually parse and separate out the service-dir instead just using the variable directly.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They can. But not based on
{java-sdk-folder}, as it defined as{project-root}/azure-sdk-for-java/(where the{project-root}would be in that temp folder).Yes, I am aware that eventually, this would be the path depends on
{output-dir}.But since the 0.28.0 is released recently, change tspconfig directly to the new pattern, and sync it to SDK repo (we need to sync, because current one causes error in pipeline), this may break dev's workflow (they may be using older version of it -- and that puzzled me a lot when diagnosing on the failure, because my local works fine as I am using the older version of tsp-client), unless properly notified (I will put a notice in java channel).
Hence here I am currently just make it use the old pattern.
PS: here I am trying to resolve an immediate failure in SDK repo, that latest tsp-client would use this wrong
emitter-output-dirand then cause error in the pipeline -- there is a pipeline in SDK that involve re-generate code upon PR, here it cannot load the proper file, because the emitter-output-dir is wrong