Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

No TypeScript code intel on GitHub.com #1502

Closed
nicksnyder opened this issue Dec 19, 2018 · 5 comments
Closed

No TypeScript code intel on GitHub.com #1502

nicksnyder opened this issue Dec 19, 2018 · 5 comments
Assignees
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)

Comments

@nicksnyder
Copy link
Contributor

Go to https://github.com/sourcegraph/sourcegraph/blob/master/web/src/backend/graphql.tsx and see no code intelligence.

Error in the console:

Error activating extension "sourcegraph/lang-typescript": i: error thrown while executing extension "sourcegraph/lang-typescript" bundle (in importScripts of blob:chrome-extension://dgjhfomjieaadpoljlnidmbgkdffpack/3ea115ca-e36a-4dc5-9db9-7b15da14523b): Error: Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' blob:".

We noticed this after we deployed the new prod cluster. I unfortunately don't know if this was an issue pre-deploy.

@nicksnyder
Copy link
Contributor Author

nicksnyder commented Dec 19, 2018

@felixfbecker @lguychard can one of you investigate this?

@nicksnyder nicksnyder added bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) labels Dec 19, 2018
@felixfbecker
Copy link
Contributor

If this does not happen on Sourcegraph then it looks like a browser extension issue to me, specifically a permissions issue, and I assume it happens for all extensions not just typescript. What browser are you using?

@lguychard
Copy link
Contributor

This does not happen for all extensions, happens only for lang-typescript (eg no issue for lang-go)

@felixfbecker
Copy link
Contributor

@felixfbecker
Copy link
Contributor

Fixed by removing Protobuf support in our fork
Also released new bext version

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug An error, flaw or fault that produces an incorrect or unexpected result, or behavior. team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)
Projects
None yet
Development

No branches or pull requests

5 participants