primordic/IssueDupesLite huggingface dataset:
Repository: fleaflet/flutter_map

Issue #1288: [BUG] Map fails to reinitialize while in ListView
Created: 2022-06-23T16:37:18Z
When you put the FlutterMap inside a ListView, it can be hidden and then added anew. And it fails, because it sets a new state for a map controller, which is already initialized. Testing code is below: it adds 30 lines of text after the map. Scroll down and then back up again to see the error.
Mapybe mapController needs to be disposed properly?
Flutter_map 1.1.0, Flutter 3, Dart 2.17.
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart' show LatLng;

void main() {
  runApp(const MaterialApp(
    title: 'Flutter Demo',
    home: MyHomePage(),
  ));
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Map in a ListView'),
      ),
      body: ListView(children: [
        SizedBox(
          height: 100.0,
          child: FlutterMap(
            options: MapOptions(
              center: LatLng(50, 30),
              zoom: 13,
              allowPanningOnScrollingParent: false,
            ),
            layers: [
              TileLayerOptions(
                urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
              ),
            ],
          ),
        ),
        for (int i = 1; i < 30; i++)
          Padding(
            padding: const EdgeInsets.all(20.0),
            child: Center(child: Text('Line $i', style: const TextStyle(fontSize: 20))),
          ),
      ]),
    );
  }
}

Duplicate issue #1290: Late Initialization Error
Created: 2022-06-28T00:30:15Z
LateInitializationError: Field '_state@#########' has already been initialized.
This happen when I use it in a listview while scrolling down and then up the list.
So by changing the "late final MapState _state;" not to be final the error is gone.

Closing comment (2022-06-28T20:31:16Z): Hi there @afshinshahriarifahliani,
This is a duplicate of #1288.
In the future, please check for duplicates before you raise an issue. Additionally, please use the appropriate issue template: it makes it easier for us to understand and respond quicker!
Thanks for the report.
Repository: fleaflet/flutter_map

Issue #1420: [BUG] Transparently filled `Polyline` becomes black
Created: 2022-12-21T16:26:11Z
What is the bug?
A Polyline with color set to Colors.transparent seems to turn black. See the video for more precision: screen-capture.webm. Guess my email is leaked now :D
Interestingly, when transparent, it covers the border of another line.
Occurs on latest version and on previous version. Cannot confirm previous to that.
What is the expected behaviour?
It should stay transparent.
How can we reproduce this issue?
Just make a transparent Polyline and put it on a map.
Do you have a potential solution?
No response
Can you provide any other information?
Selected all platforms, because this is unlikely to be a platform specific issue. See the video above for more detail.
Platforms Affected
Android, iOS, Web, Windows, MacOS, Linux
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
Frequency
Often: Occurs more often than when it doesn't
Requirements

 I agree to follow this project's Code of Conduct
 My Flutter/Dart installation is unaltered, and flutter doctor finds no relevant issues
 I am using the latest stable version of this package
 I have checked the FAQs section on the documentation website
 I have checked for similar issues which may be duplicates

Duplicate issue #1510: [BUG] Polyline with border ignores color in V4
Created: 2023-05-10T12:04:52Z
What is the bug?
When setting a border color on a polyline the color property gets ignored and the polyline is drawn with a black color.
How can we reproduce it?
Set the color property and the border color property on a polyline.
Do you have a potential solution?
I may be wrong but it looks like the wrong color value is set in filterPaint in the polyline_layer class.
Platforms
All flutter platforms
Severity
Minimum: Allows normal functioning

Closing comment (2023-05-10T14:37:46Z): This issue looks similar to #1420. It arrived at some point prior to 3eda247, and as such is a very old issue.

I am not to sure. The color worked correctly before I upgraded to V4.
Repository: fleaflet/flutter_map

Issue #234: Update cached_network_image dependency to ^0.6.0
Created: 2019-02-24T16:42:51Z
Because flutter_map >=0.5.0 depends on cached_network_image ^0.5.1 and [appname] depends on cached_network_image 0.6.0+1, flutter_map >=0.5.0 is forbidden.
So, because [appname] depends on flutter_map 0.5.0, version solving failed

Duplicate issue #263: add support for cached_network_image 0.7+
Created: 2019-04-10T05:47:18Z
Because flutter_map >=0.5.0 depends on cached_network_image ^0.5.1 and  depends on cached_network_image 0.7.0, flutter_map >=0.5.0 is forbidden.
So, because  depends on flutter_map 0.5.0, version solving failed

Closing comment (2019-04-16T23:41:45Z): Same as #234
Repository: fleaflet/flutter_map

Issue #1161: Performance issues and fatal crashes caused by WMS layer
Created: 2022-02-16T08:02:10Z
Verification of void com.google.android.gms.common.api.internal.zacp.() took 123.523ms or Skipped 161 frames! The application may be doing too much work on its main thread. before app crashes andoid studio shows one of these but mostly it gives me skipped frames error in run window of android studio and finally app crashes(closed).

Duplicate issue #1162: I am working with Geoserver map in flutter using WMS layer. When i zoom in the map then some time it displays blurred map and app closes. what could be the issue? i mean when it takes more time than usual for loading map then it crashes the application after some time Why ?
Created: 2022-02-16T08:14:33Z
Verification of void com.google.android.gms.common.api.internal.zacp.() took 123.523ms or Skipped 161 frames! The application may be doing too much work on its main thread. before app crashes andoid studio shows one of these but mostly it gives me skipped frames error in run window of android studio and finally app crashes. sorry previuos question was accidently closed by me. but this issue is still not solved

Closing comment (2022-02-16T08:18:31Z): Duplicate of #1161
Repository: fleaflet/flutter_map

Issue #253: ListView snatches scroll gestures
Created: 2019-03-23T20:46:33Z
I put my map in a ListView.  When dragging left and right on the map, the maps scrolls around, when going up and down (the direction of the ListView), the ListView gets those gestures rather than the map.  How do I get the map to use those gestures instead?

Duplicate issue #891: CircleLayerWidget prevents tap on other layers
Created: 2021-05-08T12:47:04Z
Hi there,
just experienced this weird behavior that a CircleLayerWidget as a last child prevents all taps on other layers (e.g one with markers containing GestureDetectors).
FlutterMap(
  children: [
       TileLayerWidget(),
       MarkerLayerWidgetWithGestureDetectors(),
       CircleLayerWidget()
  ]
);

return CircleLayerWidget(
  options: CircleLayerOptions(
  circles: [
    CircleMarker(
        point: LatLng(location.latitude, location.longitude),
        color: Colors.blue.withOpacity(1),
        borderStrokeWidth: 3.0,
        borderColor: Colors.white,
        radius: 8 
    )
  ],
));

Not sure but the CustomPaint used in the CircleLayer might not delegate hits to other widgets beneath.
Ended up using a MarkerLayer that draws a circle.

Closing comment (2021-05-09T18:51:50Z): Duplicate of #253?
Repository: fleaflet/flutter_map

Issue #220: Tilt camera
Created: 2019-02-03T11:51:18Z
Hi,
Is it possible to tilt/pitch the map (camera).
If not, is it technically possible to add such support?
For example in Mapbox GL - link
<script>
  mapboxgl.accessToken = '<your access token here>';
  var map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/streets-v9',
    center: [-73.5804, 45.534830],
    pitch: 60, // pitch in degrees
    bearing: -60, // bearing in degrees
    zoom: 10
  });
</script>
or google_maps_flutter - link
RaisedButton(
  child: const Text('Go to London'),
  onPressed: mapController == null ? null : () {
    mapController.animateCamera(CameraUpdate.newCameraPosition(
      const CameraPosition(
        bearing: 270.0,
        target: LatLng(51.5160895, -0.1294527),
        tilt: 30.0,
        zoom: 17.0,
      ),
    ));
  },
),

Duplicate issue #1508: is there any plan to build 3D map?
Created: 2023-05-09T14:33:13Z
What do you want implemented?
to view map in 3d mode , just like this:  https://www.procedural.eu/map/
What other alternatives are available?
procedural_gl.js can be nested in mobile WebView, but has some issues  and hard to share resources locally
Can you provide any other information?
procedural_gl.js   base on three.js , and there is dart version of three.js . is it possible to develop this feature on it ?
https://pub.dev/packages/three_dart
Severity
Annoying: Currently have to use workarounds

Closing comment (2023-05-09T14:43:15Z): Hi @tranice,
This is too technologically challenging to implement into core. There have been some attempts before, such as implementing a very basic tilt, but these had issues pretty much everywhere.
This is a duplicate of #220, duplicate of #1268, duplicate of #1121, and more.
If you're willing to create a plugin, we'd be happy to add it to our docs!
Repository: flox/flox

Issue #1341: Cannot allocate memory in static TLS block
Created: 2024-04-18T19:45:41Z
Describe the bug:
Running dig or host inside a flox environment I get the error..
$ dig github.com
dig: error while loading shared libraries: /lib/x86_64-linux-gnu/libjemalloc.so.2: cannot allocate memory in static TLS block
This just started happening and I've yet to find a cause in environments that were working fine. Outside the flox environments dig/host still work fine. It happens with brand new, empty environments.
Digging around a bit I found issue 2472 in jemalloc's repo. I found that flox sets LD_AUDIT is set and if I unset that environment variable I no longer get the error (dig works normally).
Steps to reproduce:

flox init
flox activate
dig github.com

Though I doubt you will be able to repro it as it started happening after a period of time and a lot of activity.
Result: error shown above
Expected: dig's normal output (dns lookup info)
Screenshots/terminal output (if relevant):
flox Version (run flox --version if possible):
1.0.3
uname -a output:
Linux hostname 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

Duplicate issue #2089: package(biome): failing with libjemalloc error
Created: 2024-09-14T09:29:05Z
Describe the bug:
I'm opening this issue here because I don't get this problem with nix-shell, only with Flox.
flox add biome
❯ biome
biome: error while loading shared libraries: /nix/store/yya3r8xaii5f06hq3h0c7ilq2zxc7yys-jemalloc-5.3.0/lib/libjemalloc.so.2: cannot allocate memory in static TLS block
Flox Version (run flox --version if possible):
❯ flox --version
1.3.1-g52bed36
uname -a output:
❯ uname -a
Linux p4x-desktop-nixos 6.10.1-zen1 #1-NixOS ZEN SMP PREEMPT_DYNAMIC Tue Jan  1 00:00:00 UTC 1980 x86_64 GNU/Linux

Closing comment (2024-09-14T18:06:58Z): Thanks! Dup of #1341
Repository: flox/flox

Issue #1246: layered environments impact each other in unexpected ways
Created: 2024-03-29T20:56:34Z
STR:

create an environment and flox install almonds to it (a python app).
flox activate the environment
do flox activate -r rossturk/flaim
do the gen command listed

Result: errors


now flox uninstall almonds from the first environment
do the gen command again

Result: no errors
Expected: one environment's almonds shouldn't effect another's python tool chain. can we look onto what's going on here?

Duplicate issue #1317: FLOX_ENV_LIB_DIRS can't handle multiple directories
Created: 2024-04-12T22:36:51Z
Currently if two different environments both contain a library that ends up in FLOX_ENV_LIB_DIRS, the environments interfere with each other.
A reproducer and then test case for this issue would be:

identify two packages containing libraries
install each package to a different env
activate both environments sequentially (so that there are two paths in FLOX_ENV_LIB_DIRS)
attempt to make use of both libs in some way

compile a test program, remove its RPATH and see if LD_AUDIT can find both paths

Closing comment (2024-04-12T22:39:22Z): @limeytexan this is similar to #1246 and relates to #1268, and my understanding from that ticket is that we should only set development env vars for a single package group in the most recently activated environment (#1246 (comment)). While I do think it's probably worth fixing ld-audit for the sake of correctness, it seems like the more complete solution for the CLI would be doing #1268
Repository: flox/flox

Issue #2067: Some Jupyter notebook extensions aren't found
Created: 2024-09-06T16:13:45Z
Given this manifest:
version = 1

[install]
psycopg.pkg-path = "python312Packages.psycopg"
tqdm.pkg-path = "python312Packages.tqdm"
datasets.pkg-path = "python312Packages.datasets"
ipywidgets.pkg-path = "python312Packages.ipywidgets"
huggingface-hub.pkg-path = "python312Packages.huggingface-hub"
jupyterlab-widgets.pkg-path = "python312Packages.jupyterlab-widgets"
nodejs.pkg-path = "nodejs"
widgetsnbextension.pkg-path = "python312Packages.widgetsnbextension"
pip.pkg-path = "python312Packages.pip"
jupyter.pkg-path = "jupyter"
btop.pkg-path = "btop"
postgresql_15.pkg-path = "postgresql_15"
tmux.pkg-path = "tmux"
ripgrep.pkg-path = "ripgrep"

[options]
systems = ["aarch64-darwin", "x86_64-darwin", "aarch64-linux", "x86_64-linux"]

If you activate the environment and try to list the extensions available to jupyter, it will not list all of the installed extensions:
$ flox activate
$ jupyter labextensions list
`sys_prefix` level settings are read-only, using `user` level for migration to `lockedExtensions`
JupyterLab v4.2.4
/nix/store/ni927g0pp68wmkbmanw5x5z92d91zgna-python3-3.12.5-env/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        @jupyter-notebook/lab-extension v7.2.1 enabled OK

Note that jupyterlab-widgets is not included in this list.

Duplicate issue #2068: Add python activation logic for jupyter labextensions
Created: 2024-09-06T18:28:56Z
Motivation
Hard to troubleshoot issue with using Jupyter labextension with Flox provided notebooks
Acceptance Criteria
When I have flox activate an environment that has jupyter installed
Then I see echo $JUPYTER_DATA_DIR is equal to "$FLOX_ENV/share/jupyter"
thanks to a community member for reporting: https://discourse.flox.dev/t/issues-using-jupyterlab-extensions-with-flox/958/9
Longer AC
Given my environment is

version = 1

# List packages you wish to install in your environment inside
# the `[install]` section.
[install]
psycopg.pkg-path = "python312Packages.psycopg"
tqdm.pkg-path = "python312Packages.tqdm"
datasets.pkg-path = "python312Packages.datasets"
ipywidgets.pkg-path = "python312Packages.ipywidgets"
huggingface-hub.pkg-path = "python312Packages.huggingface-hub"
jupyterlab-widgets.pkg-path = "python312Packages.jupyterlab-widgets"
nodejs.pkg-path = "nodejs"
widgetsnbextension.pkg-path = "python312Packages.widgetsnbextension"
pip.pkg-path = "python312Packages.pip"
jupyter.pkg-path = "jupyter"
btop.pkg-path = "btop"
postgresql_15.pkg-path = "postgresql_15"
tmux.pkg-path = "tmux"
ripgrep.pkg-path = "ripgrep"
[hook]
on-activate = '''
   # export JUPYTER_DATA_DIR="$FLOX_ENV/share/jupyter"
'''
[options]
systems = ["aarch64-darwin", "aarch64-linux", "x86_64-darwin", "x86_64-linux"]

And I have flox activate-ed this environment
When I run jupyter labextension list
Then I see a successful execution

Closing comment (2024-09-06T20:46:57Z): duplicate of #2067
Repository: flox/flox

Issue #2641: Python virtual environments lacking CUDA
Created: 2025-01-23T15:54:09Z
Describe the bug:
If I create a Python virtual environment and perform a minimal Torch installation with pip install torch numpy on a system with CUDA cores, it results in an accelerated Torch during hook.on-activate but not in the activated environment.
Steps to reproduce:

Begin on a system with CUDA cores
flox activate -r rossturk/cuda-tester

Result:
Returns true during check in hook.on-activate, but false during check in profile.*.
Expected:
Returns true both during check in hook.on-activate and check in profile.*.
Flox Version (run flox --version if possible):
1.3.11
uname -a output:
Linux lilbeast 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Contents of the test environment manifest
version = 1

[install]
python.pkg-path = "python3"
python.version = "3.12"
gcc-unwrapped.pkg-path = "gcc-unwrapped"
gcc-unwrapped.systems = [ "aarch64-linux", "x86_64-linux" ]

[hook]
on-activate = '''
  export PYTHON_DIR="$FLOX_ENV_CACHE/python"
  if [ ! -d "$PYTHON_DIR" ]; then
    python -m venv "$PYTHON_DIR"
  fi

  (
    source "$PYTHON_DIR/bin/activate"
    pip install torch numpy --quiet
    echo "========= testing from within hook"
    python -c 'import torch; print(torch.cuda.is_available())'
  )
'''

[profile]
bash = '''
  source "$PYTHON_DIR/bin/activate"
  echo "========= testing from within profile"
  python -c 'import torch; print(torch.cuda.is_available())'
'''
zsh = '''
  source "$PYTHON_DIR/bin/activate"
  echo "========= testing from within profile"
  python -c 'import torch; print(torch.cuda.is_available())'
'''

[options]
systems = [
  "aarch64-darwin",
  "aarch64-linux",
  "x86_64-darwin",
  "x86_64-linux",
]

Duplicate issue #2637: torch-bin no longer accelerated
Created: 2025-01-22T17:49:44Z
Describe the bug:
Installing torch-bin no longer provides CUDA acceleration when installing from the Flox Catalog
Steps to reproduce:

Begin on system with CUDA cores
flox init
flox install python311Packages.torch-bin
flox activate
python -c 'import torch;torch.cuda.is_available()'

Result:
/tmp/tmp.xblPP3jHTx/.flox/run/x86_64-linux.tmp.xblPP3jHTx.dev/lib/python3.11/site-packages/torch/cuda/__init__.py:141: UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 34: CUDA driver is a stub library (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.)
  return torch._C._cuda_getDeviceCount() > 0
False

Expected:
True

Flox Version (run flox --version if possible):
1.3.10
uname -a output:
Linux lilbeast 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64 GNU/Linux

Closing comment (2025-01-29T16:12:01Z): Dup of #2641
Repository: flox/flox

Issue #922: Remove redundant help text
Created: 2024-02-05T18:02:32Z
Many of our commands have duplicate or redundant help text summary lines:
Duplicate:
> flox list --help
List packages installed in an environment

Usage: flox list [-d=<path> | -r=<owner/name>] [-c | -n | -e | -a]

List packages installed in an environment

Redundant:
> flox show --help
Show details about a single package

Usage: flox show [--all] <search-term>

Show detailed package information

We should eliminate the second line below usage. We can add more detailed description there if we want (see e.g. flox upgrade --help)

Duplicate issue #961: Remove duplicate command descriptions
Created: 2024-02-08T22:21:06Z
Many commands display their command descriptions twice as seen here (Install a package into an environment):
Install a package into an environment

Usage: flox install [-d=<path> | -r=<owner/name>] [-i <id> <package>]... [<packages>]...

Install packages to an environment
    -d, --dir=<path>  Path containing a .flox/ directory
    -r, --remote=<owner/name>  A remote environment on floxhub
  -i <id> <package>
    -i, --id          Install a package and assign an explicit ID
    <id>              ID of the package to install
    <package>         Name or relative path of the package to install as shown by 'flox search'

Available options:
    -h, --help        Prints help information

Acceptance criteria:

Remove the second command description, but leave additional explanation if it currently exists.

Closing comment (2024-02-08T23:44:38Z): Dup of #922
Repository: flox/flox

Issue #1251: Composable Flox environments
Created: 2024-04-01T15:13:06Z
Motivation
When I have a base environment defined in FloxHub or elsewhere on my machine
And I want to guarantee that a project environment is based on the base environment
I need to be able to define environments my project environments are based on
So I can build similar projects with re-usable environments (instead of repeating myself)
This is a larger feature. Will use this issue as a catch-all for feedback
Needs design

Duplicate issue #2087: Monorepository Support
Created: 2024-09-13T20:56:16Z
Describe the feature:
I'd like the ability to list other environments within the manifest.toml that when activated, layers on multiple environments.
In my monorepository, I'd like to provide a series of common environments near the top of the repository.

NodeJS
Bun
Turso
PostgreSQL
Rust
Zig

Then individual projects / services can cherry pick which ones make sense for them. In a Rust project, it may wish:
environments = [
  "floxhub://rawkode/rust",
  "gitroot://flox/turso",
  "gitroot://flox/bun"
]

Where floxhub:// designates a remote environment, but gitroot:// designates from the root of the current Git repository.

Closing comment (2024-09-13T20:58:48Z): Is this the same as #1251?
Repository: flox/flox

Issue #346: flox activate with linkFarm
Created: 2023-10-30T19:36:28Z
EDIT:
This is a parent ticket that will be closed when the following are closed:

 #405
 #406

Build initial activate script inspired by existing activate script using linkFarm instead of buildEnv (Take what we have today).

Port logic from https://github.com/flox/phlox/blob/main/src/tasks/env/activate.sh for a simple activation.
By default include profile and profile.d/0100_common-paths.sh scripts

Sets common environment variables such as PATH, PKG_CONFIG_PATH, etc ( see https://github.com/flox/etc-profiles/blob/main/profile and https://github.com/flox/etc-profiles/blob/main/profile.d/0100_common-paths.sh )


Prompt logic in activate - pull parts of existing flox-bash routines. Existing bash script. Rust is currently setting FLOX_PROMPT_ENVIRONMENTS but the rest of the logic needs to be in a shell script
The only input is the lockfile.

TODO:

 Change lockfile format to include locked URLs in addition to or instead of the exploded flake references.

Acceptance Criteria
When I install tool chain and its package manager (i.e. flox install pip, python3 && flox activate && pip install requests && python3)
And I use the tool chain
Then language can find packages installed via toolchain-specific package manager

Duplicate issue #406: activate: support more versions of bash
Created: 2023-11-07T15:25:30Z
bash 3.2.57 (macOS default) fails with:
> /bin/bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
Copyright (C) 2007 Free Software Foundation, Inc.
> SHELL=/bin/bash flox activate
Building environment...
bash: /nix/store/g0hfwlhbx41kja7jmzj6x03w2lhsv0j5-source-profiles.sh: line 42: syntax error near unexpected token `;'

nixpkgs#bash has a garbled prompt (note that nixpkgs#bashInteractive works as expected):
\[\]\[\]flox \[\][debug]\[\] $

Closing comment (2023-11-07T15:28:28Z): related to #346
Repository: foambubble/foam

Issue #45: Possible to include the link reference in the published version? 
Created: 2020-07-02T18:07:07Z
Is it possible to include the link reference in the Github pages rendered/published version?
This would be super helpful for digital gardeners.

Duplicate issue #237: Feature request: Backlinks in markdown preview
Created: 2020-08-30T09:56:11Z
The backlinks today are visible only in markdown source mode, and not in markdown preview. I wonder if this intentional.
When exploring my knowledge archive, I would exclusively like to navigate in markdown preview mode (since it's rendered and neater), and backlinks are important for navigation.

Closing comment (2021-01-21T16:12:15Z): the roadmap item was moved to here: https://foambubble.github.io/foam/dev/materialized-backlinks
possibly duplicate of #45
Repository: foambubble/foam

Issue #749: Add support for VSCode Web
Created: 2021-08-22T23:59:37Z
with the feature of loading a full fledged editor in the browser with just pressing the . on the keyboard, It would be great if we could bring the nodes to the browser.

Duplicate issue #1234: Support foam extension github.dev web editor
Created: 2023-05-22T08:47:41Z
Is your feature request related to a problem? Please describe.
Foam extension doesn't run in github.dev editor.
How to reproduce:

open a foam worksace on github.com
select edit in github.dev
when vs code editor open, select extension on the left and search for "foam"
The extension can't be installed, a link point to this page https://code.visualstudio.com/docs/editor/vscode-web#_extensions

Describe the solution you'd like
As a user I expected foam extension supported on github.dev
The extension must be refactored in order to works with vscode web sand box as described here https://code.visualstudio.com/docs/editor/vscode-web#_extensions
Describe alternatives you've considered
Nothing else is available to allow complete web based github editor experience
Screenshots or Videos
No response

Closing comment (2023-05-22T11:27:58Z): duplicate of #749
Repository: foambubble/foam

Issue #314: Document publishing foam-vscode
Created: 2020-11-04T00:46:58Z
This message is copied from a private channel in Discord (if you have access, you can view here).

As for publishing, you can use lerna to publish all packages in lockstep.
First bump the package version by running this in the monorepo root:
yarn lerna version <major|minor|patch>
That will bump the version numbers of all packages, and their internal references, so for example foam-vscode will point to the new version of foam-core etc.
It will also push a tag to github. If you want to dry run this locally without pushing, you can run
yarn lerna version minor --no-git-tag-version --no-push
When you're ready to publish, you can do:
yarn lerna publish
Once the npm packages are published, you can package up the vscode extension with the following command in the foam-vscode directory:
yarn package-extension
The vsce tool does not understand yarn monorepos, so what this will do is use npm to install the package, which requires the foam-core dependency to have already been published to npm. I know this is ass backwards, since if you discover that something is wrong in the packaged extension, you'll need to fix whatever issue there is and then republish the packages to npm, which will again bump the version number and cause potentially dead versions in the registry. If you want to avoid that, you can first create an alpha version with creating a prerelease version, e.g. 0.4.1-alpha.0, with:
yarn lerna publish <premajor|preminor|prepatch|prerelease>
Anyway, once you've gotten a nicely packaged vsix file, you can install
and test it locally:
code --install-extension foam-vscode-0.4.1.vsix
If everything is fine, you can then publish the vsix file to marketplace:
vsce publish --packagePath foam-vscode-0.4.1.vsix
That should probably be documented, and the process could be improved, but that's what it is now 🤷‍♂️

Two things I wanted to note here:

Ideally, it would be nice to auto-publish via a GitHub action
Publishing the extension should be documented somewhere for contributors

Duplicate issue #57: Improve monorepo setup
Created: 2020-07-05T08:19:59Z
Last night I migrated all the foam packages (save for foam-template) to a monorepo structure. There are a couple of issues that need to be resolved:

 Workspace tasks for running common development workflows
 foam-vscode and foam-cli should use local foam-workspace-manager in development
 vsce package does not know how to pick up packages from hoisted yarn workspaces

Currently worked around by running vsce package with npm install. See d6d31fa


 Migrate all packages to test with jest

Highest priority is running foam-vscode tests with Jest. See: https://medium.com/@soloydenko/end-to-end-testing-vs-code-extensions-via-jest-828e5edfeb75



Help wanted with remaining issues!
Materials
https://medium.com/@rossbulat/typescript-working-with-paths-packages-and-yarn-workspaces-6fbc7087b325

Closing comment (2020-11-09T14:03:08Z): per my conversation with @jevakallio, this is currently blocked by  microsoft/vscode-vsce#493 - and will be tracked in #314 - so closing this issue
Repository: foambubble/foam

Issue #739: High CPU usage when showing graph
Created: 2021-08-05T05:01:57Z
Foam version: 0.14.2
Platform: Linux
Issue occur on the foam template repo: Yes

Summary
Showing graph makes laptop CPU usage go from ~20% to ~60% (2 CPUs, 4 threads), even when VSCode window is in background.
Closing or hiding the graph (for example, by focusing another tab on the same group) makes the CPU usage go back to normal immediately. The raise is caused by code's renderer and gpu-process processes. This happens regardless of using --disable-gpu.
Steps to reproduce

Open inbox.md
Show graph

Additional information
Showing graph doesn't generate logs in the output tab. I'll be happy to share more details about my environment to help debugging, I just don't know what could be relevant.
$ code --version
1.58.2
c3f126316369cd610563c75b1b1725e0679adfb3
x64
Enabled extensions in workspace:
alefragnani.Bookmarks:
streetsidesoftware.code-spell-checker
streetsidesoftware.code-spell-checker-portuguese-brazilian
EditorConfig.EditorConfig
foam.foam-vscode
yzhang.markdown-all-in-one
bierner.markdown-emoji
tchayen.markdown-links (using its graph after noticed the CPU issue)
mushan.vscode-paste-image
Shan.code-settings-sync
richie5um2.vscode-sort-json
There are other extensions besides these, but they're all disabled, either globally or just in this workspace

Duplicate issue #793: Extension causes high cpu load
Created: 2021-10-21T15:04:28Z
Issue Type: Performance
Extension Name: foam-vscode
Extension Version: 0.15.0
OS Version: Darwin x64 19.6.0
VS Code version: 1.61.2

⚠️ Make sure to attach this file from your home-directory:
⚠️/var/folders/xr/lxzkfq693fv4xhvwb741sn340000gp/T/foam.foam-vscode-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

Closing comment (2021-11-01T12:49:02Z): keeping this closed as duplicate of #739
Repository: foambubble/foam

Issue #1023: automatic link creation from [[link with space]] creates 2 files (with and without dashes)
Created: 2022-07-01T00:24:38Z
Describe the bug
I'm new to Foam, just cloned the template and tried it today.  This bug may be related to #494 but has very simple, easy to repro steps (at least for me).
Small Reproducible Example
https://github.com/ultrasaurus/foam-experiment/tree/twofiles
Steps to Reproduce the Bug or Issue

Make a new file index.md with this content:

# Index

- [[new prototype]]
- 


Roll over the link, press command and click.

Expected behavior
a single file is created with whatever default naming conventions y'all use
Screenshots or Videos
Foam creates two files:

roll over and press command => creates new-prototype.md
clicking on it => creates and opens new prototype.md

I end up with two files

Operating System Version
macOS
Visual Studio Code Version
1.68.1
Additional context
No response

Duplicate issue #770: While creating new notes out of missing wiki links, sluggify the file name
Created: 2021-09-25T06:38:41Z
Scenario 1:
When I type [[Graph Visualisation]] and if this file is not present, let Foam create a file Graph-Visualisation.md instead of "Graph Visuailsation.md"
Let the [[wiki links]] have spaces.
Let the H1 title have spaces.
But the file names can have hyphens.
Accordingly update the reference links.
Scenario 2:
If I already have a file Graph-Visualisation.md, upon clicking [[Graph Visualisation]], Foam should know that it has to navigate to  the Graph-Visualisation.md and keep the reference links appropreately updated.
This feature could be made configurable.
Example:
I'm picking an example from foam's readme.md
The wiki link is [[Graph Visualisation]]
The file name is graph-visualisation.md
References are to be generated like [Graph Visualisation]: docs/features/graph-visualisation.md "Graph Visualisation"

Closing comment (2022-07-18T15:29:38Z): Using markdown notes creates a "double note creation" conflict with foam. We should reopen this.
Edit: related to #1023 and #1035
Repository: foambubble/foam

Issue #299: Foam Graph should take into account direct MD links
Created: 2020-10-25T12:51:14Z
This issue is related to this comment #290 (comment).
As stated in the comment and in this issue's title: Foam should be able to parse links of the form [[title](link)].
I am not familiarized with the parsing process for the Foam, however, the strategy can be to first include all double braced links (both [[]] and [[]()]) and then validate the second ones, separating file links from http ones.
EDIT: The bug link is a mistake.

Duplicate issue #420: Bug report: Foam: Show graph command not showing normal markdown []() links
Created: 2020-12-30T00:08:27Z
Foam version: 0.7.1
Platform: Windows 10
Issue occur on the foam template repo: No

Summary
Normal markdown [Title](document.md) links are not showing on Foam: Show Graph command
Steps to reproduce

Create two bubbles and link them with [Title](document.md)
Open the console and type Foam: Show Graph

Additional information
It seems using an extension called md-graph solves the problem

Closing comment (2020-12-31T11:22:53Z): duplicate of #299
Repository: foambubble/foam

Issue #308: Can I dump the graph data to a single file ?
Created: 2020-10-30T10:47:22Z
I want to find a way to analyze my foam notes project and use the graph data for later site-generation.
Would be very helpful if this can be integrated to the foam-cli or some other package.  I will be able to build a Gatsby/Gridsome plugin and theme on top of it.
BTW, for what I can find, foam-gatsby-template is really great. But Foam can provide a more general solution.

Duplicate issue #309: Allow for Foam Graph to be used in various Publishing Themes
Created: 2020-10-30T12:04:06Z
As discussed in Discord, I'd love for the new Foam Graph to be available to be used in the various existing (mathieudutour and yenly) and future publishing themes - its very quick and slick, which addresses the major issue that I had with the former. Not sure what wizardry you guys need to do to make this happen, but hopefully this starts a conversation/plan for it.

Closing comment (2020-10-30T12:14:29Z): related to #308
Repository: foambubble/foam

Issue #547: Foam interfering/disabling/removing correct tokenization/semantic highlighting
Created: 2021-03-26T20:49:39Z
Foam version: 0.12
Platform: Mac
Issue occurs on the foam template repo: No, it happens on all .md files, regardless of being in a foam environment.

Summary
Since v0.12, Foam changed the Syntax Highlighting off .md files, making them very difficult for me to read.
Before Foam 0.12:

With Foam 0.12:

Disabling/uninstalling Foam brings correct tokenization back to normal
Also reverting back to Foam 0.11 fixes the issue.
I disabled all extensions but Foam to isolate the issue and it's clear Foam is causing it, at least in my current setup.
I also cleared completely all settings in my settings.json file, so default everything, including theme.
This is a short clip of the process, to see how syntax highlighting gets impacted by Foam:

  
    
    

    Capto_Capture_2021-03-25_12-38-17_pm.mov

Duplicate issue #553: Wikilinks colors changed & darkened to be very hard to read in some themes
Created: 2021-03-31T08:46:29Z
Foam version: 0.12.0
Platform: Mac
Issue occur on the foam template repo: Yes

Summary
Colors have changed on the wikilinks, with potentially adverse interactions with other themes or settings.
On a standard install of the native template:
Before (v0.11):

After (v0.12):

The color change itself is not the main problem (though I personally significantly prefer the previous design), but it seems to generate weird interactions with other themes / extensions? On my standard install the effect is this (for reference the theme is Monokai Pro - Spectrum)
Before (v0.11):

After (v0.12):

Steps to reproduce

Clone the template repo on a clean VSCode install (I used insiders to clear all extension from my standard install)
Open template in VSCode and install the recommended extensions (Foam at 0.12.0)
Observe the links as in "after" above
Install a different version of Foam on the extension's page (Foam at 0.11.0)
Observe the links looking correct as in "before" above

Note this might affect display on different themes differently - on my standard install the change looks like this:

Closing comment (2021-04-05T11:24:00Z): Hey @felixweinberger! Mind checking if this seems related to #547?

Hi, didn't see this notification apologies - I see it's been fixed, thanks for checking in!
Repository: foliojs/pdfkit

Issue #655: Attachment embedding in PDF
Created: 2017-04-26T17:28:57Z
Hi Team,
While performing a POC on client side PDF generation tools, wanted to check if PDFKit is having functionality to embed external documents into PDF and show it as icon, further on clicking it will open document.
Found no content/articles related to this topic anywhere so raising issue here.
Also, if it is not supported, please suggest till when this will get supported.
Thanks in advance.

Duplicate issue #740: Possible to append arbitrary data to PDFs, like CSVs?
Created: 2017-10-23T13:09:08Z
Hi there,
I recently read this blog post about using PDFs as a container for bundling documents like reports with structured data like JSON, or csv files.
In the world of C#, there is now a tool that I understand will let you take a PDF file, and then append an arbitrary csv or json file, so you can bundle structured data into a PDF:
http://tomforth.co.uk/pdfattacher/
Something like this also appears  to have been implemented in Java too, here
https://github.com/Aiybe/PDFData
How complex would it be using pdfkit, so you can run it with on the command line, or incorporate it into a cross platform electron app?
I can see there are methods like doc.note(), or doc.image(), but they seem to assume the presence of a page there already, and as I understand it the idea of attaching data to the PDF container works at a level up from a page.
Guessing what an API might look like:
PDFDocument = require 'pdfkit'

# Create a document
doc = new PDFDocument

# Pipe its output somewhere, like to a file or HTTP response
# See below for browser usage
doc.pipe fs.createWriteStream('output.pdf')

# Add text as per normal examples
doc.text('Here is some narrative text !', 100, 100)

# Attach json file
doc.data('path/to/data.json', datatype: "json")

# Finalize PDF file
doc.end()
I'm not that familiar with the PDF format, so if there's a link you'd suggest I look into, to understand more about how to work with pdfkit for this, I'm happy to do so.

Closing comment (2020-04-01T07:37:37Z): similar to #655
Repository: foliojs/pdfkit

Issue #689: LineWrapper swallows line of text
Created: 2017-06-19T10:45:33Z
In certain situations the LineWrapper.wrap method called by the text mixin swallows entire lines. I have not fully understood what happens, but it seems a single additional emitLine solves the issue. I think buffer is overwritten with word before its previous contents have been emitted, since the actual emitLine call happens afterwards.
See: jtillmann@80868c2
I have a hard time reproducing this and since the one case I just solved it for is confidential I can't share an example yet.

Duplicate issue #818: Wrong result, part of text is invisible, v0.8.3, + test case
Created: 2018-05-18T12:24:02Z
Hello!
pdfkit gives wrong result:
2000-00-00
Guld kort start 000000 tom 000000

test-case
'use strict';

var PDFDocument = require('pdfkit');

var doc = new PDFDocument({bufferPages: true});
doc.pipe(process.stdout);
doc.text('Guldkort Traningskort Manad, 2000-00-00 - 2000-00-00\nGuld kort start 000000 tom 000000', 20, 290, {width: 280, lineBreak: false});
doc.end();
Is there any solution?
Thanks.

Closing comment (2018-06-24T20:47:14Z): Duplicate of #689, which is now fixed.
Repository: foliojs/pdfkit

Issue #332: Support for PDF 1.7
Created: 2014-11-24T16:02:43Z
How difficult would be to generate PDF 1.7 compatible documents rather than 1.3 compatible ones?
Is there any plan to support PDF 1.7(or a subset of it) in the near future?
I am interested because it would be nice to include semantically correct list elements in pdf document.
With thanks

Duplicate issue #836: Updating to PDF Version 1.4
Created: 2018-06-29T13:45:46Z
How would I go about generating a version 1.4 PDF with this library?
The issue is file size.  Currently PDFKit is generating files of about 2mb.  Converting them to version 1.4 reduces them to around 800kb.
I know this is similar to the question asked in
https://github.com/devongovett/pdfkit/issues/499#499
but that issue has been closed for a year and a half.

Closing comment (2021-07-11T09:05:07Z): duplicate: #332
Repository: foliojs/pdfkit

Issue #217: [REQUEST] Embeddable Javascript to PDF
Created: 2014-03-27T16:17:58Z
Please do.. I am having this sort of problem using with Node-Webkit where, I need to print the PDF directly on an hidden node-webkit Window and trigger window.print(), it printed with a blank page, not the PDF (NPAPI) object. So, if it would be possible, for a quick fix what I really would appreciate is print the PDF onRender.
doc.printOnRender = true;
?

Duplicate issue #645: Allow auto-print
Created: 2017-03-23T11:40:00Z
Hi, would you consider adding an option to allow the PDF document to autoPrint or allow a JavaScript action to be added which would allow that ?
Some links on this type of feature:
: https://nvision.co/blog/tips-and-tricks/auto-print-pdf-file-open/
https://www.gnostice.com/nl_article.asp?id=157&t=Create_an_Auto_Print_PDF
Thanks !

Closing comment (2020-01-17T16:34:35Z): duplicate of #217 and #85
Repository: foliojs/pdfkit

Issue #83: Edit existing PDF
Created: 2012-07-15T03:59:29Z
I have a brochure that is in pdf form, and want to make parts of the text dynamic. Is there currently a way to do something like this?

Duplicate issue #1146: can i edit an existing pdf by pdfkit?
Created: 2020-08-01T06:42:25Z
can i edit an existing pdf by pdfkit? And add an image into an  existing  page?

Closing comment (2020-08-01T08:18:13Z): No, it is not possible.
duplicate: #83
Repository: foliojs/pdfkit

Issue #623: "fs is not defined" in the prebuild version
Created: 2017-02-22T02:11:11Z
Hi, I don't use NodeJS so I use the prebuild version of PDFKit to generate the PDF.
I imported the library in the HTML file
`<script src="Scripts/blob-stream.js" type="text/javascript"></script>
<script src="Scripts/pdfkit.js" type="text/javascript"></script>`
It worked well with built-in fonts.
When I registered a font from a file and used it
doc.registerFont('OpenSans-Regular', 'fonts/OpenSans-Regular.ttf', 'OpenSans-Regular'); doc.font('OpenSans-Regular');
I got this error
Uncaught ReferenceError: fs is not defined at Object.fontkit.openSync (pdfkit.js:16213) at Function.PDFFont.open (pdfkit.js:12888) at PDFDocument.font (pdfkit.js:14673)
Can anyone please guide me how to solve this problem?
Thanks!

Duplicate issue #715: "fs is not defined" in the prebuild version
Created: 2017-08-09T12:21:48Z
Hi, I'm trying to load custom font ttf files in the prebuilt version but currently getting the error:
"Uncaught ReferenceError: fs is not defined"
my code:
var xhr = new XMLHttpRequest();
        xhr.open('GET', 'fonts/roboto-slab/RobotoSlab-Thin.ttf', true);
        xhr.responseType = 'arraybuffer';

    xhr.onload = function (e) {
      if (this.status == 200) {
        doc.registerFont(RobotoSlab-Thin, xhr.response);
        // Do something...
      }
    };
    xhr.send();
    
    // draw some text
    doc.fontSize(25).text('Here is some vector graphics...', 100, 80).font('RobotoSlab-Thin', 13);

I'm not loading it correctly but can't figure out what I am doing wrong.

Closing comment (2017-09-29T09:12:00Z): Duplicate of #623
Repository: foliojs/pdfkit

Issue #219: Right-to-Left (RTL) support for Hebrew and Arabic
Created: 2014-04-05T18:09:09Z
Please add Right-to-Left (RTL) support for languages like Hebrew and Arabic...
Something like:
doc.rtl(true);

doc.text('...', {rtl: true});

Duplicate issue #905: LTR rendering of RTL " arabic " words
Created: 2019-01-15T13:09:06Z
Bug Report
The PDF Kit renders the Arabic from LTR .. so the words are reversed
Description of the problem
If we have a statement like this ==> "word1 word2" .. It should be Rendered as the same .. but it's rendered LTR ==> " word2word1"
The split function goes LTR direction
Code sample
https://repl.it/repls/NotableAdeptNature
Your environment
"pdfkit": "^0.8.3",
"electron": "^4.0.1"

Node version:  v8.9.4
Operating System: windows 10

Closing comment (2019-04-29T11:50:49Z): Not supported now.
Duplicate: #219
Repository: foliojs/pdfkit

Issue #201: Fallback font support
Created: 2014-02-21T14:53:46Z
When a glyph does not exist in the primary font, it should look in a list of other candidate fonts to find it (like in prawn, see prawnpdf/prawn#103)

Duplicate issue #977: Fallback font
Created: 2019-05-22T15:50:55Z
Feature Request
I would like the possibility to add a fallback font since In my company we use "myriad" font which supports acrylic and Latin, but not UTF8 characters, when "myriad" is not supporting the charset (chinese/korean/etc...), I would like to replace those with Roboto for example.

Closing comment (2019-11-16T16:32:07Z): duplicate: #201
Repository: foliojs/pdfkit

Issue #114: Embedded font subset needs to be sharded to support pdf file with more than 127 glyphs
Created: 2013-02-21T12:29:59Z
When the embedded character glyph‘s id grows over 127 (the @next variable in Subset.coffee), Adobe Reader and Okular will not read the glyph(a character indicating glyph missing is displayed). Foxit Reader and Google Chrome will display the glyph correctly but have problem calculating width of character (the width of the glyph is ignored and the following character will overlay on this character). The character with id = 127 will not display in all readers.
I found that there are many pdf file have several subset to same FontFamily. Maybe there is a limit in the Subset and PDFKit should implement a sharding in font subsetting.

Duplicate issue #192: about garbled( in chinese)
Created: 2014-01-24T12:32:19Z
when i use pdfkit to create pdf file, I found that. when the different char is more then 94, garbled will be appeared. I found that in the source code(font/subset.coffee):
 use: (character) ->
    # if given a string, add each character
    if typeof character is 'string'
        for i in [0...character.length]
            @use character.charCodeAt(i)

        return

    if not @unicodes[character]
        @subset[@next] = character
        @unicodes[character] = @next++

if the value "next" is gt 0x7f, the problem will be appeared. how can i fix it ? Bythe way, when i copy the garbled to the txt file, it will be OK.

Closing comment (2014-02-17T04:11:06Z): Duplicate of #114
Repository: foliojs/pdfkit

Issue #29: tables
Created: 2011-08-24T09:23:21Z
I have an idea for it. We can pass a two-dimensional array of texts, to a method with presentation options like the following:
doc.table([
  ["cell11"],["cell21"],["cell31"],
  ["cell12"],["cell22"],["cell32"],
  ["cell13"],["cell23"],["cell33"]
  ],{
    width:20,
    height:40,
    x:30,
    y:40
});
Then in the module we make rectangles and texts for each cell.

Duplicate issue #778: Table issue
Created: 2018-02-12T04:50:46Z
Please add support for full screen table. Right now if the table has less number of colums, the table is displayed from left side making right side of the page blank.
I have attached the screen shot for clear understanding. In the screen shot you can see there is a table with three colums in it. Since there are three colums in the table, the right side of the page is empty. How can i display this type of table in full screen. I need the table to be rendered in full screen even if the number of colums in the table are not fixed.

Closing comment (2021-02-27T14:50:40Z): duplicate: #29