microsoft / vscode-react-native

VSCode extension for React Native - supports debugging and editor integration
https://marketplace.visualstudio.com/items?itemName=vsmobile.vscode-react-native
Other
2.62k stars 266 forks source link

[Bug] Extension activating when it shouldn't #1891

Closed SethFalco closed 1 year ago

SethFalco commented 1 year ago

🐛 What is the bug? How can we reproduce it?

React Native Tools always activates on startup because of the event onLanguage:ReactNativeToolsOutput.

For example, I just opened a small Rust project and it's activating (and even throwing an error) but it shouldn't be.

I don't see ReactNativeToolsOutput in the activation events, and don't see the extension providing that language itself, so I'm not 100% sure where it's coming from and why it's activating. :thinking:

  1. Install React Native Tools (v1.10.0)
  2. Launch Visual Studio Code

image

The workspace I had open was a Rust exercise on Exercism, but this occurs even on new VSC instance with no workspace open.

Expected behavior

React Native Tools should not activate unless one of it's registered events, or one of the activation events are triggered.

image

Debug output

Developer Tools console ```text INFO Electron sandbox mode is enabled! log.ts:310 WARN Skipping extension /home/seth/.vscode-insiders/extensions/ms-vscode.js-debug-1.72.1 in favour of the builtin extension /snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/ms-vscode.js-debug. log.ts:310 WARN [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.windows as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.windows as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.windows as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.mac as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.mac as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.mac as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.linux as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.linux as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.linux as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 log.ts:304 INFO [SonarSource.sonarlint-vscode]: Command `SonarLint.UpdateAllBindings` appears multiple times in the `commands` section. configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.windows as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.windows as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.windows as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.mac as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.mac as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.mac as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.linux as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.linux as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.linux as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope text.html.handlebars. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/handlebars/syntaxes/Handlebars.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/andrejunges.handlebars-0.4.1/syntaxes/handlebars.tmLanguage register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.dart. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/dart/syntaxes/dart.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/dart-code.dart-code-3.54.1/syntaxes/dart.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope text.tex. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/james-yu.latex-workshop-9.1.0/syntax/TeX.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope text.tex.latex. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/james-yu.latex-workshop-9.1.0/syntax/LaTeX.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope text.bibtex. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/james-yu.latex-workshop-9.1.0/syntax/Bibtex.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope text.tex.markdown_latex_combined. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/james-yu.latex-workshop-9.1.0/syntax/markdown-latex-combined.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.cpp.embedded.latex. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/james-yu.latex-workshop-9.1.0/syntax/cpp-grammar-bailout.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.sql. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/sql/syntaxes/sql.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/mtxr.sqltools-0.26.0/language/sql.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.groovy. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/groovy/syntaxes/groovy.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/naco-siren.gradle-language-0.2.3/syntaxes/groovy.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/pivotal.vscode-spring-boot-1.40.0/yaml-support/yaml.tmLanguage register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.java-properties. Old grammar file: file:///home/seth/.vscode-insiders/extensions/ithildir.java-properties-0.0.2/syntaxes/java-properties.tmLanguage. New grammar file: file:///home/seth/.vscode-insiders/extensions/pivotal.vscode-spring-boot-1.40.0/properties-support/java-properties.tmLanguage register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.java-properties. Old grammar file: file:///home/seth/.vscode-insiders/extensions/pivotal.vscode-spring-boot-1.40.0/properties-support/java-properties.tmLanguage. New grammar file: file:///home/seth/.vscode-insiders/extensions/redhat.java-1.13.0-linux-x64/language-support/properties/JavaProperties.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///home/seth/.vscode-insiders/extensions/pivotal.vscode-spring-boot-1.40.0/yaml-support/yaml.tmLanguage. New grammar file: file:///home/seth/.vscode-insiders/extensions/redhat.vscode-yaml-1.10.1/syntaxes/yaml.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.rst. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/restructuredtext/syntaxes/rst.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/trond-snekvik.simple-rst-1.5.2/syntaxes/rst.tmLanguage.json register @ TMScopeRegistry.ts:47 TMScopeRegistry.ts:47 Overwriting grammar scope name to file mapping for scope source.ruby. Old grammar file: file:///snap/code-insiders/1173/usr/share/code-insiders/resources/app/extensions/ruby/syntaxes/ruby.tmLanguage.json. New grammar file: file:///home/seth/.vscode-insiders/extensions/wingrunr21.vscode-ruby-0.28.0/syntaxes/ruby.cson.json register @ TMScopeRegistry.ts:47 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.windows as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.windows as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.windows as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.mac as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.mac as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.mac as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.linux as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.linux as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.linux as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 log.ts:316 ERR [Extension Host] (node:89441) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use `exe --trace-deprecation ...` to show where the warning was created) console.ts:137 [Extension Host] (node:89441) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use `exe --trace-deprecation ...` to show where the warning was created) (at /snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:94:137192) E @ console.ts:137 mainThreadExtensionService.ts:111 Activating extension 'Oracle.oracledevtools' failed: false. $onExtensionActivationError @ mainThreadExtensionService.ts:111 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.windows as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.windows as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.windows as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.mac as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.mac as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.mac as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.linux as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.linux as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.linux as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 log.ts:316 ERR No registered selector for ID: ms-vscode.npm-command: Error: No registered selector for ID: ms-vscode.npm-command at L.registerQuickFixProvider (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1201:2731) at n.$registerQuickFixProvider (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2004:50937) at v.N (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1681:10803) at v.M (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1681:10521) at v.H (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1681:9614) at v.G (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1681:8595) at vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1681:7383 at u.invoke (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:85:145) at s.deliver (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:85:2029) at d.fire (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:85:1667) at o.fire (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:550:14627) at ee.onmessage (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:1918:1471) configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.windows as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.windows as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.windows as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.mac as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.mac as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.mac as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.kubectl-path.linux as vscode-kubernetes.kubectl-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.helm-path.linux as vscode-kubernetes.helm-path is "" (anonymous) @ configurations.ts:65 configurations.ts:65 Conflict in default settings: Ignoring vscode-kubernetes.minikube-path.linux as vscode-kubernetes.minikube-path is "" (anonymous) @ configurations.ts:65 log.ts:304 INFO [perf] Render performance baseline is 33ms log.ts:316 ERR [/home/seth/.vscode-insiders/extensions/mrcrowl.hg-1.8.1]: Failed to parse /home/seth/.vscode-insiders/extensions/mrcrowl.hg-1.8.1/package.nls.json: Value expected. extensionNls.ts:51 [hg]: Couldn't find message for key command.add. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.addAll. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.branch. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.setBookmark. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.removeBookmark. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.clean. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.cleanAll. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.commit. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.commitAmend. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.commitAll. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.commitAllAmend. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.commitStaged. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.commitStagedAmend. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.clone. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.fileLog. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.forget. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.init. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.close. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.log. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.logBranch. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.logDefault. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.logRepo. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.markResolved. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.mergeHeads. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.mergeWithLocal. S @ extensionNls.ts:51 2extensionNls.ts:51 [hg]: Couldn't find message for key command.openChange. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.openFile. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.openFiles. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.openFile. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.openhgrc. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.pull. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.purge. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.purgeFiles. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.purgeAll. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.push. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.pushTo. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.rebaseCurrentBranch. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.rebaseAbort. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.rebaseContinue. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.refresh. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.resolveAgain. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.showOutput. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.stage. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.stageAll. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.undoRollback. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.unresolve. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.revertChange. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.unstage. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.unstageAll. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.update. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.shelve. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.unshelve. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.unshelveKeep. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.unshelveAbort. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.unshelveContinue. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key command.toggleAnnotations. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.enabled. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.useBookmarks. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.allowPushNewBranches. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.autoInOut. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.autoInOutInterval. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.autoRefresh. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.autoUpdate. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.commandMode. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.commandMode.cli. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.commandMode.server. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.countBadge. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.countBadge.tracked. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.countBadge.all. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.countBadge.off. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.ignoreMissingHgWarning. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.path. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.pushPullBranch. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.pushPullBranch.all. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.pushPullBranch.current. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.pushPullBranch.default. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.pushPullScope. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.pushPullScope.all. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.pushPullScope.current. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.pushPullScope.default. S @ extensionNls.ts:51 extensionNls.ts:51 [hg]: Couldn't find message for key config.lineAnnotationEnabled. S @ extensionNls.ts:51 log.ts:316 ERR UnknownError: Signature: UnknownError at yt.download (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:37:92965) at async V.h (vscode-file://vscode-app/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:89:169726) console.ts:137 [Extension Host] ApplicationInsights:Sender Array(1) (at console. (/snap/code-insiders/1173/usr/share/code-insiders/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:94:137192)) E @ console.ts:137 mainThreadExtensionService.ts:79 [[object Object]]s.tmpDir is not a function $onExtensionRuntimeError @ mainThreadExtensionService.ts:79 mainThreadExtensionService.ts:80 TypeError: s.tmpDir is not a function at e._storeToDisk (/home/seth/.vscode-insiders/extensions/msjsdiag.vscode-react-native-1.10.0/dist/rn-extension.js:1:24770) at ClientRequest. (/home/seth/.vscode-insiders/extensions/msjsdiag.vscode-react-native-1.10.0/dist/rn-extension.js:1:24494) at ClientRequest.emit (node:events:538:35) at TLSSocket.socketErrorListener (node:_http_client:442:9) at TLSSocket.emit (node:events:526:28) at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) ```

Environment

Please tell us about your system and your project:

seth@seth-pc-tux:~/snap/exercism/5/exercism/rust/diffie-hellman$ npx react-native doctor
warn We couldn't find a package.json in this directory. Android SDK checks may fail. Doctor works best in a React Native project root.
Common
 ✓ Node.js
 ✓ yarn
 ✓ npm

Android
 ✓ JDK
 ✖ Android Studio - Required for building and installing your app on Android
 ✖ Android SDK - Required for building and installing your app on Android
   - Versions found: N/A
   - Version supported: Not Found
 ✖ ANDROID_HOME

Errors:   3
Warnings: 0

Note, I don't have this setup because I'm not actively working with it. I don't think this should matter for this bug report.

  System:
    OS: Linux 6.0 Debian GNU/Linux bookworm/sid
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz
    Memory: 51.99 GB / 62.56 GB
    Container: Yes
    Shell: 5.2.2 - /bin/bash
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Managers:
    Apt: 2.5.4 - /usr/bin/apt
    Cargo: 1.65.0 - ~/.cargo/bin/cargo
    Composer: 2.4.4 - /usr/bin/composer
    Maven: 3.8.6 - /usr/bin/mvn
    pip3: 22.3 - /usr/bin/pip3
    RubyGems: 3.3.15 - /usr/bin/gem
  Utilities:
    CMake: 3.25.1 - /usr/bin/cmake
    Make: 4.3 - /usr/bin/make
    GCC: 12.2.0 - /usr/bin/gcc
    Git: 2.35.1 - /usr/bin/git
    Clang: 14.0.6 - /usr/bin/clang
    Ninja: 1.11.1 - /usr/bin/ninja
    Mercurial: 6.2.3 - /usr/local/bin/hg
    FFmpeg: 5.1.2 - /usr/bin/ffmpeg
  Virtualization:
    Docker: 20.10.21 - /usr/bin/docker
    VirtualBox: 7.0.2 - /usr/bin/vboxmanage
  IDEs:
    Vim: 9.0 - /usr/bin/vim
  Languages:
    Bash: 5.2.2 - /usr/bin/bash
    Go: 1.18.4 - /usr/local/go/bin/go
    Java: 11.0.17 - /usr/bin/javac
    Perl: 5.36.0 - /usr/bin/perl
    PHP: 8.1.12 - /usr/bin/php
    Python: 2.7.18 - /usr/bin/python
    Python3: 3.10.9 - /usr/bin/python3
    Ruby: 3.0.4 - /usr/bin/ruby
    Rust: 1.65.0 - /home/seth/.cargo/bin/rustc
  Databases:
    MongoDB: 5.0.13 - /usr/bin/mongo
    MySQL: undefined - /usr/bin/mysql

On the side, note there is an error s.tmpDir is not a function - the logs include the actual error at the end.

EzioLi01 commented 1 year ago

Hey @SethFalco , thanks for reaching us.

It's strange, I have tried to setup rust project like you mentioned, and my RNT 1.10.0 is not active. image

Also, I'm sure we don't have onLanguage triger in activationEvents.

I will try to repro it on my side again. Hopefully I can have new find soon. Maybe you can uninstall extension and delete extension folder in .vscode/extensions/ and try it again.

SethFalco commented 1 year ago

So I've been looking a bit more into this. Even when no workspace is loaded for me, the extension still activates. :thinking:

I've tried disabling all extensions except React Native Tools, and it'll still activate immediately (even with no workspace open) because of the activation event onLanguage:ReactNativeToolsOutput.

However, with all extensions disabled, the s.tmpDir is not a function does not occur. But it does cause a warning to print from the extension which interrupts my flow every time I open a new VSC window. (Since the command palette gets closed once the extension activates so it can focus on the output window to show me the warning.)

I've also tried uninstalling and reinstalling the extension, but it still activates immediately on onLanguage:ReactNativeToolsOutput. ^-^'

I can't see this in the repo, but on my side I can see that the extension contributes the language ReactNativeToolsOutput - which makes sense.

I'm sure we don't have onLanguage triger in activationEvents.

Since VSC 1.74.0 all contributions from an extension are implied to activate an extension. Though I don't see this language being contributed in your source code tbh, maybe I'm being dumb.

image


I've also uninstalled VSC Insider entirely, deleted all VSC related directories, moved over to VSC (stable) and installed the extension. I am still able to reproduce this issue. (However stable doesn't show the activation reason, so I can't verify if it was activated because of onLanguage.)

danb4r commented 1 year ago

Commenting here because this is probably a related behaviour.

New version 1.10.0 outputs this following warning message, even if we open vscode without any open editors or workspaces:

Screenshot 2023-01-01 171527

Did a rollback to 1.9.3 and that does not happen.

EzioLi01 commented 1 year ago

Thanks @danb4r and @SethFalco for the details, will do some investigation.

BTW, here is the nightly version for RNT, we have some changes on output log recently, some of tm-grammar for ReactNativeToolsOutput is disabled and we plan to refactor them in the future.

Could you please have a try on this version, nightly version should not have onLanguage:ReactNativeToolsOutput in extension.

geovannimp commented 1 year ago

@EzioLi01 The nightly version at least fixes the [Warning] Could not find workspace while activating problem.

Also, thanks for the fix. It was very annoying to have the terminal pop up when trying to select a project to open.

SethFalco commented 1 year ago

The nightly version resolves both problems for me!

I'm going to close this issue already, but if anyone else still has the problem with the nightly version, then just make a new issue with any steps to reproduce, and a link back to this issue.

EzioLi01 commented 1 year ago

Thanks @geovannimp and @SethFalco for checking, we're planning to release 1.10.1 version, and this issue will be fixed on 1.10.1.

bartvanandel commented 1 year ago

@EzioLi01 Any ETA on a release date for 1.10.1 to the extension marketplace? The latest one there is still 1.10.0, even though 1.10.1 was apparently released 3 weeks ago according to this repo.

EzioLi01 commented 1 year ago

Hey @bartvanandel, we're facing some problems in the last release process, recently we're waiting for new publishing PAT access to republish 1.10.1 again, maybe it will publish on marketplace on next week. We have nightly version for extension in marketplace as well, maybe you can use it now.

starball5 commented 1 year ago

Related Stack Overflow question: Output: "[Warning] Could not find workspace while activating"

RandyBooth commented 1 year ago

Hey @bartvanandel, we're facing some problems in the last release process, recently we're waiting for new publishing PAT access to republish 1.10.1 again, maybe it will publish on marketplace on next week. We have nightly version for extension in marketplace as well, maybe you can use it now.

Any news on this? Still 1.10.0

ernani commented 1 year ago

Unsure if this just happens with vscode insiders...will check for updates on this thread.

EzioLi01 commented 1 year ago

Please try it on last release V1.10.2, it's available on marketplace now. Thanks!

ernani commented 1 year ago

Seems gone now to me! Thanks!

RandyBooth commented 1 year ago

Please try it on last release V1.10.2, it's available on marketplace now. Thanks!

Confirmed! Thanks!