Git Product home page Git Product logo

slang-vscode-extension's People

Contributors

csyonghe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

weakknight

slang-vscode-extension's Issues

Formatting error on comma separated boolean expressions with relational operators

Hi!

Thank you for the amazing vs code plugin!
I noticed a small, but annoying bug when formatting code, here is the most basic example I could come up with to reproduce it:

void example()
{
    float value = 1;
    bool2(value<1, 1> 1);
}

When an identifier is followed by a < and a comma and a > the spaces are removed between the operators and the operands.
Maybe it is handled as a generic parameter instead of two separate expressions?

Server crash when opening certain file

Server will crash when open Source/RenderPasses/ReSTIRPTPass/TemporalReuse.cs.lang from https://github.com/DQLin/ReSTIR_PT

Server log on first start and restart: (log level have been set to message)

// Opened vscode with only above file open
[Trace - 09:31:52] Sending request 'initialize - (0)'.
[Trace - 09:31:52] Received response 'initialize - (0)' in 134ms.
[Trace - 09:31:52] Sending notification 'initialized'.
[Trace - 09:31:52] Sending notification 'textDocument/didOpen'.
[Trace - 09:31:52] Sending request 'textDocument/inlayHint - (1)'.
[Trace - 09:31:53] Sending notification '$/setTrace'.
[Trace - 09:31:53] Received request 'client/registerCapability - (999)'.
[Trace - 09:31:53] Sending response 'client/registerCapability - (999)'. Processing request took 0ms
[Trace - 09:31:53] Received request 'workspace/configuration - (4627)'.
[Trace - 09:31:53] Sending response 'workspace/configuration - (4627)'. Processing request took 0ms
[Trace - 09:31:53] Received request 'workspace/inlayHint/refresh - (0)'.
[Trace - 09:31:53] Sending response 'workspace/inlayHint/refresh - (0)'. Processing request took 1ms
[Info  - 09:31:53] Connection to server got closed. Server will restart.
true
// Sever crashed and restarting. After restart for 5 times, vscode does not restart it anymore.
[Trace - 09:31:53] Sending request 'initialize - (0)'.
[Trace - 09:31:53] Received response 'initialize - (0)' in 162ms.
[Trace - 09:31:53] Sending notification 'initialized'.
[Trace - 09:31:53] Sending notification 'textDocument/didOpen'.
[Trace - 09:31:53] Sending request 'textDocument/inlayHint - (1)'.
[Trace - 09:31:53] Received request 'client/registerCapability - (999)'.
[Trace - 09:31:53] Sending response 'client/registerCapability - (999)'. Processing request took 0ms
[Trace - 09:31:53] Received request 'workspace/configuration - (4627)'.
[Trace - 09:31:53] Sending response 'workspace/configuration - (4627)'. Processing request took 0ms
[Info  - 09:31:53] Connection to server got closed. Server will restart.
true

MacOS language server fails to launch

Installing the slang extension using the MacOS version of vscode results in:

[Error - 8:43:29 AM] Starting client failed
Error: spawn Unknown system error -8
    at ChildProcess.spawn (node:internal/child_process:412:11)
    at Object.spawn (node:child_process:718:9)
    at /Users/cek/.vscode/extensions/shader-slang.slang-language-extension-1.1.2/client/out/main.js:39:17006

The code in question looks something like:

else if (Ba.is(d) && d.command) {
                     let w = d, S = w.args || [],
                         b = Object.assign({}, w.options);
                     b.cwd = b.cwd || _;
                     let N = Nn.spawn(w.command, S, b);
                     return !N || !N.pid ?
                         Promise.reject(`Launching server using command ${
                             w.command} failed.`) :

Formatting does not work on macOS

I am having issue with code formatting it's just doesn't work. I have a Windows PC and it's working good. But recently I bought a Mac and with all the same extensions and all packages installed formatting does not work, when all other features work as expected. I use latest version of VSCode, your extension and macOS Ventura 13.2. I'm not quite figured how to show you log but sometimes when I open "Output" tab and select "Extension Host" there is a some error with C++ unfortunately cannot provide error because I cannot get it now. C++ extension of course installed and all packages.

vs2019/2022 extension

Hi

I'm working on falcor in Vs2019, I'm wondering is there slang extension for vs2022/2019/

Thanks
Y

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.