GithubHelp home page GithubHelp logo

d-language-server / atom-ide-dlang Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 1.0 302 KB

D language support for Atom-IDE

Home Page: https://atom.io/packages/ide-dlang

License: MIT License

JavaScript 100.00%
atom-ide atom-package dlang language-server-protocol

atom-ide-dlang's People

Contributors

laurenttreguier avatar maksimzh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

paysonwallach

atom-ide-dlang's Issues

Work only highlighting

TL;DR:

  • Compile dls
  • Install ide-dlang
  • Setup path to dls in ide-dlang

Result: work only highlighting.

Autocompletion, dscanner, etc doesn't work. Process dls not started.

I tried copy dls binary to PATH and clear edit area with path to dls in ide-dlang settings, but it wouldn't work

Location of go to definition symbols is off

It seems that when I hold the control key for "go to definition", it behaves strangely and the locations that are being underlined are off. For example, in code such as this.installAppMenu(), I can control-click this just fine, but hovering over installAppMenu underlines the is. before it and clicking it has no effect.

Strangely enough, in some rare cases I can get it to work just fine, i.e. installAppMenu will be underlined and jumping works, but it usually doesn't. This seems to happen with all member calls I encounter.

What's even more strange is that tooltips display the correct information and hovering over the method call with control does show the method signature as well, so it is recognized, it's just underlining the wrong code ;-).

I'm using grestful for testing and can reproduce this on this line.

I'm not sure if this is a problem in this package, dls, or any of its dependencies. If it is not a bug here, I'd be happy to report it somewhere else.

Thanks!

Uncaught TypeError: "file" argument must be a non-empty string

  1. Installed Atom and a few plugins like ide-dlang and ide-css
  2. Opened a project with D files and opened a .d file
  3. Saw "Installing DLS"
  4. Saw error appear and then notice to install "busy-signal"
  5. Waited a while after it successfully installed at "Installing DLS"
  6. Closed Atom
  7. Re-opened Atom
  8. Re-opened .d file
  9. Saw "Installing DLS"
  10. Saw error appear again

Atom: 1.33.1 x64
Electron: 2.0.16
OS: Microsoft Windows 8.1 Pro
Thrown From: ide-dlang package 1.14.1

Stack Trace

Uncaught TypeError: "file" argument must be a non-empty string

At child_process.js:395

TypeError: "file" argument must be a non-empty string
    at normalizeSpawnArguments (child_process.js:395:11)
    at Object.exports.spawn (child_process.js:508:38)
    at Server.server.listen (/packages/ide-dlang/lib/ide-dlang.js:146:26)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:106:13)
    at Server.emit (events.js:208:7)
    at emitListeningNT (net.js:1378:10)
    at _combinedTickCallback (internal/process/next_tick.js:135:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Commands

λ dmd -v
DMD32 D Compiler v2.074.1

Non-Core Packages

atom-ide-ui 0.13.0 
build 0.70.0 
busy-signal 1.4.3 
ide-css 0.3.2 
ide-dlang 1.14.1 
ide-go 0.12.3 
ide-html 0.5.0 
ide-json 0.2.1 
ide-php 0.7.17 
ide-yaml 0.4.4 

Failed to load a ide-dlang package grammar

[Enter steps to reproduce:]

Hello. Got this error right after my first time of installing this package (on a brand new Atom installation). So I didn't ‘do’ anything to cause it!

Atom: 1.29.0 x64
Electron: 2.0.5
OS: Ubuntu 18.04.1
Thrown From: ide-dlang package 1.7.3

Stack Trace

Failed to load a ide-dlang package grammar

At Grammar missing required scopeName property: /home/samjnaa/.atom/packages/ide-dlang/grammars/d.configuration.json in /home/samjnaa/.atom/packages/ide-dlang/grammars/d.configuration.json

Error: Grammar missing required scopeName property: /home/samjnaa/.atom/packages/ide-dlang/grammars/d.configuration.json
    at GrammarRegistry.createGrammar (/usr/share/atom/resources/app/src/grammar-registry.js:501:21)
    at CSON.readFile (/usr/share/atom/resources/app/src/grammar-registry.js:480:35)
    at parseContents (/usr/share/atom/resources/app/node_modules/season/lib/cson.js:123:13)
    at /usr/share/atom/resources/app/node_modules/season/lib/cson.js:230:26
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
  at /packages/ide-dlang/grammars/d.configuration.json:1:1

Commands

     -0:15.4.0 pane:show-next-item (input.hidden-input)

Non-Core Packages

atom-ide-ui 0.13.0 
atom-python-run 0.9.7 
autocomplete-python 1.10.9 
ide-bash 1.0.11 
ide-clangd 0.3.0 
ide-dlang 1.7.3 
ide-html 0.4.2 
ide-json 0.2.1 
ide-python 1.0.0 
ide-yaml 0.4.3 
python-indent 1.1.5 
python-tools 0.6.9 
script 3.18.1 

adding 'build' & 'run' functions..

Hi,
just beginning with D and didn't understand why there was not a 'run' function, so I started learning Atom, this package and post a question on Dlang forum about all that.
after a little search, I now have a 'build' & 'run' working functions selectable with F7.
I posted my modified 'build-provider.js' file on Dlang forum, in case it could be of any help to another beginner.
so not anymore an 'issue', but it would be nice to have those options - and maybe more, like test or don't know what (don't know all I can do with DUB yet) included in the package.
the post on Dlang forum : here.
thanks..

Uncaught ReferenceError on file save

  1. $ mkdir foo && touch foo/foo.d && atom foo
  2. Open foo.d
  3. Press Ctrl+S

Atom: 1.27.2 x64
Electron: 1.7.15
OS: Linux Mint
Thrown From: ide-dlang package 1.5.1

Stack Trace

Uncaught ReferenceError: basename is not defined

At /home/maksim/.atom/packages/ide-dlang/lib/ide-dlang.js:40

ReferenceError: basename is not defined
    at DLSLanguageClient.filterChangeWatchedFiles (/packages/ide-dlang/lib/ide-dlang.js:40:67)
    at /packages/ide-dlang/node_modules/atom-languageclient/build/lib/auto-languageclient.js:189:166)
    at ServerManager.projectFilesChanged (/packages/ide-dlang/node_modules/atom-languageclient/build/lib/server-manager.js:251:81)
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at didChangeCallback (/usr/share/atom/resources/app/src/project.js:381:28)
    at PathWatcher.onNativeEvents (/usr/share/atom/resources/app/src/path-watcher.js:533:13)
    at sub.native.onDidChange.events (/usr/share/atom/resources/app/src/path-watcher.js:436:64)
    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at NSFWNativeWatcher.onEvents (/usr/share/atom/resources/app/src/path-watcher.js:167:24)
    at handler (/usr/share/atom/resources/app/src/path-watcher.js:276:18)

Commands

     -0:04.9.0 core:save (input.hidden-input)

Non-Core Packages

atom-ide-ui 0.12.0 
ide-dlang 1.5.1 
selection-mode 0.2.1 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.