ksp-kos / editortools Goto Github PK
View Code? Open in Web Editor NEWTools that make creating kOS scripts easier.
License: GNU General Public License v3.0
Tools that make creating kOS scripts easier.
License: GNU General Public License v3.0
The error notice is " Error loading meta info from Packages/User/kOS.tmPreferences: Error parsing plist xml: expected = in file Packages/User/kOS.tmPreferences on line:44 ". I opened this file and i didn't find anything wrong! why!!! thanks!!!
Starting gedit in standalone mode gedit -s
I get the following message:
/home/treyzania/.local/share/gtksourceview-4/language-specs/kerboscript.lang:50: parser error : Specification mandates value for attribute data-pjax-transient
a name="hovercard-subject-tag" content="repository:33886914" data-pjax-transient
^
(gedit:3133): GtkSourceView-WARNING **: 18:20:57.852: Failed to parse '/home/treyzania/.local/share/gtksourceview-4/language-specs/kerboscript.lang'
(gedit:3133): GtkSourceView-WARNING **: 18:20:57.852: Error reading language specification file '/home/treyzania/.local/share/gtksourceview-4/language-specs/kerboscript.lang'
/usr/share/gtksourceview-4/language-specs/kerboscript.lang:50: parser error : Specification mandates value for attribute data-pjax-transient
a name="hovercard-subject-tag" content="repository:33886914" data-pjax-transient
^
(gedit:3133): GtkSourceView-WARNING **: 18:20:57.859: Failed to parse '/usr/share/gtksourceview-4/language-specs/kerboscript.lang'
(gedit:3133): GtkSourceView-WARNING **: 18:20:57.859: Error reading language specification file '/usr/share/gtksourceview-4/language-specs/kerboscript.lang'
This is with gedit version 3.36.2.
I'm getting errors using IntelliJ (latest ultimate edition) editing kos scripts.
Access from Event Dispatch Thread (EDT) is not allowed
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Current thread: Thread[AWT-EventQueue-0,6,main] 1177299881 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
at com.intellij.openapi.application.impl.ApplicationImpl.throwThreadAccessException(ApplicationImpl.java:1050)
at com.intellij.openapi.application.impl.ApplicationImpl.assertIsNonDispatchThread(ApplicationImpl.java:1044)
at com.intellij.codeInsight.daemon.impl.WolfTheProblemSolverImpl.queue(WolfTheProblemSolverImpl.java:231)
at ksp.kos.ideaplugin.KerboScriptFile.lambda$new$0(KerboScriptFile.java:39)
at com.intellij.openapi.project.SmartModeScheduler.runWhenSmart(SmartModeScheduler.kt:100)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:242)
at ksp.kos.ideaplugin.KerboScriptFile.<init>(KerboScriptFile.java:35)
at ksp.kos.ideaplugin.parser.KerboScriptParserDefinition.createFile(KerboScriptParserDefinition.java:68)
at com.intellij.psi.AbstractFileViewProvider.createFile(AbstractFileViewProvider.java:140)
A couple of things happen typically when the error happens: variables don't highlight correctly in larger programs (e.g. if I select a variable name, other versions of that variable don't highlight, so refactoring variable names doesn't work), and sometimes files completely disappear from the Left Hand file view, and I have to kill IntelliJ and restart to get them to show.
I use Notepad in its default style with white background. Any chance to get a syntax highlighting XML which would be usable with that? I remember when /u/space_is_hard (reddit) first created his Npp plugin for kOS, the color scheme looked okay with both black and white background. Now there are two different schemes, both put a black border around text which makes it impossible to read kOS code.
When trying to Import the kerboscript.xml into the language tab I get a Failed Import. Using Notepad ++ 6.7.7
The vim plugin should set the commentstring for folding purposes (and for commenters like nerdcommenter)
As a workaround this can be done in .vimrc:
autocmd FileType kerboscript setlocal commentstring=//%s
It would be nice to support the best programmers editor ๐
I've really like to be able to indent comments to my preferred style, so instead of this:
function foo {
// comments are at same level as function, so offset from code they are commenting on
// set the value of x to 1
set x to 1.
function bar {
// this is a comment in bar
set baz to 1.
}
}
I'd like to be able to tell it to indent to the same as code would be, i.e. the above would be:
function foo {
// set the value of x to 1
set x to 1.
function bar {
// this is a comment in bar
set baz to 1.
}
}
Ideally, it would be really nice to have a configuration in Code Style like other languages, where all code config could be tuned:
Which (I think) would then be usable in editorconfig configuration like:
[*.ks]
indent_size = 2
tab_width = 2
// java example: ij_java_line_comment_add_space = true
ij_kerbal_some_config_property = true
But that's pretty ambitious :) Just the ability to change comment indenting would be nice to start.
@valery-labuzhsky @MaraRinn @hvacengi @TDW89 @erendrake @TN-1
This is a notice to all current sub-module owners.
I'd like to include a project level README that gives a quick introduction to this repository. Additionally, I'd like to also include either a simple list of all supported editors, or small sections that provide an overview of each editor (a paragraph at most per editor).
Because this README reflects isolated sub-modules from multiple contributors, I didn't want to make a unilateral decision on this matter. If a small section is devoted to each editor, it gives everyone the option to personalize the manner in which their work is advertised. Conversely, If you feel editor specific documentation is more than enough description already, then all supported editors will just be listed in the order they appear.
Anyone looking to contribute or offer feedback can post those comments here. If you have no preference and don't care either way, you can explicitly state so or ignore this message entirely.
FUNCTION
and @LAZYGLOBAL
are missing from the keyword lists
An expression like local lock tgtVel to cancelVec().
is not correctly recognized by IntelliJ IDEA.
Shows an error that IS or TO expected, but got 'tgtVel'
.
The expression without local
don't have the error.
I receive the following exception repeatedly until I get the "Too many IDE fatal errors message"
ClassCastException: ksp.kos.ideaplugin.parser.KerboScriptParserUtil$RemapperPsiBuilder cannot be cast to com.intellij.lang.impl.PsiBuilderImpl
In an effort to find what the error was caused by, I started writing the following test script:
global foo is 5.
if foo=5 {
and the error occurred when I typed the opening brace.
When I was using the user-defined xml file I noticed that the build-in notepads++ folding function wasn't working. So I went out and investigated the problem. When you delete { } from the operator list the function seems to work. I don't know if anybody missed the function before but I really did, so I changed it in my version of the xml file.
Hi,
I write this as "should," but in fact I did KerboScript support from scratch last night, not having encountered this repo yet, and published a package already!
The bindings in EditorTools are better thought out than my own (though I did have a couple improvements to contribute; see separate pull request). Anyhow, this ticket is more about un-forking the two independent efforts and ensuring that the package available for install in the editor's UI is the "official" one, i.e. from this repo. To this end:
.ks
or .kerboscript
in the language metadata files (this being the language, as opposed to the kOS VM, runtime or addon).Does this sound acceptable, @space-is-hard ? If so, I'll open a PR to do the rename.
I followed the instructions for gedit 3.36.1, but for some reason Kerbo-Script is still not available as a highlight mode.
Any chance keywords could be reorganized into differently-colored groups?
Eg language segments:
should be in a different category than preexisting variables:
which should be separate from constants and enums like
separate from functions like
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.