-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Maximum call stack size exceeded #178
Comments
Apparently there is some problem with file's URIs on windows: /**
* compile the code and return marks
* @param document
*/
function compile(document) {
return __awaiter(this, void 0, void 0, function* () {
const filepath = require("file-uri-to-path")(document.uri);
console.log({
uri: document.uri,
filepath,
}); outputs: {
uri: 'file:///c%3A/Users/wilk/.vscode/extensions/axetroy.vscode-npm-import-package-version-0.7.5/server/out/parser/index.js',
filepath: '\\c%3A\\Users\\wilk\\.vscode\\extensions\\axetroy.vscode-npm-import-package-version-0.7.5\\server\\out\\parser\\index.js'
} File name starts with "/c:/Users" instead of "c:/Users". |
Sorry for adding another comment, But according to this comment on the file-uri-to-path package. Nodejs v10 and up have a File uri to path method already built-in also so axetroy could also just remove the dependency and replace it with the built-in method. const { fileURLToPath } = require('url');
fileURLToPath("file:///c%3A/Users/Admin/Desktop/Github_Stuff/Discord_Bots/StratoBotElite/branches/master/src/bot/commands/Logging/user-join.js")
/* which returns
/c:/Users/Admin/Desktop/Github_Stuff/Discord_Bots/StratoBotElite/branches/master/src/bot/commands/Logging/user-join.js*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when I started Visual Studio Code I got this in the output console for npm import version server.
The text was updated successfully, but these errors were encountered: