Opening an asset (script) isn't working

Opening scripts isn’t working

  • Version of Teverse that the bug started to become noticeable or Date (if website bug)
    0.18.4, Still evident in 0.19.0

  • Operating System Name & Version (i.e MacOS Catalina 10.15.1) or Browser (if website bug)

    • Windows 10.
  • Detailed Description
    When a script I have created is double clicked it won’t open. The first time I click it does open a command prompt/powershell window though…

  • Issues that are caused by the bug (development setbacks, workflow disruption, etc)

    • Can’t open script and therefore can’t work on my extension.
  • Steps that you’ve tried before submitting a bug request

    • Debugged with @jay, and other stuff.
  • Steps to reproduce (clear, concise)

    1. Create a script
    2. Double click on it
  • A video or image of the bug

    • Can’t show anything.
  • Log files, dump files, etc

ERROR found in logs:

--
An error occured on a thread[string "teverseCore"]:0: attempt to index a nil value
TRACEBACK:
stack traceback:
	[string "teverseCore"]: in function 'editExternal'
	...teverse/workshop/controllers/ui/components/hierarchy.lua:142: in function <...teverse/workshop/controllers/ui/components/hierarchy.lua:128>
---

CC: @Sanjay @Superioran @Jay

Looking further into this.

Full Function
btn:mouseLeftReleased(function()
        if os.time() - lastClick < 0.35 then
            lastClick = 0
            -- expand
            expanded = not expanded
            if expanded then
                for _, child in pairs(object.children) do
                    if child.name ~= "_CreateMode_" then
                        createHierarchyButton(child, btn)
                    end
                end
                controller.scrollView.canvasSize =
                    guiCoord(1, 0, 0, updatePositions())
                if object.className == "script" then
                    object:editExternal()
                    -- require("tevgit:create/controllers/scriptController.lua").editScript(object)
                end
            else
                for _, v in pairs(btn.children) do
                    if v.name ~= "icon" then
                        if buttonToObject[v] then
                            buttonToObject[v] = nil
                        end
                        v:destroy()
                    end
                end
                controller.scrollView.canvasSize =
                    guiCoord(1, 0, 0, updatePositions())
            end
        elseif object.name ~= "_bounding" then
            -- single click
            local currentTime = os.time()
            lastClick = currentTime

            if (object:isA("folder")) then
                selection.setSelection(object.children)
                propertyEditor.generateProperties(object)
            else
                selection.setSelection(object)
            end

            controller.scrollView.canvasSize =
                guiCoord(1, 0, 0, updatePositions())
        end
    end)

The line is

  object:editExternal()

So therefore editExternal on the closed source backend is broken.
@Jay

Hey Sasial,

After reading your post, I’d like to give some insight as we don’t have an immediate viable solution as of yet.

Both the engine and workshop are going through major development/rewrites as we speak. However, I’ll correct this error by the time TevX comes around in the next few weeks. If the namespace (method signature changes between now and the near future, I’ll notify you).

Sorry for the inconvenience.

Yeah, for sure.
I’d just love to work on my VSC extension. (:
Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.