GithubHelp home page GithubHelp logo

hezkore / deprecated-vscode-blitzmax-support Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 0.0 762 KB

[Deprecated] VSCode BlitzMax Language Basics

License: MIT License

TypeScript 91.96% BlitzMax 2.79% CSS 5.24%
blitzmax vscode-extension

deprecated-vscode-blitzmax-support's Introduction

Retro paramour, professional tinkerer, software deity, eternal skeptic, and unapologetic Bash aficionado.

๐Ÿ“œ Hezkore's Gists

deprecated-vscode-blitzmax-support's People

Contributors

hezkore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

deprecated-vscode-blitzmax-support's Issues

OUTLINE window is empty

Setup (place X in matching boxes):

  • [ ] BlitzMax NG
  • [ X ] BlitzMax Legacy
  • [ X ] Windows
  • [ ] Linux
  • [ ] MacOS

Describe the bug
Hi!
I'm wery apprisuate your extension. Love it! After about 15 years of old MaxIDE it is blessing)

Is it normal that my OUTLINES window is empty, while editing .bmx files? Maybe I miss some settings?

Screenshots
Code_2020-01-08_10-20-25

No joy on samples/modules view for me!

Hi Hezkore, per the worklog, I'm still getting nothing in the samples/modules dropdowns. The dropdowns 'turn' when clicked, but nothing... drops down!

BlitzMaxNG is sitting at D:\DevTools\Blitz\BlitzMaxNG\bin and this is set in my PATH, so the folders are at:

D:\DevTools\Blitz\BlitzMaxNG\samples
D:\DevTools\Blitz\BlitzMaxNG\mod

I'm on latest 1.29.0 extension update, just installed/restarted. Latest blitzmax.org NG release too.

EDIT: Relevant? Using Windows 7, 64-bit.

Quick hack from the worklog post follows...

Hmm, still no joy! On looking up where the log file is, I found the VSC developer tools thing, which does show this:

[code]
EntryNotFound (FileSystemError):
at massageError (c:\Users\James.vscode\extensions\hezkore.blitzmax-1.26.1\out\samplesTree.js:35:43)
at handleResult (c:\Users\James.vscode\extensions\hezkore.blitzmax-1.26.1\out\samplesTree.js:27:20)
at c:\Users\James.vscode\extensions\hezkore.blitzmax-1.26.1\out\samplesTree.js:66:51
at FSReqCallback.oncomplete (fs.js:153:23)
[/code]

I see the sample scanning code in [code]c:\Users\James.vscode\extensions\hezkore.blitzmax-1.26.1\out\samplesTree.js[/code], but can't really follow it!

The error seems to be pointing to [code]handleResult(resolve, reject, error, normalizeNFC(children)))[/code] in [code]function readdir(path)[/code]. At least, that seems to be what sits at samplesTree.js:66:51.

No idea if that's any use!

Shows wrong tooltip text in other places when something is highlighted

Setup (place X in matching boxes):

  • [ x ] BlitzMax NG
  • [ ] BlitzMax Legacy
  • [ x ] Windows
  • [ ] Linux
  • [ ] MacOS

Describe the bug
When a keyword is highlighted in the editor, using ctrl-mouse-over to bring up info on something vscode doesn't understand shows the tooltip summary for the highlighted text.
This might be a bit confusing for some (like me!)

Screenshots
Note that If is the highlighted keyword at the beginning...
wrong_tooltips

Funky String auto-closing shenanigans

Setup (place X in matching boxes):

  • [ X ] BlitzMax NG
  • [ ] BlitzMax Legacy
  • [ ] Windows
  • [ ] Linux
  • [ ] MacOS

Describe the bug
When I attempt to type a sequence of three quotes ("), unfortunately it automagically adds a forth.
Two pairs of quotes is not valid syntax anyway :-)

String colouring issue

Setup (place X in matching boxes):

  • [ X ] BlitzMax NG
  • [ ] BlitzMax Legacy
  • [ ] Windows
  • [ ] Linux
  • [ ] MacOS

Describe the bug
As you can see from the screenshot, the contents of the string are being incorrectly coloured. Everything between the triple-quotes should be classed as a single string and coloured appropriately.

Screenshots
Apologies for the size... it looks half that size when I screen grabbed it.
crazy_colours

Same Line Access Modifiers and the Outline

Setup (place X in matching boxes):

  • BlitzMax NG
  • Windows

Describe the bug
Good Afternoon!

Any function or type that is after an accessor ('Private', 'Public', Etc..) will not show in the outline.

As an example:

Function Foo()
    ...
End Function

will display correctly in the outline, but

Private Function Foo()
    ...
End Function

will not.

I do know that this is probably not standard convention for Max, but it doesn't cause a compiler error and the latest version of BlitzMax (NG) is able to list the items in its outline without issue.

I have also noticed syntax highlighting for hex and binary literals is not working, but the Outline is the one we use the most.

Screenshots
image

Thank you for all the work you have been doing on here! At the risk of GitHub getting mad, I have to tell you that this plugin is fucking awesome!

Edit: Bad grammar!

[Request] Optional bracket handling in auto-completion

Setup (place X in matching boxes):

  • BlitzMax NG
  • [ ] BlitzMax Legacy
  • [ ] Windows
  • [ ] Linux
  • MacOS

Describe the bug
This is a request, no bug report!

If it is possible to do: Can we have optional bracket handling in auto-completion?

For me it looks very strange to have a space between the opening bracket and the first parameter, or the last parameter and the closing bracket.

I know, that i can do it by modifying blitzmax.js (lines 386+392), but in my opinion that is not the right way. After all this has to be done each time the extension is updated.

Screenshots
Before modifying blitzmax.js:
Bildschirmfoto 2020-05-22 um 09 25 26

After modifying blitzmax.js:
Bildschirmfoto 2020-05-22 um 09 31 33

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.