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

Excited to use draft for the 1st time, got "Error: no supported languages were detected" #467

Open
khowling opened this issue Jan 12, 2025 · 1 comment

Comments

@khowling
Copy link

Describe the bug
Running draft create on my very simple Typescript project, created with a standard layout, and I get the error "Error: no supported languages were detected". Typescript is am extremely common server side language

project folder contains contracts.ts index.ts package.json tsconfig.json package-lock.json README.md`

Mention the platform you are using
Ubuntu 22.04.5 LTS
WSL2
draft 0.17.0

To Reproduce
Steps to reproduce the behavior:
run draft create in project folder

Expected behavior
options to create Dockerfile, and deployment metadata

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.5 LTS
  • Browser N/A

Additional context
Add any other context about the problem here.

@davidgamero
Copy link
Collaborator

thank you for reporting this issue

i was able to repro the bug, and i see it's an issue with the .ts extension in our language data is being associated with the xml format related to some config files. Our model is incorrectly detecting xml in the ts files content as well.

I've pushed a PR to fix this

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