Code Monkey home page Code Monkey logo

Comments (12)

oleg-shilo avatar oleg-shilo commented on June 30, 2024 1

Agree. Will have a look

from codemap.vscode.

oleg-shilo avatar oleg-shilo commented on June 30, 2024 1

Done. Fixed in v1.16.3

from codemap.vscode.

gitarian avatar gitarian commented on June 30, 2024 1

I'm not sure either. I just happend to see it once.

Even if it would happen again some day, since I'm new to TypeScript and VSCode extensions I better spend my rare spare time into the basic things of relevance. ;-)

I close this issue now for good. Thanks again. :-)

from codemap.vscode.

gitarian avatar gitarian commented on June 30, 2024

Hi Oleg,

thanks for the quick fix. :-))
I especially like the nature of the fix (temp replacement) because it's something of a kind I always think "no, that's too simple". ;-)

..... purchased a 10 bucks item in return.

from codemap.vscode.

oleg-shilo avatar oleg-shilo commented on June 30, 2024

Glad we were able to handle it quickly.
BTW thank you very much for your support. Much appreciated

from codemap.vscode.

gitarian avatar gitarian commented on June 30, 2024

You're welcome! I'm happy either. :-)

I'm currently building my very first VScode extension (of course, for exotic stuff: XYplorer scripting). The easy basics (syntax higlighting, snippets) have been done, now I have started to target the deeper stuff (hovers, go to etc - yet I think I won't do a Language Server ). But I'm still more lurking around typescriptlang than making real progess. ;-)

Nevertheless, CodeMap is already of great help, and actually provides a feature I can put off my list. Maybe I will contribute a dedicated mapper in the future.

Have a nice weekend.

from codemap.vscode.

oleg-shilo avatar oleg-shilo commented on June 30, 2024

BTW, you can have a look at my VSCode extension for CS-Script.
It is a script engine for C#. I have integrated it with Sublime Text, VSCode and Notepad++. With full support for IntelliSense (auto-completion, find references, Go to definition, etc)

You may find that all the challenges you are going to have been already solved. At least it will give you a jump start. The luxury I did not have :)
https://github.com/oleg-shilo/cs-script.vscode

from codemap.vscode.

gitarian avatar gitarian commented on June 30, 2024

During debuging my extension I got the following output on the vscode debug console:

SyntaxError: Invalid regular expression: /(/: Unterminated group
	at new RegExp (<anonymous>)
	at String.<anonymous> (${pathTo}\VSCode\data\extensions\oleg-shilo.codemap-1.16.3\out\src\utils.js:27:27)
	at ${pathTo}\VSCode\data\extensions\oleg-shilo.codemap-1.16.3\out\src\mapper_generic.js:49:55
	at Array.forEach (<anonymous>)
	at ${pathTo}\VSCode\data\extensions\oleg-shilo.codemap-1.16.3\out\src\mapper_generic.js:47:38
	at Array.forEach (<anonymous>)
	at Function.generate (${pathTo}\VSCode\data\extensions\oleg-shilo.codemap-1.16.3\out\src\mapper_generic.js:32:19)
	at FavoritesTreeProvider.get_map_items [as aggregateItems] (${pathTo}\VSCode\data\extensions\oleg-shilo.codemap-1.16.3\out\src\extension.js:82:47)
	at FavoritesTreeProvider.getScriptItems (${pathTo}\VSCode\data\extensions\oleg-shilo.codemap-1.16.3\out\src\tree_view.js:88:25)
	at ${pathTo}\VSCode\data\extensions\oleg-shilo.codemap-1.16.3\out\src\tree_view.js:56:34
	at new Promise (<anonymous>)
	at FavoritesTreeProvider.getChildren (${pathTo}\VSCode\data\extensions\oleg-shilo.codemap-1.16.3\out\src\tree_view.js:48:16)
	at _.fetchChildrenNodes (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:99:19383)
	at _.getChildren (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:99:15769)
	at v.$getChildren (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:99:11860)
	at i._doInvokeHandler (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:89:13826)
	at i._invokeHandler (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:89:13510)
	at i._receiveRequest (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:89:12171)
	at i._receiveOneMessage (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:89:11044)
	at ${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:89:8947
	at u.invoke (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:58:145)
	at v.fire (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:58:1856)
	at d.fire (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:66:19034)
	at ${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:104:34275
	at u.invoke (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:58:145)
	at v.fire (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:58:1856)
	at d.fire (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:66:19034)
	at o._receiveMessage (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:66:23615)
	at ${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:66:21149
	at u.invoke (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:58:145)
	at v.fire (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:58:1856)
	at v.acceptChunk (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:66:15865)
	at ${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:66:14995
	at Socket.P (${pathTo}\VSCode\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:104:13797)
	at Socket.emit (node:events:390:28)
	at addChunk (node:internal/streams/readable:315:12)
	at readableAddChunk (node:internal/streams/readable:289:9)
	at Socket.push (node:internal/streams/readable:228:10)
	at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)
	at Pipe.callbackTrampoline (node:internal/async_hooks:130:17) {stack: 'SyntaxError: Invalid regular expression: /(/:…Trampoline (node:internal/async_hooks:130:17)', message: 'Invalid regular expression: /(/: Unterminated group'}

The real stack is longer, but I think that doesn't matter.
In VSCode "normal" usage I didn't see any problem popped to the UI. Let me know, if I can help any further.

from codemap.vscode.

oleg-shilo avatar oleg-shilo commented on June 30, 2024

Can you please provide the mapper and the code that you are mapping?
I can have a look.

But... am I right interpreting your feedback as "everything works but there is some error in the debug output"?

from codemap.vscode.

gitarian avatar gitarian commented on June 30, 2024

> But... am I right interpreting your feedback as "everything works but there is some error in the debug output"?
Yes.

It was just by chance (debugging mode|F5), otherwise I don't see anything pointing to hickups.

But anyway, this is my settings.json entry:

  // --------------------- Extension: CodeMap ------------------------------
  "codemap.xyi": "config:codemap.xys",
  "codemap.xys": [
    {
      "pattern": "(?<=^\")([^-].*)(?=\")",
      "clear": "\"",
      "icon": "script",
      // "icon": "function"
    },
    {
      //"pattern": "(?<=^function )\\w*\\(([, ]*\\$\\w*)*\\)(?=\\s*\\{)",
      "pattern": "(?<=^\\s*function )\\w*\\(.*\\)(?=\\s*\\{)",
      "clear": "(",
      // "icon": "path:D:\\Personal\\Projects\\My\\git_working-copies\\VSCode\\xyscript-vscode\\icons\\green_square.svg",
      "icon": "function"
    },
  ],

No (dedicated) mapper over her, yet. ;-)

from codemap.vscode.

oleg-shilo avatar oleg-shilo commented on June 30, 2024

Not sure what it is but my debug console is clean. Basically, I cannot reproduce it.

What is even more interesting is that the method has unconditional top-level try...catch. Meaning that regardless of the possible invalid input the method cannot throw.

Thus I can only explain what you are observing by debugger printing (for whatever reason) the stack of the handled exception.

from codemap.vscode.

oleg-shilo avatar oleg-shilo commented on June 30, 2024

Amen to that :)

from codemap.vscode.

Related Issues (20)

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.