Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

auto completion is not working and some errors show once open theia csharp #7

Open
malikghanim opened this issue Dec 18, 2018 · 3 comments

Comments

@malikghanim
Copy link

I am facing a problem while opening theia on ubuntu 16.4, here is the errors, any help please

root INFO starting C# language server: /var/www/theia-csharp-extension/csharp/omnisharp/run -stdio -lsp
root ERROR C#: chmod: cannot access '/var/www/theia-csharp-extension/csharp/omnisharp/bin/mono.linux-x86_64': No such file or directory

root ERROR C#: /var/www/theia-csharp-extension/csharp/omnisharp/run: line 49: /var/www/theia-csharp-extension/csharp/omnisharp/bin/mono.linux-x86_64: No such file or directory

root ERROR [nsfw-watcher: 17716] Request watchFileChanges failed with error: NSFW was unable to start watching that directory. Error: NSFW was unable to start watching that directory.
root INFO [nsfw-watcher: 17716] Started watching: /home/malikghanim/Code/5abeer/5abeer/test.cs
root INFO starting C# language server: /var/www/theia-csharp-extension/csharp/omnisharp/run -stdio -lsp
terminal ERROR Couldn't attach - can't find terminal with id: 1
root ERROR C#: chmod:
root ERROR C#: cannot access '/var/www/theia-csharp-extension/csharp/omnisharp/bin/mono.linux-x86_64'
root ERROR C#: : No such file or directory

root ERROR C#: /var/www/theia-csharp-extension/csharp/omnisharp/run: line 49: /var/www/theia-csharp-extension/csharp/omnisharp/bin/mono.linux-x86_64: No such file or directory

terminal ERROR Error attaching to terminal id 1, the terminal is most likely gone. Starting up a new terminal instead.
root ERROR [nsfw-watcher: 17734] Request watchFileChanges failed with error: NSFW was unable to start watching that directory. Error: NSFW was unable to start watching that directory.
root ERROR [nsfw-watcher: 17734] Request watchFileChanges failed with error: NSFW was unable to start watching that directory. Error: NSFW was unable to start watching that directory.
root INFO [nsfw-watcher: 17734] Started watching: /home/malikghanim/Code/test/.theia/settings.json
root INFO [nsfw-watcher: 17734] Started watching: /home/malikghanim/Code/test/test.cs
root WARN Collided keybinding is ignored; {"command":"monaco.editor.action.wordHighlight.next","keybinding":"f7","context":"editorTextFocus"} collided with {"command":"monaco.editor.action.diffReview.next","keybinding":"f7","context":"editorTextFocus"}
root WARN Could not register keybinding:
{"command":"monaco.editor.action.wordHighlight.next","keybinding":"f7","context":"editorTextFocus"}
Error: "f7" is in collision with something else [scope:0]
root WARN Collided keybinding is ignored; {"command":"monaco.editor.action.wordHighlight.prev","keybinding":"shift+f7","context":"editorTextFocus"} collided with {"command":"monaco.editor.action.diffReview.prev","keybinding":"shift+f7","context":"editorTextFocus"}
root WARN Could not register keybinding:
{"command":"monaco.editor.action.wordHighlight.prev","keybinding":"shift+f7","context":"editorTextFocus"}
Error: "shift+f7" is in collision with something else [scope:0]
root ERROR [nsfw-watcher: 17973] Request watchFileChanges failed with error: NSFW was unable to start watching that directory. Error: NSFW was unable to start watching that directory.
root INFO [nsfw-watcher: 17973] Started watching: /home/malikghanim/Code/5abeer/5abeer/test.cs
root INFO starting C# language server: /var/www/theia-csharp-extension/csharp/omnisharp/run -stdio -lsp
root ERROR C#: chmod: cannot access '/var/www/theia-csharp-extension/csharp/omnisharp/bin/mono.linux-x86_64': No such file or directory

root ERROR C#: /var/www/theia-csharp-extension/csharp/omnisharp/run: line 49: /var/www/theia-csharp-extension/csharp/omnisharp/bin/mono.linux-x86_64: No such file or directory

root ERROR [nsfw-watcher: 17973] Request watchFileChanges failed with error: NSFW was unable to start watching that directory. Error: NSFW was unable to start watching that directory.
root INFO starting C# language server: /var/www/theia-csharp-extension/csharp/omnisharp/run -stdio -lsp
root ERROR C#: chmod: cannot access '/var/www/theia-csharp-extension/csharp/omnisharp/bin/mono.linux-x86_64': No such file or directory

root ERROR C#: /var/www/theia-csharp-extension/csharp/omnisharp/run: line 49: /var/www/theia-csharp-extension/csharp/omnisharp/bin/mono.linux-x86_64: No such file or directory

root ERROR [nsfw-watcher: 18041] Request watchFileChanges failed with error: NSFW was unable to start watching that directory. Error: NSFW was unable to start watching that directory.
root ERROR [nsfw-watcher: 18041] Request watchFileChanges failed with error: NSFW was unable to start watching that directory. Error: NSFW was unable to start watching that directory.
root INFO [nsfw-watcher: 18041] Started watching: /home/malikghanim/Code/test/.theia/settings.json
root INFO [nsfw-watcher: 18041] Started watching: /home/malikghanim/Code/test/test.cs

@binn
Copy link

binn commented Mar 12, 2019

Same here too, any idea how to fix?

@ghost
Copy link

ghost commented Mar 12, 2019

Hi, the mono executable is 32bit. You have to install 32bit support on your ubuntu.
Execute the following commands:

sudo dpkg --add-architecture i386
sudo apt-get install libc6:i386 zlib1g:i386

The language server should start now.

Problem is, the autocompletion still doesn't work

@ghost
Copy link

ghost commented Jul 31, 2019

Here seems to be another C# plugin, but we're not sure yet how to get it running.
We got the omnisharp-theia-plugin to work. Additional information how to do that can be found here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants