Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode and cli not supporting (~) for definition/documentation file paths #707

Closed
AshleyFlow opened this issue Jul 20, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@AshleyFlow
Copy link

in version 1.32.0 tilde expansion (~) was supposed to be supported for definition and documentation file paths, but it doesn't seem to be working

image

image

$ cat ~/.luneweb/.type_defs-0.3.0-pre2.d.luau 
declare class App
  function onLoad(self, message: any): ()

  function shareMessage(self, message: any): ()
  function sendMessage(self, channel: string, message: any): any

  function exit(self, exitCode: number): ()
  function run(self): ()
end

declare app: App

$ luau --version
1.32.0

$ luau analyze --definitions=~/.luneweb/.type_defs-0.3.0-pre2.d.luau src/init.luau
Cannot load definitions file ~/.luneweb/.type_defs-0.3.0-pre2.d.luau: path does not exist
@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label Jul 20, 2024
@JohnnyMorganz
Copy link
Owner

Do you need this to work on the command line? We don't intend to support that right now

@AshleyFlow
Copy link
Author

AshleyFlow commented Jul 20, 2024

I thought this needs to be supported on the cli because when I looked at the vscode extension I found out that it uses the "--definitions" flag, which seemed related to using the cli

addArg(`--definitions=${uri.fsPath}`);

if thats not related to the cli then no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants