question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"shell" is not supported

See original GitHub issue

Hi I saw the shell is supported in this page: https://github.com/rajinwonderland/react-code-blocks/blob/master/LANGUAGES.md

But it gave me this error

Unhandled Rejection (Error): Language shell not supported

image

“bash” is working ok. Would it be a typo in the document? Where is the gold source of all supported language list?

Thanks in advanced

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
bofeiwcommented, Apr 9, 2021

This issue still occurs in version 0.0.8 published in npm.

2reactions
lawrencechingcommented, Oct 17, 2020

Reading your code, I saw you’re using Prism highlighter by default

// https://github.com/rajinwonderland/react-code-blocks/blob/master/packages/react-code-blocks/src/components/Code.tsx#L2

import React, { PureComponent } from 'react';
import { PrismAsyncLight as SyntaxHighlighter } from 'react-syntax-highlighter';
import { applyTheme } from '../utils/themeBuilder';

And you normalized the bash to shell

// https://github.com/rajinwonderland/react-code-blocks/blob/master/packages/react-code-blocks/src/utils/normalizeLanguage.ts#L67-L70

{
    name: 'Shell',
    alias: ['shell', 'bash', 'sh', 'ksh', 'zsh'],
    value: 'shell',
  },

And then I checkout the react-syntax-highlighter https://github.com/react-syntax-highlighter/react-syntax-highlighter/tree/master/src/languages/prism

It looks like Prism support bash instead of shell. However, hljs supports both bash and shell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

podman build produces "SHELL is not supported for OCI ...
When I try to build images from said Dockerfiles with podman version 2.1.1, I get the error message: "SHELL is not supported for...
Read more >
Troubleshooting "unsupported shell" error when discovering ...
(2) This error means that over ssh, the device is not giving a specific shell to use. The action plan here would be...
Read more >
1661592 – podman build produces ERRO[0000] HOSTNAME ...
Bug 1661592 - podman build produces ERRO[0000] HOSTNAME is not supported for OCI image format, hostname 1d561c58fd2b will be ignored.
Read more >
Setting SHELL causes a warning from podman - cki-project
Various include files here use the SHELL command. ... STEP 2: ENV IS_TRUE=no WARN[0016] SHELL is not supported for OCI image format, ...
Read more >
Error: 'Shell not supported on takenover partner' when logging ...
When logging into the service processor through SSH of a down node that is taken over, the following error is received: Shell not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found