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

1.37 breaks the fsprovider-sample extension #78961

Closed
gjsjohnmurray opened this issue Aug 12, 2019 · 11 comments
Closed

1.37 breaks the fsprovider-sample extension #78961

gjsjohnmurray opened this issue Aug 12, 2019 · 11 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release verified Verification succeeded

Comments

@gjsjohnmurray
Copy link
Contributor

Issue Type: Bug

  1. Install a fresh 1.36.1
  2. Follow the README instructions at https://github.com/microsoft/vscode-extension-samples to clone the repo, then launch VS Code on the fsprovider-sample folder, then npm install and then F5 to run the sample.
  3. Follow the README at https://github.com/Microsoft/vscode-extension-samples/tree/master/fsprovider-sample to run the MemFS: Setup Workspace command in the Extension Host window.
  4. Continue with those instructions and run MemFS: Create Files
  5. Confirm that the explorer tree is populated.
  6. Close the EH window without saving the workspace.
  7. Upgrade the remaining VS Code window to 1.37.
  8. Launch fsprovider-sample again using F5.
  9. Run MemFS: Setup Workspace
  10. Run MemFS: Create Files and observe the command 'memfs.init' not found error message.

The fact that an upgrade from 1.36.1 to 1.37.0 breaks this sample extension suggests the existence of a breaking change.

VS Code version: Code 1.37.0 (036a6b1, 2019-08-08T02:33:50.993Z)
OS version: Windows_NT x64 10.0.17134

@gjsjohnmurray
Copy link
Contributor Author

Another clue.

After step 9 save the workspace (File\Save Workspace As...). Observe the Cannot read property 'replace' of undefined message. Close the workspace, then reopen it from the .code-workspace file saving created. Now you can run the MemFS: Create Files command successfully.

@jrieken jrieken added the info-needed Issue requires more information from poster label Aug 12, 2019
@jrieken
Copy link
Member

jrieken commented Aug 12, 2019

I have just tried with 1.37.0 and everything works as expected.

Upgrade the remaining VS Code window to 1.37.

⬆️ not sure what that means. Did you have different windows of the same app running different versions?

@jrieken
Copy link
Member

jrieken commented Aug 12, 2019

@bpasero you mentioned an issue about missing activation events when restarting the extension host. does that apply here?

@jrieken jrieken removed the info-needed Issue requires more information from poster label Aug 12, 2019
@jrieken
Copy link
Member

jrieken commented Aug 12, 2019

I actually can reproduce...

@bpasero
Copy link
Member

bpasero commented Aug 12, 2019

@jrieken there were 2 changes. The first is to do an atomic restart of the extension host (a383dc0) and the second a bugfix that happened when entering a workspace in an empty window running extension development (4968e0a). I tested the mem-fs extension specifically after fixing this, but only running out of sources.

PS: my changes are only in insiders

@jrieken
Copy link
Member

jrieken commented Aug 12, 2019

Yes, I cannot reproduce with 1.38. Closing as duplicate of such changes. @bpasero leaving it up to you to decide if this should be fixed for 1.37.x

@jrieken jrieken added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 12, 2019
@vscodebot
Copy link

vscodebot bot commented Aug 12, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Aug 12, 2019
@gjsjohnmurray
Copy link
Contributor Author

The error message in #78809 (comment) looks similar to what I logged here, so perhaps the issues @bpasero has fixed in Insiders are having a wider effect on 1.37 users?

@gjsjohnmurray
Copy link
Contributor Author

Confirming that it works for me too with today's 1.38.0-insider

@gjsjohnmurray
Copy link
Contributor Author

For the record, duplicate of #77419. I vote for the fix to go into 1.37.1 Recovery.

@bpasero bpasero reopened this Aug 13, 2019
bpasero added a commit that referenced this issue Aug 13, 2019
@bpasero bpasero assigned bpasero and unassigned jrieken Aug 13, 2019
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release and removed *duplicate Issue identified as a duplicate of another issue(s) labels Aug 13, 2019
@bpasero bpasero added this to the July 2019 Recovery milestone Aug 13, 2019
@bpasero
Copy link
Member

bpasero commented Aug 13, 2019

Opened #79006

bpasero added a commit that referenced this issue Aug 13, 2019
@bpasero bpasero closed this as completed Aug 13, 2019
@RMacfarlane RMacfarlane added the verified Verification succeeded label Aug 14, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants