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

Chrome plugin not working for certain typescript atoms #509

Closed
epelc opened this issue Oct 24, 2018 · 6 comments
Closed

Chrome plugin not working for certain typescript atoms #509

epelc opened this issue Oct 24, 2018 · 6 comments
Assignees
Labels
team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)

Comments

@epelc
Copy link

epelc commented Oct 24, 2018

  • Sourcegraph version: 1.17.0
  • Platform information: Chrome Version 70.0.3538.67 (Official Build) (64-bit) and 70.0.3538.77 (Official Build) (64-bit) MacOS 10.14

Steps to reproduce:

  1. Get the chrome plugin
  2. Hover over protected on this line

image
https://github.com/angular/flex-layout/blob/master/src/lib/flex/layout/layout.ts#L46

Hovering over the field name works though.

image

Expected behavior:

Should show type info

Actual behavior:

You get an error. I've also seen errors like Error fetching hover from language server:. Not sure if this is intermittent issues on entire projects or just some local typescript problem? I've been seeing errors for a couple weeks like this. Today is the first time I noticed it halfway working on some things as pointed out by Dan.

@epelc
Copy link
Author

epelc commented Oct 24, 2018

I've also noticed limited functionality in my sourcegraph plugin options for some reason. Not sure if this is related or how to fix.

image

@dadlerj dadlerj added browser-extension team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) labels Oct 24, 2018
@ijsnow
Copy link
Contributor

ijsnow commented Oct 24, 2018

Hey, thanks for reporting!

Looks like this is a javascript-typescript-langserver issue. @felixfbecker would know for sure. I'll leave this issue open before moving it to that issue tracker so Felix can confirm.

And the "Limited Functionality" message is a misleading prompt and will be removed soon. It's just trying to tell you that you can't get all the features from sourcegraph.com that you can with your own instance of Sourcegraph (e.g. private repo support).

And FYI, the browser extension is also open source so feel free to file issues you're having with it in it's issue tracker!

@felixfbecker
Copy link
Contributor

The official TypeScript service (that we use) doesn't show a hover for the visibility modifiers, only for the actual symbol name. I think that is as designed. You're seeing the errors cause there was an install error and when no hover is returned it may be caused by this error so we show it, but we still try to get the hover and return it if we find it (which is what happens when you hover the symbol name)

@sqs
Copy link
Member

sqs commented Oct 25, 2018

@epelc The limited functionality message is just because Sourcegraph.com does not support private code. We are improving that UX soon (WIP PR sourcegraph/browser-extensions#271 if you're curious).

@sqs sqs added this to the November 2018 milestone Oct 25, 2018
@sqs sqs unassigned ijsnow Oct 25, 2018
@sqs sqs modified the milestones: November 2018, 3.0-preview Nov 10, 2018
@sqs
Copy link
Member

sqs commented Dec 6, 2018

@felixfbecker Is there any resolution/change, or is this wontfix?

@felixfbecker
Copy link
Contributor

I think there is nothing actionable here

BolajiOlajide pushed a commit that referenced this issue Apr 16, 2024
This implements https://github.com/sourcegraph/sourcegraph/issues/18330 by querying the locations of `.batchignore` files in each repository yielded by the `on` attribute in a batch spec. If locations were found, the repository is ignored.

This can be overwritten by using the `-force-override-ignore` flag.

Example: given my instance has the following repositories:

- `github.com/sourcegraph-testing/zap`
- `github.com/sourcegraph-testing/titan`
- `github.com/sourcegraph-testing/tidb`
- `github.com/sourcegraph-testing/etcd`
- `github.com/sourcegraph-testing/batch-changes-testing-ignore`

And I use the following batch spec:

```yaml
on:
  - repositoriesMatchingQuery: repohasfile:README.md repo:sourcegraph-testing

steps:
  - run: echo "a horse says 'hello'" >> README.md
    container: alpine:3
```

with this change the `batch-changes-testing-ignore` repository will be ignored:

- no archive will be downloaded
- no steps executed

A message is printed that says it's ignored.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)
Projects
None yet
Development

No branches or pull requests

5 participants