We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, fs.js module:
export('absolute', 'base', 'copy', 'copyTree', 'directory', 'extension', 'isAbsolute', // non-standard/non-spec 'isRelative', // non-standard/non-spec 'join', 'makeTree', 'listDirectoryTree', 'listTree', 'normal', 'open', 'path', 'Path', 'read', 'relative', 'removeTree', 'resolve', 'write', 'split', // previously in fs-base 'canonical', 'workingDirectory', 'exists', 'isDirectory', 'isFile', 'isReadable', 'isWritable', 'list', 'makeDirectory', 'move', 'lastModified', 'openRaw', 'remove', 'removeDirectory', 'size', 'touch', 'symbolicLink', 'hardLink', 'readLink', 'isLink', 'same', 'sameFilesystem', 'iterate', 'Permissions', 'owner', 'group', 'changePermissions', 'changeOwner', 'changeGroup', 'permissions');
Most IDE supports RequireJS but not CommonJS. All of them will fail to parse the above code, making code suggestion impossible.
Change the above to this:
exports.absolute = absolute; exports.base = base; exports.copy = copy; exports.copyTree = copyTree; exports.directory = directory; exports.extension = extension; exports.isAbsolute = isAbsolute; // non-standard/non-spec exports.isRelative = isRelative; // non-standard/non-spec exports.join = join; exports.makeTree = makeTree; exports.listDirectoryTree = listDirectoryTree; exports.listTree = listTree; exports.normal = normal; exports.open = open; exports.path = path; exports.Path = Path; exports.read = read; exports.relative = relative; exports.removeTree = removeTree; exports.resolve = resolve; exports.write = write; exports.split = split; // previously in fs-base exports.canonical = canonical; exports.workingDirectory = workingDirectory; exports.exists = exists; exports.isDirectory = isDirectory; exports.isFile = isFile; exports.isReadable = isReadable; exports.isWritable = isWritable; exports.list = list; exports.makeDirectory = makeDirectory; exports.move = move; exports.lastModified = lastModified; exports.openRaw = openRaw; exports.remove = remove; exports.removeDirectory = removeDirectory; exports.size = size; exports.touch = touch; exports.symbolicLink = symbolicLink; exports.hardLink = hardLink; exports.readLink = readLink; exports.isLink = isLink; exports.same = same; exports.sameFilesystem = sameFilesystem; exports.iterate = iterate; exports.Permissions = Permissions; exports.owner = owner; exports.group = group; exports.changePermissions = changePermissions; exports.changeOwner = changeOwner; exports.changeGroup = changeGroup; exports.permissions = permissions;
And they will happy to parse our modules. There still be errors but at least, code completion worked accurately.
Tested with the latest NetBeans.
Please refactor your code to make our life easier. Thanks.
The text was updated successfully, but these errors were encountered:
This will be shipped in Ringo 3.0.0 and already has been replaced in the current master.
Sorry, something went wrong.
No branches or pull requests
For example, fs.js module:
Most IDE supports RequireJS but not CommonJS. All of them will fail to parse the above code, making code suggestion impossible.
Change the above to this:
And they will happy to parse our modules. There still be errors but at least, code completion worked accurately.
Tested with the latest NetBeans.
Please refactor your code to make our life easier. Thanks.
The text was updated successfully, but these errors were encountered: