Closed ekolve closed 3 years ago
I am trying to use the csharp extractor with the buildless option. My .lgtml.yml file looks like this:
buildless
.lgtml.yml
extraction: csharp: index: buildless: true nuget_restore: false path_classifiers: library: - unity/Assets/**/*.cs - exclude: unity/Assets/Scripts/*.cs - exclude: unity/Assets/Scripts/**/*.cs
When I ran Retry Build from the logs tab, I got the following error in the log. As well, it doesn't appear that my configuration was picked up. The build ran for sha d3b7b89e201ef8010f1aa93fce87368525febdfe, which has the configuration listed above.
https://storage.googleapis.com/semmle-oss-live-job-results/jobs/attempt-build/1620153552480/github_apps/allenai/ai2thor/csharp:attempt-builds:2805715483562877900/build.log?GoogleAccessId=semmle-oss-live%40appspot.gserviceaccount.com&Expires=1620244704&Signature=o1R1AV45OW2x38DfaVOTqQHuiEqC3agz2aE%2FYIifyxUmlNPnkOAOwtlRJqKuhoHN8j6jH%2Bw9kXJ5PjF0Q%2FHfprKSmJPhe9AwrZU%2BlAd7MCWcdPI28FWByliZ2wZ68rjwQ%2FcILRhxty6Dnw83rDKiv%2BrTgLvMJsIm8MO%2BEBxXWf9B3%2FYzG5BL%2Bo6fyYsb5VqbQbTBf5VY95c%2B0D1rGrAehR0SMprcerYlrfxJQQXJ3iSCvKeGasCzQtXQ%2BxG0yZ%2FieqfVNy0PV%2BPkf4%2Fj6FRtgOQdLjoTmOlHVgQFT4jgzJgrQ6m67fyQ86c4h7X%2BsmdmrkPsS79BwATmhIOOkkNnng%3D%3D&response-content-disposition=attachment%3B+filename%3D%22d3b7b89e201ef8010f1aa93fce87368525febdfe_build.log%22
/opt/out/snapshot: Running in /opt/src: [/opt/dist/tools/linux64/java/bin/java, -jar, /opt/lgtm-worker-tools.jar, interpretConfig, /opt/lgtm-worker-tools.jar, csharp, /opt/out/lgtm.effective.yml] [2021-05-04 18:59:20] [build-stdout] Configuration file: /opt/out/snapshot: Running in /opt/src: [/opt/work/lgtm-workspace/lgtm/extract.sh] [2021-05-04 18:59:23] [build-stdout] prepare: [2021-05-04 18:59:23] [build-stdout] index: [2021-05-04 18:59:24] [build-stderr] /opt/out/snapshot: Running in /opt/src: [/opt/dist/csharp/tools/autobuild.sh] [2021-05-04 18:59:25] [build-stdout] [2021-05-04 18:59:25] [build-stdout] CodeQL C# autobuilder [2021-05-04 18:59:25] [build-stdout] [2021-05-04 18:59:25] [build-stdout] Working directory: /opt/src [2021-05-04 18:59:25] [build-stdout] [2021-05-04 18:59:25] [build-stdout] Attempting to locate build script [2021-05-04 18:59:25] [build-stdout] [2021-05-04 18:59:25] [build-stderr] Error: Could not auto-detect a suitable build method [2021-05-04 18:59:25] [build-stdout] [2021-05-04 18:59:25] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/opt/dist/tools/linux64/preload_tracer, /opt/dist/csharp/tools/autobuild.sh]) [2021-05-04 18:59:25] [build-stderr] A fatal error occurred: Exit status 1 from command: [/opt/dist/csharp/tools/autobuild.sh] [2021-05-04 18:59:25] [ERROR] Spawned process exited abnormally (code 2; tried to run: [/opt/work/lgtm-workspace/lgtm/extract.sh]) A fatal error occurred: Exit status 2 from command: [/opt/work/lgtm-workspace/lgtm/extract.sh]
closing - typo in filename.
I am trying to use the csharp extractor with the
buildless
option. My.lgtml.yml
file looks like this:When I ran Retry Build from the logs tab, I got the following error in the log. As well, it doesn't appear that my configuration was picked up. The build ran for sha d3b7b89e201ef8010f1aa93fce87368525febdfe, which has the configuration listed above.
https://storage.googleapis.com/semmle-oss-live-job-results/jobs/attempt-build/1620153552480/github_apps/allenai/ai2thor/csharp:attempt-builds:2805715483562877900/build.log?GoogleAccessId=semmle-oss-live%40appspot.gserviceaccount.com&Expires=1620244704&Signature=o1R1AV45OW2x38DfaVOTqQHuiEqC3agz2aE%2FYIifyxUmlNPnkOAOwtlRJqKuhoHN8j6jH%2Bw9kXJ5PjF0Q%2FHfprKSmJPhe9AwrZU%2BlAd7MCWcdPI28FWByliZ2wZ68rjwQ%2FcILRhxty6Dnw83rDKiv%2BrTgLvMJsIm8MO%2BEBxXWf9B3%2FYzG5BL%2Bo6fyYsb5VqbQbTBf5VY95c%2B0D1rGrAehR0SMprcerYlrfxJQQXJ3iSCvKeGasCzQtXQ%2BxG0yZ%2FieqfVNy0PV%2BPkf4%2Fj6FRtgOQdLjoTmOlHVgQFT4jgzJgrQ6m67fyQ86c4h7X%2BsmdmrkPsS79BwATmhIOOkkNnng%3D%3D&response-content-disposition=attachment%3B+filename%3D%22d3b7b89e201ef8010f1aa93fce87368525febdfe_build.log%22