carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
https://github.com/carbon-language/carbon-lang/blob/trunk/README.md
Other
32.31k stars 1.48k forks source link

Where are the examples? #3996

Closed panjea closed 1 month ago

panjea commented 1 month ago

Description of the bug:

Inside of carbon-lang/examples there is just a single file, sieve.carbon, and not much in there. The front page docs say run this command: bazel run //explorer -- ./explorer/testdata/print/format_only.carbon But using my file manage in Linux, i can not quickly go to that folder, because its a hidden folder. Why are the examples inside a hidden folder?

my workaround:

cd carbon-lang
open ./explorer/testdata

Link to documentation:

No response

What should it say instead?

No response

Any other information, logs, or outputs that you want to share?

No response

chandlerc commented 1 month ago

You've found the two examples we have.

Not sure what the problem is you're having running the explorer, that's a command that you can directly execute. And the explorer/testdata directory shouldn't be hidden? That may be a problem with your system, not the project.

Please re-open if you're having a specific issue running the explorer.