Skip to content

x/tools/gopls: SQL code highlighted as website URLs #43990

@DmitriyVTitov

Description

@DmitriyVTitov

For asking questions, see:

Before filing an issue, please review our troubleshooting guides

Please answer these questions before submitting your issue. Thanks!

What version of Go, VS Code & VS Code Go extension are you using?

  • Run go version to get version of Go from the VS Code integrated terminal.

    • go version go1.15.6 windows/amd64
  • Run gopls -v version to get version of Gopls from the VS Code integrated terminal.

    • golang.org/x/tools/gopls v0.6.4
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.

    • 1.52.1 ea3859d4ba2f3e577a159bc91e3074c5d85c0523 x64
  • Check your installed extensions to get the version of the VS Code Go extension

    • 0.22.0
  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.
    GOBIN: undefined
    toolsGopath:
    gopath: C:\Users\dtsp\YandexDisk\go
    GOROOT: c:\go
    PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\Graphviz 2.44.1\bin;C:\Go\bin;C:\Users\dtsp\AppData\Local\Microsoft\WindowsApps;C:\Users\dtsp\AppData\Roaming\npm;C:\Users\dtsp\go\bin;C:\Users\dtsp\YandexDisk\go\bin;C:\Users\dtsp\AppData\Local\GitHubDesktop\bin;c:\flutter\bin;C:\msys64\mingw64\bin;C:\Users\dtsp\AppData\Local\Microsoft\WindowsApps;C:\Users\dtsp\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\dtsp\go\bin

    gopkgs: C:\Users\dtsp\YandexDisk\go\bin\gopkgs.exe installed
    go-outline: C:\Users\dtsp\YandexDisk\go\bin\go-outline.exe installed
    gotests: C:\Users\dtsp\YandexDisk\go\bin\gotests.exe installed
    gomodifytags: C:\Users\dtsp\YandexDisk\go\bin\gomodifytags.exe installed
    impl: C:\Users\dtsp\YandexDisk\go\bin\impl.exe installed
    goplay: C:\Users\dtsp\YandexDisk\go\bin\goplay.exe installed
    dlv: C:\Users\dtsp\YandexDisk\go\bin\dlv.exe installed
    golint: C:\Users\dtsp\YandexDisk\go\bin\golint.exe installed
    gopls: C:\Users\dtsp\YandexDisk\go\bin\gopls.exe installed

Share the Go related settings you have added/edited

Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or ["go"] or gopls prefixes.

Describe the bug

I have SQL query:

	SELECT
    	        users.id,
    	        users.email,
    	        users.name,
		users.last_login,
		users.private,
		users.info,
		roles.name,
		roles.is_contractor,
		roles.contractor_id,
		contractors.name

Some of field names are treated as website names such as https://roles.name/ and so on.

image

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

Screenshots or recordings

If applicable, add screenshots or recordings to help explain your problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions