acemod / language-arma-atom Goto Github PK
View Code? Open in Web Editor NEWAtom language support for Real Virtuality file formats
Home Page: https://atom.io/packages/language-arma-atom
License: MIT License
Atom language support for Real Virtuality file formats
Home Page: https://atom.io/packages/language-arma-atom
License: MIT License
isEqualTo dont have a Color Coding but other isEqualX
the diag_log command missing in the current master
Receiving this error after recent update
Atom Version: 1.9.8
System: Microsoft Windows 10 Pro
Thrown From: language-arma-atom package, v2.6.1
Failed to load the language-arma-atom package settings
At C:\Users\dixon\.atom\packages\language-arma-atom\settings\language-sqf-native-commands.json: Unexpected end of input in C:\Users\dixon\.atom\packages\language-arma-atom\settings\language-sqf-native-commands.json
SyntaxError: C:\Users\dixon\.atom\packages\language-arma-atom\settings\language-sqf-native-commands.json: Unexpected end of input
at Object.parse (native)
at parseObject (C:\Users\dixon\AppData\Local\atom\app-1.9.8\resources\app.asar\node_modules\season\lib\cson.js:54:19)
at parseContents (C:\Users\dixon\AppData\Local\atom\app-1.9.8\resources\app.asar\node_modules\season\lib\cson.js:102:16)
at C:\Users\dixon\AppData\Local\atom\app-1.9.8\resources\app.asar\node_modules\season\lib\cson.js:204:20
at tryToString (fs.js:414:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)
at C:\Users\dixon\.atom\packages\language-arma-atom\settings\language-sqf-native-commands.json:1:1
{
"core": {
"disabledPackages": [
"atom-django"
]
}
}
# User
django-atom, v0.2.4 (inactive)
django-templates, v0.5.0 (inactive)
language-arma-atom, v2.6.1 (inactive)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (active)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (active)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (active)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.46.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)
# Dev
No dev packages
`
QPATHTOEF is defined as
#define QPATHTOEF(var1,var2) QUOTE(PATHTOEF(var1,var2))
but in atom it shows as the same as QPATHTOF which only has 1 arg.
QEGVAR is marked as an ACE3 macro, but it's actually from CBA.
Atom Version: 1.8.0
System: JOKOHO482
Thrown From: language-arma-atom package, v2.6.0
Failed to activate the language-arma-atom package
At Cannot find module 'copy-newer'
Error: Cannot find module 'copy-newer'
at Module._resolveFilename (module.js:338:15)
at Function.Module._resolveFilename (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\module-cache.js:383:52)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:50:27)
at Object.<anonymous> (file:///C:/Users/jokoho482/.atom/packages/language-arma-atom/index.coffee:2:13)
at Object.<anonymous> (file:///C:/Users/jokoho482/.atom/packages/language-arma-atom/index.coffee:1:1)
at Module._compile (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:103:30)
at Object.defineProperty.value [as .coffee] (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\compile-cache.js:208:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\native-compile-cache.js:50:27)
at Package.module.exports.Package.requireMainModule (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package.js:715:27)
at Package.module.exports.Package.activateNow (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package.js:173:16)
at C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package.js:841:28
at Function.module.exports.Emitter.simpleDispatch (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:125:28)
at PackageManager.module.exports.PackageManager.triggerActivationHook (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\package-manager.js:573:43)
at TokenizedBuffer.module.exports.TokenizedBuffer.setGrammar (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\tokenized-buffer.js:200:27)
at TokenizedBuffer.module.exports.TokenizedBuffer.reloadGrammar (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\tokenized-buffer.js:211:21)
at new TokenizedBuffer (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\tokenized-buffer.js:86:14)
at new DisplayBuffer (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\display-buffer.js:91:32)
at new TextEditor (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\text-editor.js:149:30)
at Workspace.module.exports.Workspace.buildTextEditor (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\workspace.js:623:14)
at Workspace.buildTextEditor (C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\workspace.js:60:52)
at C:\Users\jokoho482\AppData\Local\atom\app-1.8.0\resources\app.asar\src\workspace.js:594:26
at process._tickCallback (node.js:392:9)
-1:36 tree-view:remove (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-1:33.7.0 tree-view:add-file (span.name.icon.icon-file-directory)
-1:31.5.0 core:cancel (atom-text-editor.editor.mini.is-focused)
-1:28 tree-view:add-folder (div.header.list-item)
3x -1:26.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-1:23.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-1:14.1.0 tree-view:add-file (span.name.icon.icon-file-directory)
-1:09.2.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-1:07.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:58.9.0 core:select-all (atom-text-editor.editor.is-focused)
-0:58.7.0 core:copy (atom-text-editor.editor.is-focused)
-0:57.9.0 core:paste (atom-text-editor.editor.is-focused)
-0:56.5.0 core:save (atom-text-editor.editor.is-focused)
-0:53.6.0 tree-view:move (span.name.icon.icon-file-text)
-0:52.8.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.mini.is-focused)
-0:50.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)
{
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"wrap-guide"
],
"openEmptyEditorOnStart": false,
"themes": [
"atom-material-ui",
"atom-material-syntax-dark"
]
},
"language-arma-atom": {
"autocomplete": {}
}
}
# User
atom-material-syntax-dark, v0.2.5
atom-material-ui, v1.2.13
highlight-selected, v0.11.2
keyboard-localization, v1.4.18
language-arma-atom, v2.6.0
minimap, v4.24.7
minimap-bookmarks, v0.3.1
minimap-codeglance, v0.4.5
minimap-find-and-replace, v4.5.1
minimap-git-diff, v4.3.1
minimap-highlight-selected, v4.4.0
minimap-pigments, v0.2.1
minimap-selection, v4.4.0
project-plus, v0.9.0
# Dev
No dev packages
Where should i add them to get some worlds highlighted as commands for example ?
(guies question general (not only to the package), but would really appreciate help)
https://github.com/acemod/language-arma-atom/blob/master/grammars/sqf.json#L44
Not really a bug, but I think it's better if isEqualTo
would be under commands (syntax highlighting) as it makes the code more readable.
I said I'd look into the scripts that retrieve SQF commands. My initial plan was to scrape the intercept pointers deceleration file the same way I did for the sqf repository (this is still an option as far as that is concerned). However I've realised that this package also reads the description and other information of each command so I'm in the process of checking why the scripts aren't working.
The first thing I notice is that armadoc.py only processes (alphabetically) up to curatorEditingArea
.
Here is the information initially queried by the armadoc.py script. It seems that the code to continue requesting more information (I assume that's what this is meant to do) isn't working:
language-arma-atom/rsc/armadoc.py
Lines 18 to 22 in c4a6acf
Missing Magic Variable paramsArray is missing in AutoComplet/Syntaxhighlight
this variable is often used in mission building
Atom now uses ES6 Promises instead of Q. Call promise.then instead of promise.done
Promise.done (C:\Users\wmcri\AppData\Local\atom\app-1.16.0\resources\app.asar\src\atom-environment.js:1218:5)
Object.open (C:\Users\wmcri\.atom\packages\language-arma-atom\lib\open-latest-rpt-file.coffee:30:60)
atom-workspace.subscriptions.add.atom.commands.add.language-arma-atom:open-latest-RPT-file (C:\Users\wmcri\.atom\packages\language-arma-atom\index.coffee:79:38)
CommandRegistry.handleCommandEvent (C:\Users\wmcri\AppData\Local\atom\app-1.16.0\resources\app.asar\src\command-registry.js:259:29)
handleCommandEvent (C:\Users\wmcri\AppData\Local\atom\app-1.16.0\resources\app.asar\src\command-registry.js:3:59)
CommandRegistry.dispatch (C:\Users\wmcri\AppData\Local\atom\app-1.16.0\resources\app.asar\src\command-registry.js:160:19)
command in is missing in syntax Highlight
Hey,
If I use this on an Arma script that has for example a big string like:
_bigstring = "
much here, like 100 lines or more
";
call compile _bigstring;
then you would see everything just in "green" as it is all part of "that" string :-/
Typing #def
and then pressing tab to autocomplete results in ##define keyword value
.
"#include",
"#define",
"#undef",
"#ifdef",
"#endif"
isEqualTo is defined as a comparison operator
language-arma-atom/grammars/sqf.json
Line 44 in 76d1b96
Hi, I thought it'd be user-friendly to be able to "uncheck" ACE and CBA support from the package settings.
This way, for the average mission scripter (non-ace non-plugins) there would be less matches for the autocomplete and snippets functions in SQF scope.
I made a fork and tried to figure this out myself, but I bumped into 2 obstacles:
I have this outstanding question on stackoverflow, to see if it's at all possible to exclude snippet files from the snippet folder. Or maybe some of you already know how this can be done..
I've run into an issue where Ctrl-/ shows as activating the editor:toggle-line-comments functionality, but nothing actually happens in the file. Rebinding this (to e.g. ctrl-i) doesn't change the behavior. This only occurs when the language-arma-atom module is active.
An example of the keybind resolver when I use the ctrl-/ bind:
https://i.gyazo.com/a159d9f5fe9f3ec0e75ed587a1175268.png
Related to the backslash character causing following letters in config strings to be highlighted, if the last character in a string is a backslash (e.g. "Something\fnord") the string highlighting won't end until the next quote mark in the file.
This is now a view method. Call TextEditorElement::scrollToTop instead.
TextEditor.scrollToBottom (<embedded>:5427:18)
<unknown> (C:\Users\campb\.atom\packages\language-arma-atom\lib\open-latest-rpt-file.coffee:32:17)
ropeDetach does not get highlighted correctly.
https://community.bistudio.com/wiki/ropeDetach
Presumably something that would be done in:
https://github.com/acemod/language-arma-atom/blob/master/grammars/sqf.json
The {}, (), [] braces should be defined such that a user can style them independent of normal text (which they seemingly currently are).
Like: https://github.com/nkt/atom-autocomplete-modules/
It's weird to not have auto-completion on #include when you have it on everything else.
if you use a variable like
_40mmGrenade = "AwsomeVar";
the syntax highlighter not register it
If_exitWith missing chamber
Current Result:
if (CONDITION) exitwith {
//code
;
Target Result:
if (CONDITION) exitwith {
//code
};
@Glowbal I believe you said you'll do this?
I am using QUOTE(code) for the onLoad scripts in ui configs. But its not highlighting any code words.
It should look like this:
https://github.com/CBATeam/CBA_A3/blob/master/addons/diagnostic/gui.hpp#L14 (Github highlighting does it correctly)
but it looks like this:
As you can see encasing the code in {} fixes it a little. But doesn't fix the QUOTE macro itself not highlighting.
UltCombo/atom-sublime-block-comment#5
Can you please provide info: what comment scope descriptors is used in the language package?
Take this bit of code :
class 30Rnd_556x45_Stanag {
...
};
The classname won't be colored, because it's starting with a number! I don't know if something can be done for this issue, but I'd love to see all my classes in the same color. It can be weird with files containing a large number of magazine classes.
how it should look like:
https://i.gyazo.com/412e1599a952dd68ce41cc318183bff3.png
how i looks like:
https://i.gyazo.com/bc4ba1def4dcc82f12b600762ca3ffc6.png
the autocomplete-window doesnt show the right commands, just commands that have the same letters in them. example shows that the actual typed command is the last item in the list, even tho it should be first
This is now a view method. Call TextEditorElement::scrollToTop instead.
TextEditor.scrollToBottom (<embedded>:5509:18)
<unknown> (C:\Users\bmxch\.atom\packages\language-arma-atom\lib\open-latest-rpt-file.coffee:32:17)
Function autocomplete/Info for CBA_Settings_* functions is missing.
For example CBA_Settings_init;
Currently it's not correct.
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.