microsoft / CodeT

MIT License
599 stars 76 forks source link

No such file or directory: 'prompts/rg-one-gram-ws-20-ss-2.jsonl' #34

Closed pku-goto closed 2 months ago

pku-goto commented 4 months ago

Hi Authors, Thank you for the work on RepoCoder.

Some errors were resolved with issues, but there were still others that could not be resolved. The error we are facing now is: FileNotFoundError: [Errno 2] No such file or directory: 'prompts/rg-one-gram-ws-20-ss-2.jsonl'

I would expect 'prompts/rg-one-gram-ws-20-ss-2.jsonl' to be generated automatically if run_pipeline.py is running. Since the directory 'prompts' is not generated either, should we create this ourselves?

zfj1998 commented 4 months ago

Can you provide more detailed steps/code to reproduce your issue?

binwensun commented 3 months ago

same issue!plz help me!

JJYDXFS commented 2 months ago

I tried to create two empty files with same name (i.e. prompts/rg-one-gram-ws-20-ss-2.jsonl and predictions/rg-one-gram-ws-20-ss-2_samples.0.jsonl) under RepoCoder/. Then the script run_pipeline.py can be run correctly. After the program is finished running, prompts/rg-one-gram-ws-20-ss-2.jsonl will be filled.

binwensun commented 2 months ago

thx for your reply!got it!thx!

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: Ying ZHANG @.> 发送时间: Thursday, August 15, 2024 2:07:17 PM 收件人: microsoft/CodeT @.> 抄送: SUN, Binwen [Alumni] @.>; Comment @.> 主题: Re: [microsoft/CodeT] No such file or directory: 'prompts/rg-one-gram-ws-20-ss-2.jsonl' (Issue #34)

CAUTION: This email is not originated from PolyU. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I tried to create two empty files with same name (i.e. prompts/rg-one-gram-ws-20-ss-2.jsonl and predictions/rg-one-gram-ws-20-ss-2_samples.0.jsonl) under RepoCoder/. Then the script run_pipeline.py can be run correctly. After the program is finished running, prompts/rg-one-gram-ws-20-ss-2.jsonl will be filled.

― Reply to this email directly, view it on GitHubhttps://github.com/microsoft/CodeT/issues/34#issuecomment-2290733803, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2SEINQLLXYBP54X6QTS3XTZRRARLAVCNFSM6AAAAABISICXPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJQG4ZTGOBQGM. You are receiving this because you commented.Message ID: @.***>

[https://www.polyu.edu.hk/emaildisclaimer/PolyU_Email_Signature.jpg]

Disclaimer:

This message (including any attachments) contains confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this message and notify the sender and The Hong Kong Polytechnic University (the University) immediately. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited and may be unlawful.

The University specifically denies any responsibility for the accuracy or quality of information obtained through University E-mail Facilities. Any views and opinions expressed are only those of the author(s) and do not necessarily represent those of the University and the University accepts no liability whatsoever for any losses or damages incurred or caused to any party as a result of the use of such information.

zfj1998 commented 2 months ago

This bug is due to the directories "prompts" and "predictions" haven't been created. I have fixed this bug in the latest commit of the zfj/RepoCoder branch