atom-editor

Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

我只是一个虾纸丫 提交于 2019-11-30 06:38:04
I've successfully built node.js addon, which works well with Node on Windows. Now, I want to create a Windows app using Electron. When loading the module in HTML file, I got the error: var dbr = require('./build/Release/dbr'); Something wrong with ATOM_SHELL_ASAR.js . The issue only occurred on Windows. On Linux and Mac, it worked well. How can I fix it? Thanks! You need to rebuild your native Node addon for Electron, the steps are outlined in the docs . max1119 I'm using Electron 2 version and have the same error with another module. I solved this problem by this advise on Electron page: To

Code Completion / autocomplete Angular / typescript ATOM in HTML

可紊 提交于 2019-11-30 06:33:43
I would like to know if there is any possibility to get a similar Codecompletion / Autocomplete in Atom like it is Webstorm. Right now I am trying to get used to typescript and I really like it so far, but what really annoys me is, that I cannot get any Codecompletion in atom working for my HTML files. That would make my life so much easier.... That is how it looks in Webstorm (trial version) The Interface is very simple: interface Person { name: string; lastName: string; birthday: number; } The Controller looks like that: module myModule { export interface IMyScope extends ng.IScope { person:

Atom text editor remove trailing whitespace on save

强颜欢笑 提交于 2019-11-30 05:55:22
问题 I use Sublime text . Now I am trying Atom . When I save any file in sublime text it does not include any trailing blank line. But saving any file in Atom leaves a trailing blank line. How do I force Atom not to leave trailing white spaces? 回答1: Under your Atom Preferences go to Packages tab and search for whitespace . Click on the whitespace package and uncheck Ensure Single Trailing Newline option 回答2: On global level this can be changed using settings in Whitespace package, but if you want

Using git with ssh-agent on Windows

柔情痞子 提交于 2019-11-30 04:43:14
I'm on Windows. I installed git and posh-git (some helpers for Windows PowerShell). I can add keys with ssh-add and can authenticate with github and my webserver. I can also use git from the PowerShell to interact with my repositories. But there is one thing I can't do: I use git-plus for the Atom editor. And I don't get it to push to my repo. What is my problem? posh-git and git for windows 2.7 should include everything you need to setup an ssh-agent . Once you have the module installed you can start the agent using something like: Import-Module ~\Documents\WindowsPowerShell\Modules\posh-git

Atom menu is missing. How do I re-enable

依然范特西╮ 提交于 2019-11-29 21:16:41
The menu in Atom text editor is gone. I dont know how I disabled it. I tried F1-12 keys. How do I re enable it? Here's how it's looking now: Open Atom and press ALT key you are done. Temporarily show Menu Bar on ATOM: Press ALT Key to make the Menu bar appear but it is not permanent. Always display the Menu Bar on ATOM: To make the change permanent, press ALT + V and then select Toggle Menu Bar option from the " View " drop-down down. [Tested on ATOM running on Ubuntu 16.04] Aravind Press Alt + v and select Toggle menu bar option. Get cursor on top, where white header with file name, then

Is there a command for formatting html in the Atom.io editor?

雨燕双飞 提交于 2019-11-29 19:28:43
I would like to format my html with a command, like i do in visual studio, using CTRL-K-D. Is this possible in atom.io? If not, are there other options? Stuart Hallows Atom does not have a built-in command for formatting html. However, you can install the atom-beautify package to get this behavior. Press CTRL + SHFT + P to bring up the command palette ( CMD + SHFT + P on a Mac). Type Install Packages to bring up the package manager. Type beautify into the search box. Choose atom-beautify or one of the other packages and click Install . Now you can use the default keybinding for atom-beautify

How to integrate Protractor test cases in Atom using Typescript?

爷,独闯天下 提交于 2019-11-29 08:52:31
I have installed typescript for atom for writing Protractor Scripts For automation. My code is written in Jasmine Framework as protractor supports it nicely. I wrote in this structure. describe('Sign in',function(){ it ('Verify Modules Present', function(){ loginPage.enterUsernameAndPasswordWithSignIn('a','b'); browser.sleep(3000); var module = element(by.xpath("//*[@ng-reflect-router-link='My']")); browser.wait(protractor.ExpectedConditions.elementToBeClickable(module), 8000).thenCatch(function () { assert.fail(' element is not click able'); }); var expectedModuleName = ["My", "X","Y", "Z" ];

Code Completion / autocomplete Angular / typescript ATOM in HTML

放肆的年华 提交于 2019-11-29 06:12:51
问题 I would like to know if there is any possibility to get a similar Codecompletion / Autocomplete in Atom like it is Webstorm. Right now I am trying to get used to typescript and I really like it so far, but what really annoys me is, that I cannot get any Codecompletion in atom working for my HTML files. That would make my life so much easier.... That is how it looks in Webstorm (trial version) The Interface is very simple: interface Person { name: string; lastName: string; birthday: number; }

How can I run a Java program in Atom editor?

好久不见. 提交于 2019-11-29 02:59:03
问题 I installed a scripts package to be able to run a Java program in Atom editor. But I'm still not able to run it. Getting the following error message: 'bash' is not recognized as an internal or external command, operable program or batch file What could be missing here? I am using Windows 7. The same editor and same package runs on Ubuntu without any issues. 回答1: Get GitHub Desktop from GitHub Site. Run the installer to complete. Get Atom Windows installer AtomSetup.exe from Atom Site. Once

Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

六月ゝ 毕业季﹏ 提交于 2019-11-29 02:52:23
问题 I've successfully built node.js addon, which works well with Node on Windows. Now, I want to create a Windows app using Electron. When loading the module in HTML file, I got the error: var dbr = require('./build/Release/dbr'); Something wrong with ATOM_SHELL_ASAR.js . The issue only occurred on Windows. On Linux and Mac, it worked well. How can I fix it? Thanks! 回答1: You need to rebuild your native Node addon for Electron, the steps are outlined in the docs. 回答2: I'm using Electron 2 version