Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@beyackle
Copy link
Contributor

Description

Loading multi-skill bots was broken on Windows due to strange behavior in Node's own path.resolve function, where it returns paths like /C:/Users. The leading slash breaks the server's ability to load files, so now we detect it. This also adds some null-checking for safety to the ProjectTree so you can load in a multi-bot project even on Windows and see it displayed (although the links won't work yet; that PR is still in progress).

Task Item

#minor

Screenshots

image

@beyackle beyackle changed the title Beyackle/server path check fix:correctly read project paths on Windows Oct 22, 2020
@beyackle beyackle changed the title fix:correctly read project paths on Windows fix: correctly read project paths on Windows Oct 22, 2020
};

const renderDialogHeader = (skillId: string, dialog: DialogInfo) => {
const warningContent = notificationMap[currentProjectId][dialog.id]
Copy link
Contributor

@srinaath srinaath Oct 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it better to put both error and warning content inside if(notificationMap[currentProjectId][dialog.id]) instead of typescript ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's about equivalent. I've gotten used to using ?. for cases like this.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 55.223% when pulling bc7fe14 on beyackle/serverPathCheck into 2a89e74 on main.

@beyackle beyackle merged commit 73e479b into main Oct 22, 2020
@beyackle beyackle deleted the beyackle/serverPathCheck branch October 22, 2020 19:38
@cwhitten cwhitten mentioned this pull request Nov 13, 2020
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* Update en-US.json

* add serverside path check for Windows and some null checks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants