Code Monkey home page Code Monkey logo

atom-language-nsl's Introduction

atom-language-nsl

apm apm apm CI David

Atom language support for nsL Assembler, including grammar, snippets and build system

Screenshot

Screenshot of nsL Assembler in Atom with Hopscotch theme

Installation

apm

  • Install package apm install language-nsl (or use the GUI)

Using Git

Change to your Atom packages directory:

# Windows
$ cd %USERPROFILE%\.atom\packages

# Linux & macOS
$ cd ~/.atom/packages/

Clone repository as language-nsl:

$ git clone https://github.com/idleberg/atom-language-nsl language-nsl

Package Dependencies

This package automatically installs third-party packages it depends on. You can prevent this by disabling the Manage Dependencies option in the package settings.

Usage

Building

As of recently, this package contains a build system to translate nsL code into NSIS script and transpile it. To do so, select Nsl Assembler: Save & Transpile” from the command-palette or use the keyboard shortcut.

Make sure to specify the path for nsL.jar in the package settings. There you can also customize the flags for the transpiler.

Example:

"language-nsl":
  pathToJar: "%PROGRAMFILES(X86)%\\NSIS\\NSL\\nsL.jar"
  customArguments: ["/nopause", "/nomake"]

Third-party packages

Should you already use the build package, you can install the build-nsl provider to build your code.

License

This work is dual-licensed under The MIT License and the GNU General Public License, version 2.0

atom-language-nsl's People

Contributors

dependabot[bot] avatar frisch12 avatar idleberg avatar

Watchers

 avatar  avatar  avatar

Forkers

frisch12

atom-language-nsl's Issues

Changes required due to TextBuffer.save becoming async in Atom 1.19

Hi! Thanks for maintaining the language-nsl package!

In Atom v1.19, we will release a major change to Atom's core text buffer data structure. As part of this change, we have made TextBuffer.save asynchronous; rather than blocking until the save is complete, it now immediately returns a Promise that resolves when the save is complete. Because of this, a few other Atom APIs that use save have similarly become async:

  • Pane.close
  • TextBuffer.save
  • TextEditor.save
  • Pane.saveItem
  • Pane.saveItemAs
  • Pane.saveActiveItem
  • Pane.saveActiveItemAs
  • Pane.saveItems
  • Workspace.saveActivePaneItem
  • Workspace.saveActivePaneItemAs

Effects on this package

We think this package could be impacted by this upgrade because it calls the changed methods in the following places:

  • TextEditor.save

We found these calls using a regex search, so this list might be incomplete, and it might contain some false positives.

What to do about the change

It should be pretty easy to adjust your package code and/or tests to work with the new async behavior, and to simultaneously keep it working with older versions of Atom. Here are some examples of pull requests we opened on our bundled packages to cope with the change:

Please let me know if you have any questions. I would be happy to help!

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.