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

Response got filtered when tried to change a pom.xml #1940

Closed
showpune opened this issue Oct 20, 2024 · 2 comments
Closed

Response got filtered when tried to change a pom.xml #1940

showpune opened this issue Oct 20, 2024 · 2 comments
Assignees
Labels
duplicate This issue or pull request already exists public-code-blocking Responses blocked due to public code matches

Comments

@showpune
Copy link

showpune commented Oct 20, 2024

  • Copilot Chat Extension Version:
  • VS Code Version: v1.239.0
  • OS Version: Windows 11
  • Logs:

Steps to Reproduce:

I tried to use the copilot to change a pom.xml, but got the response filter error, you can just input the following text to chat with copilot

Change the required dependencies in the given pom.xml

  1. Add Managed dependency:
    groupId: com.azure.spring
    artifactId: spring-cloud-azure-dependencies
    version: 5.17.1
    scope: import
    type: pom
    Note: If you're using Spring Boot 2.x, be sure to set the spring-cloud-azure-dependencies version to 4.19.0.
  2. Add Dependencies:
    groupId: com.azure.spring
    artifactId: spring-cloud-azure-starter
    groupId: com.azure.spring
    artifactId: spring-cloud-azure-starter-storage-blob
  3. Remove the aws s3 dependencies:
    groupId: io.awspring.cloud
    artifactId: spring-cloud-aws
    GroupId: io.awspring.cloud
    ArtifactId: spring-cloud-aws-starter-s3

Given pom.xml as below:

<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
  xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd\">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>3.3.0</version>
    <relativePath/> <!-- lookup parent from repository -->
  </parent>
  <groupId>com.example</groupId>
    <artifactId>s3-client</artifactId>
  <version>0.0.1-SNAPSHOT</version>
    <name>s3</name>
  <description>Demo project for Spring Boot</description>
  <properties>
    <java.version>17</java.version>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.awspring.cloud</groupId>
        <artifactId>spring-cloud-aws</artifactId>
        <version>3.1.1</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.awspring.cloud</groupId>
      <artifactId>spring-cloud-aws-starter-s3</artifactId>
    </dependency>
   </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>

</project>

You will get the error as below:
Image

@github-actions github-actions bot added the triage-needed Issues needing to be assigned to the prospective feature owner label Oct 20, 2024
@showpune
Copy link
Author

According to https://docs.github.com/en/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/managing-copilot-policies-as-an-individual-subscriber#enabling-or-disabling-duplication-detection, customer public code setting is set by organization and can't be changed

I use the Microsoft account setting and it doesn't work

@aeschli aeschli assigned digitarald and unassigned aeschli Oct 23, 2024
@github-actions github-actions bot removed the triage-needed Issues needing to be assigned to the prospective feature owner label Oct 23, 2024
@digitarald digitarald added the public-code-blocking Responses blocked due to public code matches label Nov 15, 2024
@bhavyaus
Copy link
Contributor

Thanks for creating this issue! We figured it's covering the same as another one we already have: #2626. Please refer to that one for updates and discussions. Feel free to open a new issue if you think this is a different problem.

@bhavyaus bhavyaus added the duplicate This issue or pull request already exists label Nov 17, 2024
@bhavyaus bhavyaus closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists public-code-blocking Responses blocked due to public code matches
Projects
None yet
Development

No branches or pull requests

4 participants