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

Syntax error: word unexpected (expecting ")") #6190

Closed
yundddd opened this issue Sep 22, 2020 · 5 comments
Closed

Syntax error: word unexpected (expecting ")") #6190

yundddd opened this issue Sep 22, 2020 · 5 comments
Labels
external Language Service regression A bug that didn't exist in a previous release

Comments

@yundddd
Copy link

yundddd commented Sep 22, 2020

Hi, I encountered this error since version 1.0.0

extensions/ms-vscode.cpptools-1.0.1/bin/cpptools: Syntax error: word unexpected (expecting ")")

The language server does not start when VS code is started.

Downgrading back to 0.29.0 works again.

16.04.1-Ubuntu
VS Code: v1.48.2

@sean-mcmanus
Copy link
Collaborator

Our extension doesn't output Syntax error: word unexpected (expecting ")". Is that text translated from another language?

@sean-mcmanus sean-mcmanus added more info needed The issue report is not actionable in its current state not reproing We're not able to reproduce the issue (it's unlikely to get fixed until we find one). labels Sep 22, 2020
@yundddd
Copy link
Author

yundddd commented Sep 22, 2020

Is there anyway to check who spit that out? This is literally what's outputted from cpptools' extension console.

@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Sep 22, 2020

It looks like the error is from your OS or shell. What happens when you run ~/.vscode/extensions/ms-vscode.cpptools-1.0.1/bin/cpptools? Do you get the same error message? Which binary did you install? Did you use an offline vsix?

@sean-mcmanus sean-mcmanus added Language Service regression A bug that didn't exist in a previous release labels Sep 22, 2020
@yundddd
Copy link
Author

yundddd commented Sep 23, 2020

You are right it came from my OS. For some reason vscode on my x86 system downloaded ARM version of the executable for both 1.0.0 and 1.0.1:

extensions/ms-vscode.cpptools-1.0.1  readelf bin/cpptools -h
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - GNU
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           AArch64
  Version:                           0x1
  Entry point address:               0x60b4f0
  Start of program headers:          64 (bytes into file)
  Start of section headers:          15935680 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         10
  Size of section headers:           64 (bytes)
  Number of section headers:         34
  Section header string table index: 31
extensions/ms-vscode.cpptools-1.0.0  readelf bin/cpptools -h
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - GNU
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           AArch64
  Version:                           0x1
  Entry point address:               0x60b570
  Start of program headers:          64 (bytes into file)
  Start of section headers:          15858496 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         10
  Size of section headers:           64 (bytes)
  Number of section headers:         34

Version 0.29.0 looks fine:

extensions/ms-vscode.cpptools-0.29.0  readelf bin/cpptools -h
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - GNU
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0x5ef8a0
  Start of program headers:          64 (bytes into file)
  Start of section headers:          15846616 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         10
  Size of section headers:           64 (bytes)
  Number of section headers:         35
  Section header string table index: 32

I think this might be specific to code-server I'm using. See coder/code-server#2120
Feel free to close if this is not cpptools related.

@bobbrow
Copy link
Member

bobbrow commented Sep 23, 2020

Sorry, we don't support code-server.

@bobbrow bobbrow closed this as completed Sep 23, 2020
@sean-mcmanus sean-mcmanus added external and removed more info needed The issue report is not actionable in its current state not reproing We're not able to reproduce the issue (it's unlikely to get fixed until we find one). labels Sep 28, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external Language Service regression A bug that didn't exist in a previous release
Projects
None yet
Development

No branches or pull requests

3 participants