//Specture7\\
//Specture7\\5mo ago

Deno is not seeing a project

It seems deno is not seeing a project i am using. Project link: https://github.com/Swifter1243/ReMapper Error i am recieving in the picture: I can provide more if needed
GitHub
GitHub - Swifter1243/ReMapper: A framework for Beat Saber map scrip...
A framework for Beat Saber map scripting. Contribute to Swifter1243/ReMapper development by creating an account on GitHub.
No description
28 Replies
marvinh.
marvinh.5mo ago
1. have you installed the deno vscode extension? 2. is the extension enabled? According to the screenshot it's not. There is a "Deno: Enable" command in vscode supplied by the extension
//Specture7\\
//Specture7\\5mo ago
ive tried it already, it didn't seem to work. and yes i do have the extension
No description
marvinh.
marvinh.5mo ago
In that case @nayeemrmn can you take a look?
//Specture7\\
//Specture7\\5mo ago
and just to add, i just noticed the update at the bottom right and updated the extension, still gives the same error
AOC
AOC5mo ago
Did you get any errors when running the Deno: enable command?
//Specture7\\
//Specture7\\5mo ago
no, that works fine
//Specture7\\
//Specture7\\5mo ago
so actually, i don't get an error when i run deno:enable, but i do when i run Run:Deno
No description
marvinh.
marvinh.5mo ago
You're passing a path that contains spaces. The path needs to be wrapped with quotes like "c:\Program Files\..." , otherwise the shell will interpret each word as a command instead of as one path
//Specture7\\
//Specture7\\5mo ago
right so, even when i do that i now get this error
No description
marvinh.
marvinh.5mo ago
That looks like a bug in the JS code. I'm not familiar enough with the remapper library and what kind of data is passed into that
//Specture7\\
//Specture7\\5mo ago
right, but also still not too sure about this error here
No description
marvinh.
marvinh.5mo ago
Run the Deno: Enable command from the vscode command palette. Based on the ts-(<number>) bit at the end of the diagnostic you can tell that vscode's built in language sever is still active instead of the one from deno. Diagnostics from the deno language server show up as deno-ts-(<number>)
//Specture7\\
//Specture7\\5mo ago
so when i run deno enable it doesnt look like it does anything, with the new update was the deno initialize workspace command removed? it says here i need to use it when doing the installation
No description
marvinh.
marvinh.5mo ago
I think it was renamed to Deno: Enable cc @nayeemrmn
//Specture7\\
//Specture7\\5mo ago
ah that makes sense, though before when i would run it a few things would pop up at the bottom right asking to allow a few things, i forgot what they were though but yeah even when running deno enable it still doesn't get rid of the error for some reason
marvinh.
marvinh.5mo ago
I guess I'm at my wits end. @nayeemrmn can you look into this?
//Specture7\\
//Specture7\\5mo ago
and i can provide more if needed btw the only thing i can think of is that its my vsc being wonky, though im not sure cause it probably works fine for swifter
marvinh.
marvinh.5mo ago
It's likely a bug in our vscode extension
//Specture7\\
//Specture7\\5mo ago
i guess that could be a possibility i wonder if the initialized workspace being renamed messed with the project somehow
irbull
irbull5mo ago
It was renamed, but an alias was added so both work. What is in your settings.json in the .vscode folder? I created a PR that adds a modal dialog (info pop up in the bottom right) to provide an indication that Deno: Enable actually did something. While the PR is merged, I don't know if it's released yet.
nayeemrmn
nayeemrmn5mo ago
Are you sure it's the same error, or is the import not cached
//Specture7\\
//Specture7\\5mo ago
its this here
No description
//Specture7\\
//Specture7\\5mo ago
im 95% sure its the same error sry for the late reply on both of these
//Specture7\\
//Specture7\\5mo ago
so im not the best at coding, in fact im pretty new to it tbh, but from what it looks like is that it may recognize it with this but it still shows this error. so its still confusing to me. and theres more in the .txt file but im not copy and pasting the whole thing
marvinh.
marvinh.5mo ago
looks like for whatever reason the deno extension isn't active and the built in ts-server still takes over @nayeemrmn any idea what could cause this?
//Specture7\\
//Specture7\\5mo ago
yeah no idea why its not active, unless there is something im missing somehow in the extension but i don't think i am, i did deno: enable and everything but nothings happening. really weird also if this helps figuring out what i am missing, there are some map scripts with 3.1.2 here https://github.com/Swifter1243/MapScripts/blob/main/ReMapper/3.1.2/The%20Siren%20Song/script.ts so kind of an odd thing happened yesterday, i went and did the setup for a map im trying to use this script on with my PC and it worked perfectly not giving that error im having. no idea how its fine on that but not my laptop which is what ive been trying to set it up on. maybe i have a plugin that conflicts with deno somehow? im not sure if thats how it would work but maybe idk
marvinh.
marvinh.5mo ago
yeah could be one of the vscode extensions. Maybe try disabling others and only having the one from deno active
//Specture7\\
//Specture7\\5mo ago
ill give it a try