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

"No such file or directory" error while parsing C++ code #217

Open
Ytz-Ichi opened this issue Oct 21, 2022 · 1 comment
Open

"No such file or directory" error while parsing C++ code #217

Ytz-Ichi opened this issue Oct 21, 2022 · 1 comment

Comments

@Ytz-Ichi
Copy link

Hi, I am not fluent in English so I am using DeepL, so please forgive me if I am using strange expressions.
I have extracted some C++ source code in IBM/Project_CodeNet and am trying to parse them, but the following error message appears frequently and finally stops with an error.

$ ./cli.sh fuzzy.yaml
Docker image not found, will use build/shadow/astminer.jar
Working in 4 thread(s)
Parsing Cpp
420898 file(s) found
rm: __tmp_code.cpp: No such file or directory
rm: __tmp_include.cpp: No such file or directory
rm: __tmp_preprocessed.cpp: No such file or directory
rm: __tmp_code.cpp: No such file or directory
rm: __tmp_include.cpp: No such file or directory
rm: __tmp_preprocessed.cpp: No such file or directory
rm: __tmp_code.cpp: No such file or directory
rm: __tmp_include.cpp: No such file or directory
rm: __tmp_preprocessed.cpp: No such file or directory

The curious thing about this error is that it does not occur on initial startup, but only after an attempt to abort with Ctrl+C for convenience. Once this error occurs, the same error occurs on the same machine, whether reinstalling astminer or creating a completely new environment by unzipping the dataset, etc.

I have searched Google and the issues here as much as possible, but have been unable to find a way to reach a solution.
Any advice you can give me on how to solve this problem would be greatly appreciated!

@Ytz-Ichi
Copy link
Author

Config file.

# input directory (path to project)
inputDir: ../CodeNetExt
# output directory
outputDir: output

parser:
  name: fuzzy
  languages: [cpp]

filters:
  - name: by function name length
    maxWordsNumber: 10
  - name: by words number
    maxTokenWordsNumber: 50

label:
  name: function name

storage:
  name: code2vec
  maxPathLength: 9
  maxPathWidth: 2

numOfThreads: 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant