Closed MangelMaxime closed 6 years ago
Don't merge this PR yet, I should filter current file type.
.fsproj
use it directly.fs
try to find the associated project@Krzysztof-Cieslak when this is ready - please release ;-) I'm away from PC now
Should be ready for review.
@forki Perhaps, you could give us the action needed to release a new version to avoid deploying a broken version of mech.dll
Ah good point. Easiest fix. Change the build script here to run dotnet publish in the src folder of mechanic.commandline. Just right before that line that copies the mech libs. And instead of copying them from debug folder, copy them from the /public folder within that debug folder. Or even better: do the above but for release mode.
Maxime Mangel notifications@github.com schrieb am Di., 13. März 2018, 17:50:
Should be ready for review.
@forki https://github.com/forki Perhaps, you could give us the action needed to release a new version to avoid deploying a broken version of mech.dll
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ionide/ionide-vscode-mechanic/pull/16#issuecomment-372736676, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNEMdk4XIOxSBYoiDQ6ZaM-asLtauks5td_jpgaJpZM4So84x .
I sent a PR https://github.com/fsprojects/Mechanic/pull/86
Even better
is this ready?
Yes, it's ready for review and test.
I think we broke something
tried on mechanic itself:
Was the project loaded ? Does the file belongs to an fsproj ?
Seems like we were in this case:
In this case we probably need to execute:
PR appreciated ;-)
Hum...
If the file is not associated to project file then running Mechanic is useless. We probably need to add the file to an fsproj first.
What do you think ?
it is in the project.
The filter |> List.contains textEditor.document.uri.path dosesn't work.
I'm debugging it
Ok I listed the files in the project and then the textEditor.document.uri.path:
obviously they are in different format. similar issue to https://github.com/ionide/ionide-vscode-mechanic/issues/18
do we already have a way to normilze that? /cc @Krzysztof-Cieslak
how do we know if we are on windows or linux?
@forki Ah yes logic...
We can normalize the path: https://nodejs.org/api/path.html#path_path_normalize_path We can detect the OS:
open Fable.Import
if Node.Exports.os.platform() = Node.Base.NodeJS.Win32 then
// We are under windows
I think document.filename
or document.uri.fsPath
should have correct, normalized paths (from top of my head)
@forki Can I let you check that ? I don't have access to a Windows computer
current solution works for me. maybe we should just keep it
Careful, don't release this until we fixed #15 or we need a manual action on release.