You are not logged in.

#1 2016-11-05 01:08:53

Jacques Gaudin
Member
Registered: 2016-11-05
Posts: 3

Omnisharp on Atom

First thanks to the awsome Arch community who have so far provided helpful answers to all the issues I was confronted to. Arch rocks. This is my first post after 5 years of using it.

I am new to C# and I want to use Atom as a IDE. I installed it with Omnisharp and mono but when I try to start the server I get the following:

[Enter steps to reproduce below:]

1. Install Atom and Omnisharp package
2. Omnisharp Atom: start server

**Atom Version**: 1.11.2
**Electron Version**: 1.4.4
**System**: linux 4.8.6-1-ARCH
**Thrown From**: [omnisharp-atom](https://github.com/OmniSharp/omnisharp-atom) package, v0.30.7


### Stack Trace

Uncaught TypeError: Cannot read property 'connect' of undefined

```
At /home/ja/.atom/packages/omnisharp-atom/dist/atom/solution-information.js:63

TypeError: Cannot read property 'connect' of undefined
    at atom-workspace.<anonymous> (/home/ja/.atom/packages/omnisharp-atom/dist/atom/solution-information.js:63:86)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/lib/atom/src/command-registry.js:260:29)
    at /usr/lib/atom/src/command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/usr/lib/atom/node_modules/command-palette/lib/command-palette-view.js:183:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/usr/lib/atom/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-li.<anonymous> (/usr/lib/atom/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
    at HTMLOListElement.dispatch (/usr/lib/atom/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (/usr/lib/atom/node_modules/jquery/dist/jquery.js:4121:28)
```

### Commands

```
     -0:30.4.0 command-palette:toggle (div.panels-item)
     -0:00.0 omnisharp-atom:start-server (div.panels-item)
```

I did some research and it seems like I am not the only one having this problem. The arch wiki points me to `/etc/systemd/user.conf` and recommends to set the `DefaultEnvironment` option. Is there any work around or shall I just wait for an update of Omnisharp? At the moment I am using Monodevelop as a temporary solution.

Offline

Board footer

Powered by FluxBB