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

Improve error message when language is not detected #1558

Open
BTWS2 opened this issue Jun 6, 2024 · 2 comments
Open

Improve error message when language is not detected #1558

BTWS2 opened this issue Jun 6, 2024 · 2 comments
Assignees

Comments

@BTWS2
Copy link

BTWS2 commented Jun 6, 2024

Describe the bug

could not detect language based on extension.
Please specify the language with the --language flag.Error: Could not detect language based on extension.
    at LanguagePicker.detectLanguage (file:///usr/local/lib/node_modules/@dodona/dolos/node_modules/@dodona/dolos-lib/dist/lib/language.js:113:19)
    at Dolos.analyze (file:///usr/local/lib/node_modules/@dodona/dolos/node_modules/@dodona/dolos-lib/dist/lib/dolos.js:117:53)
    at Dolos.analyzePaths (file:///usr/local/lib/node_modules/@dodona/dolos/node_modules/@dodona/dolos-lib/dist/lib/dolos.js:108:21)
    at async file:///usr/local/lib/node_modules/@dodona/dolos/dist/cli/commands/run.js:77:24
    at async tryCatch (file:///usr/local/lib/node_modules/@dodona/dolos/dist/cli/util/utils.js:102:9)
    at async run (file:///usr/local/lib/node_modules/@dodona/dolos/dist/cli/commands/run.js:62:5)

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://dodona.be/en/evaluations/???/
  2. Click on 'Detect plagiarism' of a HTML-exercise
  3. Oops! Something went wrong: non-zero exit code

Expected behavior
Message that HTML is not supported.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome

Additional context

  • What files were you analyzing? Dodona submissions
  • Which language? HTML
  • How many? 28
@BTWS2 BTWS2 added the bug Something isn't working label Jun 6, 2024
@rien
Copy link
Member

rien commented Jun 7, 2024

Dolos currently does not support HTML exercises (see #1029 (comment) for a reason why), so there is no parser registered for the HTML file extension. I'll create an issue with Dodona so they online include the integration for supported programming languages.

Dolos should give a better error message as well.

@rien rien changed the title Could not detect language based on extension. Improve error message when language is not detected Sep 19, 2024
@rien rien removed the bug Something isn't working label Oct 3, 2024
@rien
Copy link
Member

rien commented Nov 25, 2024

The same error is shown when a ZIP-file is submitted with no submissions. This error message should be different.

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

2 participants