Coder Social home page Coder Social logo

Workspace issues about al-objid HOT 8 CLOSED

pzentner avatar pzentner commented on August 13, 2024
Workspace issues

from al-objid.

Comments (8)

vjekob avatar vjekob commented on August 13, 2024

If I understand you correctly, you have one workspace folder that contains three subfolders. So, it's just a normal folder structure, not a multi-root workspace? If this is what you have, then no, sorry, Ninja cannot support this, as this is an incorrect setup.

The only correct way to use multi-root workspace is by creating a VS Code workspace file (*.code-workspace) and open that file, rather than the folder containing that file.

Are you by any chance referring to AL-Go for GitHub templates (explained here: https://github.com/microsoft/AL-Go/#readme)

If so, then you'll notice that both of the templates contain the al.code-workspace file. You need to open that file.

If you think I have misunderstood anything, then please let me know and I'll reopen this issue.

from al-objid.

pzentner avatar pzentner commented on August 13, 2024

It is actually a workspace, but I was trying to show you the structure that is in the actual folder. I do have a workspace file in there and that file is opened (it shows also "AL (Workspace)" on the root in VS Code. I have tried it with having the .AL-Go folder and without having it as part of the workspace.

The issue might be that it was an existing app that I converted into that new structure and I have an .objidconfig file for the app, but not the test app. I have tried moving the file into the same folder as the workspace file and back into the folder where it was.

If it's moved into the "root folder" (where the workspace file is), the error I am getting is that the commands are not found (probably, because it's not activating the extension). If I have the config file where it was, I am getting the error that no AL folders are open.

If you want, I can send you the app, but I don't want to post it here.

from al-objid.

vjekob avatar vjekob commented on August 13, 2024

I'd prefer if you posted your app here. Can you do this:

  • Create a copy of your entire root directory
  • Remove all AL files, they aren't needed for anything
  • In app.json change ID, description or any properties that could be used to identify you or your company

However, before you do that - are you sure that your workspace is a multi-root workspace, rather than a single-root workspace with three subfolders?

from al-objid.

pzentner avatar pzentner commented on August 13, 2024

Here is the zipped file:

zipped file

It is a multi-root workspace, based on the definition of it, I would think. It has the same root folder all of the projects are in there, but they are all referenced in the workspace file.

from al-objid.

vjekob avatar vjekob commented on August 13, 2024

Thanks for this file. At first sight, I can see that this configuration really shows the behavior you explain, while all seems to be configured correctly.

I'm reopening this issue, and I'll investigate.

from al-objid.

vjekob avatar vjekob commented on August 13, 2024

Here's the deal. The app.json files in that workspace are not in UTF-8 format, but in UTF-8 with BOM format. Apparently, Node.js runtime fails to JSON.parse() UTF-8 with BOM correctly.

More about UTF-8 with BOM:
https://stackoverflow.com/questions/2223882/whats-the-difference-between-utf-8-and-utf-8-without-bom

I've found a workaround here:
nodejs/node-v0.x-archive#1918

I'll now try to see if it helps.

from al-objid.

vjekob avatar vjekob commented on August 13, 2024

Apparently, the workaround I linked above works fine, so I'll include the fix for this ASAP.

Thanks for finding this bug!

from al-objid.

vjekob avatar vjekob commented on August 13, 2024

Fixed in 2.7.1.

from al-objid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.