question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Issue] `WebBrowserClient` does not contain a definition for `LogWarning`

See original GitHub issue

What platform are you experiencing this issue on?

Windows

What architecture is your platform?

64-Bit

What version of UWB are you using?

Preview GitLab Package

What Unity version are you running?

2021.3.2f1

Describe what the issue you are experiencing is.

When I import the newest package following the instructions I receive this error:

Library\PackageCache\dev.voltstro.unitywebbrowser@7ab688c164\Runtime\WebBrowserUI.cs(333,39): error CS1061: 'WebBrowserClient' does not contain a definition for 'LogWarning' and no accessible extension method 'LogWarning' accepting a first argument of type 'WebBrowserClient' could be found (are you missing a using directive or an assembly reference?)

Provide reproducible steps for this issue.

  1. Create a new 2021.3.2f1 project.
  2. Follow instructions in readme https://github.com/Voltstro-Studios/UnityWebBrowser/blob/01c1020ffc41aedadacbd6b10053b646e1be85f1/README.md:
Open up the package manager via Windows -> Package Manager
Click on the little + sign -> Add package from git URL...
Type https://gitlab.com/Voltstro-Studios/WebBrowser/Package.git#2.x and add it
Type https://gitlab.com/Voltstro-Studios/WebBrowser/Package.git#engine/cef/base and add it
Type https://gitlab.com/Voltstro-Studios/WebBrowser/Package.git#engine/cef/win-x64 and add it (If you need Windows support)
Type https://gitlab.com/Voltstro-Studios/WebBrowser/Package.git#engine/cef/linux-x64 and add it (If you need Linux support)
Unity will now download and install the package
  1. Boom! Issue.

Any additional info you like to provide?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Voltstrocommented, Oct 18, 2022

Issue should now be fixed in the latest release.

1reaction
Voltstrocommented, May 11, 2022

I just had a look at it, it is due to a call to a LogWarning method that no longer exists, but the issue only happens if you are using the old input system (If you switch to the new input system you won’t have this issue), since it only in that compiler define. The reason why this was never caught by me, is at the time the Linux version only supported using the new input system, and I do all my devlopment on Linux, so when I did a refactor is must of not caught this.

The GitLab package is quite out of date, and I don’t want to push a new version to it as I want to completely ditch using GitLab for package hosting for many reasons.

If you want to mitigate this issue for now, either use the new input system, or build the version in the repo, and copy the packages you need from /src/Packages to <Your Project Dir>/Packages, which Unity will then automatically add. You will also need to add the OpenUPM scoped registry for the new version, due to the dependencies on UniTask and VoltRpc, so add the scoped registry to your manifest.json file like so:

"scopedRegistries": [
    {
      "name": "OpenUPM",
      "url": "https://package.openupm.com",
      "scopes": [
        "org.nuget",
        "com.cysharp.unitask"
      ]
    }
  ]
Read more comments on GitHub >

github_iconTop Results From Across the Web

error CS0117: `Debug' does not contain a definition for `Log'
The problem is that all my third party package are using Debug.Log and not UnityEngine.Debug.Log. I don't really want to cahnge all the...
Read more >
ERROR CS0117 ('Debug' does not contain a definition for ' ...
I keep getting this error on unity's console ERROR CS0117, 'Debug' does not contain a definition for 'log'. im on mac using .net...
Read more >
ASP.NET Core Blazor logging
This article explains Blazor app logging, including configuration and how to write log messages from Razor components.
Read more >
webrtc-web-browser-client-sdk-api-reference-guide. ...
WebRTC client SDK is a JavaScript code that allows web developers to ... false: Log warning and do not close WebSocket after ping...
Read more >
NetworkVariable | Unity Multiplayer Networking
When a client first connects, it will be synchronized with the current value of the NetworkVariable . Typically, clients should register for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found