Coder Social home page Coder Social logo

editortools's People

Contributors

benjaminlooi avatar blackleg avatar dimir29 avatar dirtcrusher avatar efratror avatar erendrake avatar fuegofro avatar hiltiraceteam avatar jim-hart avatar mararinn avatar phparkle avatar slideclimb avatar space-is-hard avatar tdw89 avatar tomvanderlee avatar valery-labuzhsky avatar xeger avatar yump avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

editortools's Issues

An error about sublime 3

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!!!

gtksourceview spec broken

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.

IntelliJ Errors

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.

[Notepad++] Two color schemes but none for default white background?

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.

Notepad ++

When trying to Import the kerboscript.xml into the language tab I get a Failed Import. Using Notepad ++ 6.7.7

vim plugin not setting 'commentstring'

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

IntelliJ - Set the comment indents level

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:

image

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.

Project level README

@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.

Local lock is not correctly recognized in IDEA

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.

IDEA ClassCastException

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.

notepadd++: using build-in code folding function.

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.

Atom package should be published for easier installation by mortals

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:

  1. I've harmonized the contents of grammar.cson between the two repos (see #15).
  2. I propose that we change the suffix name to .ks or .kerboscript in the language metadata files (this being the language, as opposed to the kOS VM, runtime or addon).
  3. Having changed the suffix names in the grammar, etc, the package in this repo will be compatible with the one I've already published; I'll publish a new version from the contents of this repo, retire my own repo, and figure out if there's a way to do shared ownership in APM so someone other than myself can publish new builds of the package.

Does this sound acceptable, @space-is-hard ? If so, I'll open a PR to do the rename.

Notepad++: Keyword categorizing?

Any chance keywords could be reorganized into differently-colored groups?
Eg language segments:

  • SET, LOCK, TO, {FUNCTION and PARAMETER maybe}, [control flow]...

should be in a different category than preexisting variables:

  • THROTTLE, PITCH, YAW, ROLL, VOLUME, STABILITY...

which should be separate from constants and enums like

  • UP, NORTH, STABILITYASSIST...

separate from functions like

  • HEADING, HIGHLIGHT, WAIT...

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.