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

[Discussion] Possible solution to fix delays and versioning confusion: Merge typescript-deno-plugin into vscode_deno? #78

Closed
David-Else opened this issue Jun 6, 2020 · 7 comments

Comments

@David-Else
Copy link

David-Else commented Jun 6, 2020

Versioning confusion

At the moment we have:

The vscode_deno 1.24.0 official plugin that depends on, and is currently bundled with the 3rd party typescript-deno-plugin 1.29

  • typescript-deno-plugin v1.29.0 was released 19 days ago
  • It is now up to version v1.31.0 which was released 8 days ago. vscode_deno 1.24.0 still includes typescript-deno-plugin 1.29, not the new one.

There is no changelog for vscode_deno https://github.com/denoland/vscode_deno/releases

And the VS Marketplace one does not make sense: https://marketplace.visualstudio.com/items/denoland.vscode-deno/changelog

Moved from https://github.com/justjavac/vscode-deno to https://github.com/denoland/vscode_deno in order to have an "official" Deno plugin. Thank you 迷渡!

Problems of having a split codebase

It seems half the bug fixes are more relevant to the typescript-deno-plugin, which is not official and is not where users are directed to for reporting issues. If they do get through to that repo, and get the bug fixed, then they don't get merged into the vscode_deno extension right away. There is a random time-lapse that means all the error reports on the two different repos are out of sync.

I don't want to sound like I am complaining, and really appreciate the work @justjavac and others are doing, but something seems fundamentally wrong with the way this extension is setup and operates.

There should be one central place that people report bugs, and at least a few different people with the authority to accept the pull requests for the official Deno plugin as a whole, not split up. Having the extension split over two separate codebases, one official and the other 3rd party seems very complicated and unnecessary.

I spent a while this morning puzzling over why my JS was getting treated like it was TS even with "deno.enable": false. When I turn off the extension then it works! I think this bug was fixed in typescript-deno-plugin v1.30.0, 9 days ago #60, but I don't know as it is not yet merged into vscode_deno

I hope this issue has not been too confused, but I am very confused by the whole VS Code Deno extension situation.

THANKS again to everyone involved!

@Coteh
Copy link

Coteh commented Jun 6, 2020

I spent a while this morning puzzling over why my JS was getting treated like it was TS even with "deno.enable": false. When I turn off the extension then it works!

Getting this as well. In addition, I am also getting the problem mentioned in #36 in non-Deno .js files. @justjavac already mentioned that #36 is not behaviour of the extension, but turning off extension completely gets rid of it, just like this issue. It's possible then that both of these issues are linked to the plugin, if it's not the extension itself causing them.

@Coteh
Copy link

Coteh commented Jun 7, 2020

A workaround for this problem (and all the other ones that have been linked to this issue) is to clone from master and replace the installed VS Code Marketplace version with the cloned directory. The Marketplace version should be located in user extensions directory. To save a Google search for those who don't already know, user extensions directory is in:

Windows %USERPROFILE%\.vscode\extensions
macOS ~/.vscode/extensions
Linux ~/.vscode/extensions

Now just find denoland.vscode-deno-1.24.0 and overwrite it with version from master.

@David-Else
Copy link
Author

David-Else commented Jun 7, 2020

EDIT: The new version was published to the Marketplace but the update was not triggered by VS Code. Completely uninstall your current version, close and open VS Code to make sure the cached version is deleted, and re-install. Now you have the update! The version number was not updated.

And the update broke the extension for me #80 (comment)

--
@Coteh Thanks for the info, but It seems that this dependency update was made to vscode_deno 9 days ago, Unfortunately, it has not been published to the market place!

3bb664e#diff-b9cfc7f2cdf78a7f4b91a753d10865a2

  "dependencies": {
    "typescript-deno-plugin": "^1.31.0"
  }

Another big fix landed yesterday too, so you might want to clone this repo instead until someone updates the VS Marketplace.

@TTSKarlsson
Copy link

The marketplace denoland 1.24.0 plugin does have ^1.31.0 as dependency though, so that's not the issue at all. It also didn't work before the update 9 days ago, and it didn't work before the update yesterday either. Only the old plugins from justjavac and axetroy works (slightly).

image

@justjavac
Copy link
Contributor

justjavac commented Jun 8, 2020

it is a good idea, typescript-deno-plugin is not only used in vscode, but also used by vim and idea. This week I will transfer this repo.

build typescript-deno-plugin into the vscode plugin, and we still need to publish typescript-deno-plugin to npm

@jsejcksn
Copy link
Contributor

jsejcksn commented Jul 6, 2020

typescript-deno-plugin is not only used in vscode, but also used by vim and idea

and we still need to publish typescript-deno-plugin to npm

☝️ Very important that it remains separately available to other consumers

@lucacasonato
Copy link
Member

lucacasonato commented Sep 8, 2020

This is merged in the repo now.

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

Successfully merging a pull request may close this issue.

6 participants