Skip to content

Copilot should create a ./tmp folder rather than asking permission to use root level /tmp #380

@corneliusroemer

Description

@corneliusroemer

Describe the bug

copilot seems to want to create scripts in /tmp folder and then ask for permission to write/execute things there. This is annoying. It should just create a local ./tmp folder in the directory it already has permissions to use. This means less back and forth with user approval.

Affected version

0.0.339 Commit: 66f4dfe

Steps to reproduce the behavior

Not clear how to reproduce, seems to be general instruction thing, example:

 ● Now let me understand the actual problem. When compile() is called and there's a
   syntax error in the source code itself, Python raises a SyntaxError with the
   filename that was passed to compile(). The issue the user is reporting is that
   sometimes the filename shows as "<string>" instead of the actual Snakefile path.
   Let me create a test to reproduce this:

 ✗ Create a test Snakefile with syntax error
   $ cd /Users/cr/code/snakemake && cat > /tmp/test_snakefile_syntax.smk << 'EOF'
   rule all:
       input:
           "test.txt"

   rule test:
       output:
           "test.txt"
       shell:
           "echo hello > {output}"
           ),
   EOF
   cat /tmp/test_snakefile_syntax.smk
   Rejected by you.

Expected behavior

Local ./tmp folder is created/used

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions