d-language-server / atom-ide-dlang Goto Github PK
View Code? Open in Web Editor NEWD language support for Atom-IDE
Home Page: https://atom.io/packages/ide-dlang
License: MIT License
D language support for Atom-IDE
Home Page: https://atom.io/packages/ide-dlang
License: MIT License
TL;DR:
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
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!
Atom: 1.33.1 x64
Electron: 2.0.16
OS: Microsoft Windows 8.1 Pro
Thrown From: ide-dlang package 1.14.1
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)
λ dmd -v
DMD32 D Compiler v2.074.1
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
[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
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
-0:15.4.0 pane:show-next-item (input.hidden-input)
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
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..
$ mkdir foo && touch foo/foo.d && atom foo
Atom: 1.27.2 x64
Electron: 1.7.15
OS: Linux Mint
Thrown From: ide-dlang package 1.5.1
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)
-0:04.9.0 core:save (input.hidden-input)
atom-ide-ui 0.12.0
ide-dlang 1.5.1
selection-mode 0.2.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.